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-option -g allow-rename off | |
bind-key -n M-K new-window -c "#{pane_current_path}" | |
bind-key -n M-H prev | |
bind-key -n M-J resize-pane -Z | |
bind-key -n M-L next | |
bind-key -n M-k select-pane -U | |
bind-key -n M-j select-pane -D | |
bind-key -n M-h select-pane -L |
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
# -*- coding: utf-8 -*- | |
""" | |
Display battery information. | |
Configuration parameters: | |
battery_id: id of the battery to be displayed | |
set to 'all' for combined display of all batteries | |
(default 0) | |
blocks: a string, where each character represents battery level | |
especially useful when using icon fonts (e.g. FontAwesome) |
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
snippet ifc "#if #endif" !b | |
#if ${1:0} | |
${VISUAL}${0:${VISUAL/(.*)/(?1::code)/}} | |
#endif | |
endsnippet | |
snippet ts "struct" | |
typedef struct | |
{ | |
${0:/* data */} |
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
alias less='less -R' | |
alias rgrep='rgrep -n --colour=always' | |
alias cgrep='grep --colour=always' | |
alias wgrep='rgrep --exclude=*.o --exclude=*.swp --exclude=*.in --exclude=.*~ --exclude-dir='.svn' -m 1' | |
alias glog="git log --stat --pretty=oneline --graph --date=short" |
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/zsh | |
# ./mangareader <manga_url> | |
website_url="www.mangareader.net" | |
chapters_dl_name="chdl_name`date +"%H%m%s"`" | |
tmp_filename="tmp`date +"%H%m%s"`" | |
# Download the manga index web page | |
wget $1 -q -O $chapters_dl_name |