CTRL + A
: Move the cursor to the beginning of the line
CTRL + E
: Move the cursor to the end of the line
OPTION + Left Arrow
: Move the cursor one word backward
OPTION + Right arrow
: Move the cursor one word forward
Left Arrow
: Move the cursor one character backward
Right Arrow
: Move the cursor one character forward
I hereby claim:
- I am greenmang0 on github.
- I am abhishek_ (https://keybase.io/abhishek_) on keybase.
- I have a public key whose fingerprint is 4396 60D6 0B42 0C75 DE6D 6AA4 FBDB C40D DFD8 0B1C
To claim this, I am signing this object:
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
set noinsertmappings | |
set typelinkhints | |
map <C-n> nextTab | |
map <C-p> previousTab | |
map d closeTab | |
map u lastClosedTab | |
map <C-f> scrollFullPageDown | |
map <C-b> scrollFullPageUp | |
map <C-d> scrollPageDown |
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 | |
## Refer: http://alestic.com/2010/01/ec2-ebs-boot-ubuntu ## | |
# create directory structure | |
mkdir -p $HOME/image | |
# download, extract and mount image | |
cd $HOME | |
wget "http://cloud-images.ubuntu.com/releases/precise/release/ubuntu-12.04-server-cloudimg-amd64.tar.gz" |
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 | |
############################################################ | |
# Based On | |
# http://exchange.nagios.org/directory/Plugins/Operating-Systems/Linux/Check-Open-FDs-%28File-Descriptors%29/details | |
########################################################### | |
USAGE="$(basename $0) ([-w]<warn %>)([-c]<crit %>)([-p]<port number>)" | |
THRESHOLD_USAGE="CRITICAL threshold must be greater than WARNING: $(basename $0) $*" | |
while getopts "hw:c:p:" OPTION; do |
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
(defn pronounce-nums | |
[coll] | |
(interleave | |
(vec (map count (partition-by identity coll))) | |
(distinct coll))) |