Skip to content

Instantly share code, notes, and snippets.

View sagarrakshe's full-sized avatar
🎯
Focusing

Sagar Rakshe sagarrakshe

🎯
Focusing
View GitHub Profile
@sagarrakshe
sagarrakshe / vimrc
Last active March 20, 2016 02:22
vimscripts
" Insert debugger statement according to the filetype, mapped to <F2> key.
function! InsertDebugger()
if &ft == "python"
execute "normal oimport ipdb;ipdb.set_trace()\<Esc>"
elseif &ft == "javascript"
execute "normal odebugger;\<Esc>"
else
" it is something else
endif
endfunction
@sagarrakshe
sagarrakshe / frontendDevlopmentBookmarks.md
Last active August 29, 2015 14:27 — forked from dypsilon/frontendDevlopmentBookmarks.md
A badass list of frontend development resources I collected over time.
@sagarrakshe
sagarrakshe / Architecture Information
Last active August 29, 2015 13:56
Get Linux system information
#Get info about cpu
$ lscpu
#Get info about memory
$ free -b/k/m/g
#Get info about partitions
$ sudo fdisk -l
hardinfo
@sagarrakshe
sagarrakshe / InternetUp-InternetDown
Last active October 8, 2015 03:29
Build your own command to connect/disconnect to mobile broadband.
nmcli - is a command tool for controlling Network Manager.
1. Create a file called Internet-up.
2. Copy the following line in it
lsusb | (grep -i <string identifying your mobile> &) && (nmcli con up id "<your connection name>" ) && ((ps -el | grep -i firefox ) || firefox &)
[eg. lsusb | (grep -i nokia &) && (nmcli con up id "Idea Mobile" ) && ((ps -el | grep -i firefox ) || firefox &)]