Skip to content

Instantly share code, notes, and snippets.

View ajinzrathod's full-sized avatar
🏠
Working from home

Ajinkya Rathod ajinzrathod

🏠
Working from home
View GitHub Profile
@ajinzrathod
ajinzrathod / removehtml
Created May 22, 2021 05:28 — forked from digitalex/removehtml
Delete all HTML comments in VIM
%s/<!--\_.\{-}-->//g
@ajinzrathod
ajinzrathod / tmux-cheatsheet.markdown
Created June 7, 2021 13:57 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@ajinzrathod
ajinzrathod / tmux.md
Created June 8, 2021 11:33 — forked from andreyvit/tmux.md
tmux cheatsheet

tmux cheat sheet

(C-x means ctrl+x, M-x means alt+x)

Prefix key

The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf:

remap prefix to Control + a

@ajinzrathod
ajinzrathod / pandas_postgres.py
Created September 8, 2021 15:27 — forked from kunanit/pandas_postgres.py
Read postgres database table into pandas dataframe
import pandas as pd
from sqlalchemy import create_engine
# follows django database settings format, replace with your own settings
DATABASES = {
'production':{
'NAME': 'dbname',
'USER': 'user',
'PASSWORD': 'pass',
'HOST': 'rdsname.clqksfdibzsj.us-east-1.rds.amazonaws.com',