Skip to content

Instantly share code, notes, and snippets.

View franee's full-sized avatar

Francis Sinson franee

View GitHub Profile
@franee
franee / kitty.conf
Created December 3, 2021 14:31
kitty.conf
# general
font_family Hack
bold_font auto
italic_font auto
bold_italic_font auto
font_size 17
scrollback_lines 15000
copy_on_select yes
hide_window_decorations yes
tab_bar_edge top
@franee
franee / curl_authenticity_token.sh
Last active October 22, 2021 09:31
Get rails authenticity token via cli
$ TOKEN=$(curl --location --request GET 'https://some-site/v2/secret/new' | grep csrf | sed -n 's/.*csrf-token.*content="\(.*\)".*/\1/p')
$ echo $TOKEN
UNF/TKAXsNqIBiZYeMdr2+qaeZg1cAZW3L1+9uqEpd00E6YdSJ1Q6hTU8OUppYB7JIwMxmeoEQYIO2Ycx7ZhyA==
@franee
franee / everyday_git.txt
Last active July 9, 2021 11:36
everyday git commands
# starting projects
git clone <repo>
git init - turn a directory to a git repo
git remote add origin <remote-url> - link to remote repo e.g github project
# feature work
git checkout -b <branch-name> - create branch
git checkout <branch-name> - switch to branch
git branch -D <branch-name> - delete branch
@franee
franee / everyday_emacs.txt
Last active September 11, 2020 11:53
everyday emacs commands
# start / exit / suspend
emacs -nw - start emacs in terminal
C-x C-x - exit
C-z - suspend
# file navigation
C-x C-f - find then load file
C-x C-s - save file
C-x C-v - reload file
C-x k - close file
@franee
franee / everyday_tmux.txt
Last active October 19, 2021 10:24
everyday tmux commands
tmux - start tmux session
# window management
C-a c - new window/pane/tab
C-a , - rename window/pane/tab
C-a n - next window/pane/tab
C-a p - previous window/pane/tab
# split pane
C-a % - vertical split
@franee
franee / keybase.md
Last active February 1, 2017 05:37

Keybase proof

I hereby claim:

  • I am franee on github.
  • I am franee (https://keybase.io/franee) on keybase.
  • I have a public key whose fingerprint is A7B1 91EF D1C9 5D70 FA94 7A6D 1DF6 C897 8447 8046

To claim this, I am signing this object: