This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Terminate all instances from nova list output | |
nova delete `nova list| awk '{if(NR>3) print $4}'` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/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>" | |
########################################################################### |