Skip to content

Instantly share code, notes, and snippets.

View snambi's full-sized avatar

Nambi Sankaran snambi

View GitHub Profile
@snambi
snambi / xinput-list-props.sh
Last active June 17, 2019 12:44
xinput --list-props <id>
xinput --list-props 13
Device 'Elan Touchpad':
Device Enabled (169): 1
Coordinate Transformation Matrix (171): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
libinput Tapping Enabled (306): 1
libinput Tapping Enabled Default (307): 0
libinput Tapping Drag Enabled (308): 1
libinput Tapping Drag Enabled Default (309): 1
libinput Tapping Drag Lock Enabled (310): 0
libinput Tapping Drag Lock Enabled Default (311): 0
@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 / 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 / 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 / ubuntu_16.04_set_mouse_speed.md
Last active June 8, 2020 09:24
Ubuntu 16.04 Adjust mouse/track pad speed and configure tap-to-click

Ubuntu 16.04 xinput

Setup Mouse/Touchpad speed and configure tap-to-click on the touch pad

display all input devices

xinput --list
⎡ 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=14	[slave  pointer  (2)]
@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 / 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
http://littleosbook.github.io/
# create an UDP server using nc on port 11090
nc -ul 11090
# check whether an UDP server is listening on 11190
nc -vz -u <hostname> 11090
# send a packet to the UDP server
echo -n "hello" | nc -4u -w1 <hostname> 1118
@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