Skip to content

Instantly share code, notes, and snippets.

View qiujuer's full-sized avatar
🏠
Working from home

Qiujuer qiujuer

🏠
Working from home
View GitHub Profile
#!/bin/bash
# Install Shadowsocks on CentOS 8
# From: https://gist.githubusercontent.com/tianjianchn/888a610036c743c4aba2ea1e82f4a216/raw/8888550445860decec3e66169b130f742a3b56c7/install-shadowsocks.sh
echo "Installing Shadowsocks..."
random-string()
{
cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w ${1:-32} | head -n 1
}