Skip to content

Instantly share code, notes, and snippets.

View snambi's full-sized avatar

Nambi Sankaran snambi

View GitHub Profile
Host domain1
Hostname bastion.domain1.com
forwardagent yes
gatewayports yes
ServerAliveInterval 30
Compression yes
CompressionLevel 4
Port 22
Host domain2
@snambi
snambi / gist:3ed4557f5dabc48099c7
Created March 25, 2016 21:45
Local.conf for Devstack/Liberty
# Minimal Content
#----------------
ADMIN_PASSWORD="nova"
DATABASE_USER=stack
DATABASE_PASSWORD=stack
MYSQL_PASSWORD=stack
RABBIT_PASSWORD=stack
SERVICE_PASSWORD=$ADMIN_PASSWORD
SERVICE_TOKEN=$ADMIN_PASSWORD
http://littleosbook.github.io/
@snambi
snambi / vim python ftplugin
Created January 4, 2017 20:00
How to setup VIM for editing python code
# open $HOME/.vimrc
vi ~/.vimrc
# Enable ftplugin ( File Type Plugin ) in $HOME/.vimrc
filetype plugin indent on
# save .vimrc file
# Create ftplugin folder
mkdir -p $HOME/.vim/ftplugin
@snambi
snambi / .bashrc
Last active January 5, 2017 05:34
Setup BASH Prompt and aliases
set -o vi
#stty erase ^H
alias xb="xterm -fg lightgreen -bg black -sl 5000 -sb -T dark &"
alias xg="xterm -fg lightgreen -bg grey20 -sl 5000 -sb -T dark &"
alias xa="xterm -fg black -bg white -sl 5000 -sb -T white &"
alias xc='xterm -fg black -bg bisque -sl 5000 -sb -T white &'
alias function="typeset -f"
@snambi
snambi / Zenbook.md
Last active March 6, 2017 02:23
ASUS Zenbook Pro
Requirement ZenBook Pro
8 Core CPU Intel® Core™ i7-6700HQ Processor
16 GB of RAM Yes, extendable upto 64GB
Nvidia GPU NVIDIA® GeForce® GTX 960M
4K Display 15.6'' 16:9 IPS UHD (3840 x 2160)
Trackpad Elan Touchpad
Touch Screen Yes
WebCam HD Webcam
Speakers Built-in 2 Speaker(s) And Array Microphone
@snambi
snambi / install_kernel.sh
Created March 12, 2017 15:40
Install Linux Kernel
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.3.5-wily/linux-headers-4.3.5-040305-generic_4.3.5-040305.201601311533_amd64.deb
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.3.5-wily/linux-headers-4.3.5-040305_4.3.5-040305.201601311533_all.deb
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.3.5-wily/linux-image-4.3.5-040305-generic_4.3.5-040305.201601311533_amd64.deb
sudo dpkg -i linux-headers-4.3.5*deb linux-image-4.3.5*deb
@snambi
snambi / gist:c4f7111d7bc77c9ba4bd36bf9f4aaa0e
Created March 12, 2017 15:50
Display X Input Settings
$xinput
⎡ Virtual core pointer id=2 [master pointer (3)]
⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)]
⎜ ↳ USBest Technology SiS HID Touch Controller id=11 [slave pointer (2)]
⎜ ↳ Elan Touchpad id=13 [slave pointer (2)]
⎜ ↳ Microsoft Basic Optical Mouse id=18 [slave pointer (2)]
⎣ Virtual core keyboard id=3 [master keyboard (2)]
↳ Virtual core XTEST keyboard id=5 [slave keyboard (3)]
↳ Power Button id=6 [slave keyboard (3)]
↳ Asus Wireless Radio Control id=7 [slave keyboard (3)]
@snambi
snambi / xinput-set-prop.sh
Created March 12, 2017 20:29
Set properties
xinput --set-prop 15 171 4.000000, 0.000000, 0.000000, 0.000000, 5.000000, 0.000000, 0.000000, 0.000000, 1.000000
@snambi
snambi / set-input.sh
Created March 12, 2017 21:06
Set Mouse, Touch pad properties
# increase the trackpad tracking speed ( increase it by 4 times )
xinput --set-prop 13 171 4.000000, 0.000000, 0.000000, 0.000000, 5.000000, 0.000000, 0.000000, 0.000000, 1.000000
# increase the apple mouse tracking speed ( increase it by 4 times )
xinput --set-prop 18 171 4.000000, 0.000000, 0.000000, 0.000000, 5.000000, 0.000000, 0.000000, 0.000000, 1.000000
## enable tap-to-click
xinput --set-prop 13 306 1