Skip to content

Instantly share code, notes, and snippets.

View an9er's full-sized avatar

gcj an9er

View GitHub Profile
@an9er
an9er / dd
Created December 8, 2016 01:30
@namespace url(http://www.w3.org/1999/xhtml);
@-moz-document domain("www.douban.com") {
#db-nav-sns {
visibility: hidden;
height: 0px;
}
.global-nav {
visibility: hidden;
# Smart pane switching with awareness of vim splits
# See: https://github.com/christoomey/vim-tmux-navigator
is_vim='echo "#{pane_current_command}" | grep -iqE "(^|\/)g?(view|n?vim?x?)(diff)?$"'
bind -n C-h if-shell "$is_vim" "send-keys C-h" "select-pane -L"
bind -n C-j if-shell "$is_vim" "send-keys C-j" "select-pane -D"
bind -n C-k if-shell "$is_vim" "send-keys C-k" "select-pane -U"
bind -n C-l if-shell "$is_vim" "send-keys C-l" "select-pane -R"
bind -n C-\ if-shell "$is_vim" "send-keys C-\\" "select-pane -l"
mysql
=====
Created 星期三 30 三月 2016
##### 数据库
ll-proc-id
==========
Created 星期一 14 十一月 2016
#### 查看正在运行程序的路径
##### 命令
* ll /proc/PID
* ll /proc/PID/cwd
@an9er
an9er / aa
Created December 8, 2016 07:47
linux
=====
Created 星期二 17 五月 2016
#### 复制文件内容
cat ~/.ssh/id_rsa.pub | xclip -sel clip
#### find 命令查找文件
@an9er
an9er / netstat-1
Last active December 8, 2016 07:49
netstat –apn |grep python
@an9er
an9er / curl
Last active December 8, 2016 07:50
curl
====
Created 星期五 08 四月 2016
#### 用curl下载文件到本地并命名
curl -o $new_file_name $url
https://raw.githubusercontent.com/mmoya/pkg-thc-ipv6/master/dnsdict6.h