This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| for file in `ls ./` | |
| do | |
| if [ -d $file ] | |
| then | |
| pushd $file | |
| git add --all | |
| git commit -m "修改配置" | |
| git push --all origin | |
| popd | |
| fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| # | |
| # Script for automatic setup of an SS-TPROXY server on CentOS 7.3 Minimal. | |
| # | |
| export PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" | |
| exiterr() { echo "Error: $1" >&2; exit 1; } | |
| exiterr2() { exiterr "'yum install' failed."; } | |
| bigecho() { echo; echo -e "\033[36m $1 \033[0m"; } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public static class ConsoleHost { | |
| /// <summary> | |
| /// Block the calling thread until shutdown is triggered via Ctrl+C or SIGTERM. | |
| /// </summary> | |
| public static void WaitForShutdown() { | |
| WaitForShutdownAsync().GetAwaiter().GetResult(); | |
| } | |
| /// <summary> |
NewerOlder