Skip to content

Instantly share code, notes, and snippets.

View xayyuu's full-sized avatar
🎯
Focusing

xayyuu xayyuu

🎯
Focusing
View GitHub Profile
@VincentSit
VincentSit / update_gfwlist.sh
Last active March 24, 2024 14:39
Automatically update the PAC for ShadowsocksX. Only tested on OS X. (Deprecated)
#!/bin/bash
# update_gfwlist.sh
# Author : VincentSit
# Copyright (c) http://xuexuefeng.com
#
# Example usage
#
# ./whatever-you-name-this.sh
#
# Task Scheduling (Optional)
@cmpscabral
cmpscabral / mysqldump.sh
Created July 21, 2015 21:46
mysql dump to tar.gz
mysqldump mydatabase -u root -p | gzip -c | cat > mydatabase-$(date +%Y-%m-%d-%H.%M.%S).sql.gz
7 组导航快捷键
使用下列快捷键方便在文字中快速定位:
跳至行首 – Control+A
跳至行尾 – Control+E
跳至下一行 – Control+N
跳至上一行 – Control+P
删除上一个单词 – Control+W
删除当前光标位置到行首的文字 – Control+U
删除当前光标位置到行尾的文字 – Control+K
@spicycode
spicycode / tmux.conf
Created September 20, 2011 16:43
The best and greatest tmux.conf ever
# 0 is too far from ` ;)
set -g base-index 1
# Automatically set window title
set-window-option -g automatic-rename on
set-option -g set-titles on
#set -g default-terminal screen-256color
set -g status-keys vi
set -g history-limit 10000