Skip to content

Instantly share code, notes, and snippets.

View nalapati's full-sized avatar

Nishanth Alapati nalapati

View GitHub Profile
#!/bin/bash
SESSION=ros
tmux -2 new-session -d -s $SESSION
# Setup a window for running all the component nodes
tmux new-window -t $SESSION:1 -n 'nodes'
tmux split-window -h
tmux select-pane -t 0
tmux send-keys "" C-m
@nalapati
nalapati / .tmux.conf
Last active January 30, 2019 00:16
tmux conf
# split panes using | and -
bind | split-window -h
bind - split-window -v
unbind '"'
unbind %
# switch panes using Alt-arrow without prefix
bind -n M-Left select-pane -L
bind -n M-Right select-pane -R
bind -n M-Up select-pane -U
@nalapati
nalapati / spoj_substr1
Last active April 19, 2017 22:37
Rolling Hashes Substring Checks in Brainf**k
>>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>>++++++++ ++++++++ ++++++++ [ - <<<<<<<< <<<<<<<< <<<<<<<< <<<<<<<< <<<<<<<< <<<<<<<< <<<<<<<< <<<<<<<< <<<<<<<< <<<<<<<< <<<<<<<< [-]>[-]>[-]>[-]>[-]>[-]>[-]++++++++++++++++++++++++++++++++>[-]>[-]>[-]>[-]+ >>> >[-]> >[-]> >[-]> >[-]> >[-]> >[-]> >[-]> >[-]> >[-]> >[-]> >[-]> >[-]> >[-]> >[-]> >[-]> >[-]> >[-]> >[-]> >[-]> >[-]> >[-]> >[-]> >[-]> >[-]> >[-]> >[-]> >[-]> >[-]> >[-]> >[-]> >[-]> >[-]> <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< <<< <<<<<<<<<< +++++[->,>++++++++[-<------>]>[->++<]>[-<+>]<<<[->>+<<]<] >>>[->+>>>+<<<<] >[-<+>]< >>> [->[->]<<]>>>>[<]<< [<<<<[-]>>>>[-<<<<+>>>>]] <<<< [->+>>>>>>>>>+<<<<<<<<<<]>>>>>>>>>> [[>>]+[<<]>>-] >>[>>]<< <[-]+> [-<<] <<<<<<<<<<<<< [-]>[-]>[-]>>[-<+>]>[-]>[-]++++++++++++++++++++++++++++++++>[-]>[-]>[-]>[-]+<<<<<<<<<< +++++ [ ->,>++++++++[-<------>]>[->++<]>[-<+>]<<<[->>+<<]< >>>[->+>>>+<<<<] >[-<+>]< >>> [->[->]<<]>>>>[<]<< [<<<<[-]>>>>[-<<<<+>>

Keybase proof

I hereby claim:

  • I am nalapati on github.
  • I am starlord (https://keybase.io/starlord) on keybase.
  • I have a public key whose fingerprint is FF21 AD9E B2FC A20F F2D9 7123 CA09 E2FB 5F3E 249B

To claim this, I am signing this object: