Skip to content

Instantly share code, notes, and snippets.

View rohitkode's full-sized avatar

Rohit Karajgi rohitkode

  • USA
View GitHub Profile
@rohitkode
rohitkode / vpn.sh
Last active January 19, 2017 12:16
Use openconnect to connect to VPN while allowing internet access (works for wireless interface only)
#/bin/bash
##########################################################################
# Uses openconnect to connect to a VPN gateway and ssh into the specified
# remote host as per the arguments passed to the script, and route internet
# traffic through a default gateway.
# Note: The script assumes internet connectivity on the wireless interface
# "usage: ./vpn <remote_user> <remote_host>"
###########################################################################
@rohitkode
rohitkode / .vimrc
Created January 20, 2015 07:51
My Vimrc
filetype plugin indent on " Automatically detect file types and indent
autocmd FileType python runtime! autoload/pythoncomplete.vim
" Toggle Line numbers and fold column for easy copying
nnoremap <F1> :set nonumber!<CR>:set foldcolumn=0<CR>
map <F2> :NERDTreeToggle<CR>
" tab navigation like Firefox , does not work with a terminal emulator
:nmap <C-S-tab> :tabprevious<CR>
@rohitkode
rohitkode / bash1liners.sh
Last active August 29, 2015 14:14
Random shell quickies
# Terminate all instances from nova list output
nova delete `nova list| awk '{if(NR>3) print $4}'`
@rohitkode
rohitkode / Kali 2017.1 x64, Docker-ce Install script
Last active February 28, 2018 18:48 — forked from nikallass/Kali 2017.1 x64, Docker-ce Install script
Kali 2017.1 x64, Docker-ce Install script
#!/bin/bash
# update apt-get
export DEBIAN_FRONTEND="noninteractive"
sudo apt-get update
# remove previously installed Docker
sudo apt-get remove docker docker-engine docker.io* lxc-docker*
# install dependencies 4 cert