Skip to content

Instantly share code, notes, and snippets.

View gnithin's full-sized avatar
🙂
Pink moon gonna get us all

Nithin Gangadharan gnithin

🙂
Pink moon gonna get us all
View GitHub Profile
@gnithin
gnithin / moo.sh
Last active August 29, 2015 14:27
A fortune message,said by a cow, that will keep popping up every 60 seconds :P Inspired by http://www.reddit.com/r/programming/comments/3gd4xt/a_tweetable_turing_machine/ctxeqxi
interval=60
while true;
do
fortune -n 50 -s|
cowsay |
xargs -0 notify-send -t 8 fortune;
sleep $interval;
done
@gnithin
gnithin / bash_aliases.sh
Last active February 8, 2017 09:53
My bash_aliases
# For making a directory and then entering it.
mkdr_function(){
mkdir $1 && cd $1
}
alias mkcd=mkdr_function
# For starting up rofi(2&>1 and >/dev/null are for supressing the std ops and err ops)
# alias rofi_up="rofi -key-window shift+q 2&>1 >/dev/null &"
# For obvious screw-ups
@gnithin
gnithin / My .screenrc
Last active August 29, 2015 14:24
Adding my screen configuration
#Shutting off the startup message
startup_message off
#Keeping a hardstatus
hardstatus alwayslastline
#Adding the screen bottom line
hardstatus string '%{= kG}[ %{G}%H %{g}][%= %{= kw}%?%-Lw%?%{r}(%{W}%n*%f%t%?(%u)%?%{r})%{w}%?%+Lw%?%?%= %{g}][%{B} %d-%m %{W}%c %{g}]'
#increasing the scroll back buffer
@gnithin
gnithin / init.vim
Last active January 9, 2018 08:18
My vim configuration
"let g:pymode_python='python3'
" Ignoring PEP8 - (Especially for Palermo. Enable it later)
let g:pymode_lint_ignore="E501,W601"
" Mandatory stuff that vundle needs
set nocompatible
filetype off
" set rtp+=~/.vim/bundle/vundle/
" call vundle#rc()