Skip to content

Instantly share code, notes, and snippets.

View JervyShi's full-sized avatar

JervyShi JervyShi

View GitHub Profile
@JervyShi
JervyShi / iterm2.md
Created February 21, 2017 13:00
iterm2 cheatsheet

Tabs and Windows

Function Shortcut
Previous Tab + Left Arrow
Next Tab + Right Arrow
Go to Tab + Number
Go to Window + Option + Number
Go to Split Pane by Direction + Option + Arrow
Go to Split Pane by Order of Use + ] , + [
@JervyShi
JervyShi / gist:95d576fe509002b381733d12d8a8f285
Created January 14, 2017 16:00 — forked from vdw/gist:09efee4f264bb2630345
Kill tcp connection with tcpkill on CentOS

Install tcpkill
yum -y install dsniff --enablerepo=epel

View connections
netstat -tnpa | grep ESTABLISHED.*sshd.

Block with ip tables
iptables -A INPUT -s IP-ADDRESS -j DROP

Kill connection