Skip to content

Instantly share code, notes, and snippets.

View changshoumeng's full-sized avatar
🌴
Coding

Taz Zhang changshoumeng

🌴
Coding
View GitHub Profile
@changshoumeng
changshoumeng / docker-registry-mirrors.md
Created December 2, 2024 08:30 — forked from y0ngb1n/docker-registry-mirrors.md
国内的 Docker Hub 镜像加速器,由国内教育机构与各大云服务商提供的镜像加速服务 | Dockerized 实践 https://github.com/y0ngb1n/dockerized
@changshoumeng
changshoumeng / gist:d3cb5b1b8afbc40686418391928cd036
Created May 29, 2019 08:26 — 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

contract CircuitBreaker {
struct Transfer { uint amount; address to; uint releaseBlock; bool released; bool stopped; }
Transfer[] public transfers;
address public curator;
address public authorizedSender;
uint public period;
uint public limit;
uint public currentPeriodEnd;