Skip to content

Instantly share code, notes, and snippets.

View girip11's full-sized avatar

Girish Pasupathy girip11

View GitHub Profile
@girip11
girip11 / README.md
Created November 2, 2022 03:51
Debugging airflow locally using VSCode

Local setup to debug airflow using VSCODE

I did this setup after reading this blogpost of Willem. I can't thank him enough for this wonderful blogpost.

Directory structure

Under the workspace root folder I created airflow_local which I set as AIRFLOW_HOME. The structure of this directory looks as follows

  • config - In this directory, I kept the variables.json, secrets.json(which is again variables but these are secrets) and connections.json
  • logs - Logs directory
@girip11
girip11 / mac_os_kb_ubuntu_like.md
Last active April 11, 2025 05:32
Configuring Mac OS keyboard shortcuts to resemble Ubuntu

Setup MacOS shortcuts to be same as Ubuntu

I have been using Ubuntu for last few years. Now I have to work on Mac OS for work. But I still use personal laptop which has Ubuntu. So I decided to setup the Mac OS shortcuts to be exactly same as in Ubuntu.

Prerequisites

@girip11
girip11 / python_3.8_on_mac_m1.md
Last active July 2, 2022 13:26
Python 3.8 installation on Mac OS M1 Monterey

Python 3.8.13 installation on Mac M1

  • Install the following
# install pyenv using brew if not already installed
brew install pyenv
brew install openssl readline sqlite3 xz zlib

# Install python 3.8.13
@girip11
girip11 / psycopg2_mac_m1_install.md
Created June 28, 2022 13:24
Install psycopg2-binary on Mac M1
brew install libpq
echo 'export PATH="/opt/homebrew/opt/libpq/bin:$PATH"' >> $HOME/.bash_profile

export PATH="/opt/homebrew/opt/libpq/bin:$PATH"
brew install openssl
export LDFLAGS="-L/opt/homebrew/opt/openssl@3/lib"
export CPPFLAGS="-I/opt/homebrew/opt/openssl@3/include"

pip install psycopg2-binary==2.9.3 --force-reinstall --no-cache-dir

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name:

@girip11
girip11 / .hyper.js
Last active June 21, 2021 12:15
Hyper terminal settings
// Future versions of Hyper may add additional config options,
// which will not automatically be merged into this file.
// See https://hyper.is#cfg for all currently supported options.
module.exports = {
config: {
// choose either `'stable'` for receiving highly polished,
// or `'canary'` for less polished but more frequent updates
updateChannel: 'stable',
@girip11
girip11 / Ubuntu 18.04 with Nvidia+CUDA on Optimus Laptop.md
Created January 7, 2021 15:42 — forked from hemenkapadia/Ubuntu 18.04 with Nvidia+CUDA on Optimus Laptop.md
[Ubuntu 18.04 with Nvidia+CUDA on Optimus Laptop] Setting up Ubuntu 18.04 with nvidia drivers and CUDA for data science on Dell 7559 Optimus laptop #Ubuntu #Nvidia #CUDA #setup

Kernel settings for installation

Use a live usb to try Ubuntu before installing. Boot from the live usb. On the GRUB screen highlight the "Try Ubuntu ...." option and press e. Update kernel parameters by adding options before quiet splash such that the line should read as below

nogpumanager nomodeset i915.modeset=1 quiet splash

Note: On HighDPI screen machines there is a known issue whereby Ubiquity (ubuntu installer) craashes at the copying files step i.e. immediatly after the user setup screen. The cause and workaround are discussed in other gist post

Persist GRUB configuration

Post installation, to avoid updating the above mentioned kernel options each time the system is booted, edit GRUB configuration file sudo vi /etc/default/grub and make th

@girip11
girip11 / gist:ab6e4baa904b43a315856f5732a6858a
Created November 9, 2020 12:39 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: πŸ˜„ :smile: πŸ˜† :laughing:
😊 :blush: πŸ˜ƒ :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
πŸ˜† :satisfied: 😁 :grin: πŸ˜‰ :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: πŸ˜€ :grinning:
πŸ˜— :kissing: πŸ˜™ :kissing_smiling_eyes: πŸ˜› :stuck_out_tongue:
@girip11
girip11 / pipenv_cheat_sheet.md
Created July 16, 2020 06:29 — forked from bradtraversy/pipenv_cheat_sheet.md
Pipenv cheat sheet for common commands

Pipenv Cheat Sheet

Install pipenv

pip3 install pipenv

Activate

pipenv shell