Skip to content

Instantly share code, notes, and snippets.

@irmowan
irmowan / tmux-cheatsheet.markdown
Created July 22, 2017 07:20 — forked from ryerh/tmux-cheatsheet.markdown
Tmux 快捷键 & 速查表

Tmux 快捷键 & 速查表

启动新会话:

tmux [new -s 会话名 -n 窗口名]

恢复会话:

tmux at [-t 会话名]
@irmowan
irmowan / .tmux.conf
Last active October 11, 2017 07:12
configurations
# Set zsh as shell
set-option -g default-shell /usr/bin/zsh
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
bind -r L resize-pane -L 10 # 向左扩展
bind -r R resize-pane -R 10 # 向右扩展
@irmowan
irmowan / react-native-gitignore
Created October 9, 2016 15:22 — forked from ryantbd/react-native-gitignore
react-native-gitignore
# Most part of this file is created by https://www.gitignore.io
### Node ###
# Logs
logs
*.log
# Runtime data
pids
*.pid
@irmowan
irmowan / rename.sh
Created June 9, 2016 15:33
Rename files
j=1
l=10
word="close"
for i in `ls | grep 1`
do
newWord=`echo $i | cut -d _ -f 2`
if [[ "$word" != "$newWord" ]];then
let j=1
fi
if [[ "$j" -lt "$l" ]]
@irmowan
irmowan / Next Track
Last active January 18, 2022 05:18
AppleScript to control Netease Music
tell application "System Events" to tell process "NeteaseMusic"
click menu item "下一个" of menu 1 of menu bar item "控制" of menu bar 1
end tell