Skip to content

Instantly share code, notes, and snippets.

@palytoxin
palytoxin / append.sh
Last active November 17, 2021 06:35 — forked from LukeDemons/append.sh
申请软件著作权时,源代码处理脚本
#!/bin/bash
read_dir() {
for item in $(ls $1)
do
if [ -d $1"/"$item ];then
read_dir $1"/"$item
else
file=$1"/"$item
suffix=${file##*.}
@palytoxin
palytoxin / shadowsocks.service
Last active July 3, 2020 07:53
shadowsocks.service
[Unit]
Description=Shadowsocks Server
After=network.target
[Service]
User=nobody
Group=nobody
ExecStart=/usr/bin/ssserver --pid-file /var/run/shadowsocks/redir.pid -c /etc/shadowsocks.json
Restart=on-failure
ExecReload=/bin/kill -HUP $MAINPID