Skip to content

Instantly share code, notes, and snippets.

JervyShi JervyShi

Block or report user

Report or block JervyShi

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@JervyShi
JervyShi / iterm2.md
Created Feb 21, 2017
iterm2 cheatsheet
View iterm2.md

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 Jan 14, 2017 — forked from vdw/gist:09efee4f264bb2630345
Kill tcp connection with tcpkill on CentOS
View gist:95d576fe509002b381733d12d8a8f285

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

You can’t perform that action at this time.