Skip to content

Instantly share code, notes, and snippets.

View mdalvi's full-sized avatar
:electron:
The Call of Cthulhu

Milind Dalvi mdalvi

:electron:
The Call of Cthulhu
View GitHub Profile
@mdalvi
mdalvi / tmux.conf
Last active January 14, 2025 16:16
tmux configuration
# Increase the scrollback buffer size from the default 2000 to 10000 lines
set-option -g history-limit 10000
# Disable automatic window renaming
set-option -g allow-rename off
# Make tmux use 256 colors for better color rendering in terminal applications
set -g default-terminal "screen-256color"
# Change the default prefix key from 'Ctrl-b' to 'Ctrl-a' (more ergonomic)
@mdalvi
mdalvi / setup-codecov.sh
Last active October 24, 2024 05:27
Setup Codecov or Your Project
#!/bin/bash
# ==========================================
# Code generated using Claude Sonnet 3.5
# Command to use the file: curl -s https://gist.githubusercontent.com/mdalvi/2659e69ca2b876ebc67b33244652353e/raw/c9fe7e2afa9ff4041c52ccce82023f3d8cc5a0ee/setup-codecov.sh | bash
# ==========================================
# setup-codecov.sh
set -e # Exit on error
[
{
"stock_name": "Reliance Industries Ltd.",
"stock_symbol": "RELIANCE",
"bid": 2501.25,
"ask": 2502,
"quantity": 100,
"avg_price": 2450.75,
"pnl": 5050
},
@mdalvi
mdalvi / gist:84b593d00eab41c2b97ae2c9041fcd62
Created May 9, 2024 07:38
Poetry Environment Path Setup Guide
# credits: https://www.youtube.com/watch?v=0f3moPe_bhk&t=26s
poetry init
poetry env info
poetry env info -p
poetry config virtualenvs.in-project true
poetry install --no-root
@https://stackoverflow.com/questions/28831854/how-do-i-add-python3-kernel-to-jupyter-ipython
jupyter kernelspec list
@mdalvi
mdalvi / my_environment_setup.txt
Last active May 1, 2018 16:07
Environment setup instructions (Ubuntu Linux)
@https://medium.com/@GalarnykMichael/install-python-on-ubuntu-anaconda-65623042cb5a
@https://www.anaconda.com/download/#linux
Install_Anaconda_Ubuntu_Python3.sh
cd ~
wget https://repo.continuum.io/archive/Anaconda3-4.2.0-Linux-x86_64.sh
bash Anaconda3-4.2.0-Linux-x86_64.sh -b -p ~/anaconda
rm Anaconda3-4.2.0-Linux-x86_64.sh
echo 'export PATH="~/anaconda/bin:$PATH"' >> ~/.bashrc
source .bashrc
@mdalvi
mdalvi / ta-lib_64-bit_installation.md
Last active October 1, 2024 12:58
ta-lib 64-bit Installation on Windows 10

Here are the instructions to build the 64-bit ta-lib.

Install TA-Lib C Library on Windows 10

  • Download and Unzip ta-lib-0.4.0-msvc.zip
  • Move the Unzipped Folder ta-lib to C:\
  • Download and Install Visual Studio Community 2015
  • Remember to Select [Visual C++] Feature
  • Build TA-Lib Library
  • From Windows Start Menu, Start [VS2015 x64 Native Tools Command Prompt]