Skip to content

Instantly share code, notes, and snippets.

@neontorrent
neontorrent / netcat.sh
Last active September 8, 2024 19:46 — forked from pm-hwks/netcat.sh
[Netcat network test] Netcat commands to test bandwidth between 2 linux servers #netcat #perf-test #linux #network
## Netcat server command
nc -l -p <unused port # > /dev/null
eg:
nc -l -p 1122 > /dev/null
## Netcat Client command
dd if=/dev/zero bs=100M count=1 | nc <netcat server> <netcat port>
eg:
dd if=/dev/zero bs=100M count=1 | nc 10.0.1.251 1122
@neontorrent
neontorrent / install.sh
Created January 21, 2018 15:09 — forked from chuyik/install.sh
Bandwagon(搬瓦工) CentOS 7 安装 shadowsocks-libev 和 kcptun
######################
## shadowsocks-libev
######################
# install dependencies
yum install epel-release -y
yum install gcc gettext autoconf libtool automake make pcre-devel asciidoc xmlto udns-devel libev-devel -y
# install shadowsocks-libev
cd /etc/yum.repos.d/