Skip to content

Instantly share code, notes, and snippets.

@ruandao
ruandao / game-node.service
Created July 20, 2018 08:16
golang 守护进程 systemctl 自动重启 配置
# /usr/lib/systemd/system/game-node.service
[Unit]
Description=Fish Game Node
After=network.target
[Service]
WorkingDirectory=/root/freeStyleGame
ExecStart=/root/freeStyleGame/b_node
Restart=always
RestartSec=10s
@ruandao
ruandao / CreateTestCaseIfNoExist.sh
Last active July 2, 2019 17:21
django auto generate test fileand support doctest
#!/usr/bin/env bash
forModule() {
moduleName=$1
for f in `find ../${moduleName} -name "*.py"`;do
withoutDoubleSlash="${f#*//}"
withoutUpperLevel="${withoutDoubleSlash#../}"
file=$withoutUpperLevel
filename=$(basename $file)
d=$(dirname $file)
@ruandao
ruandao / README.md
Last active May 14, 2022 06:53 — forked from raecoo/README.md
Surge config

Install Configurations

Download rules.conf

下面的还没试用过:

Advanced Tips: