This file contains 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
# /etc/systemd/system/sslocal.service | |
[Unit] | |
Description=Daemon to start Shadowsocks Client | |
Wants=network-online.target | |
After=network.target | |
[Service] | |
Type=simple | |
ExecStart=/usr/bin/sslocal -c /etc/shadowsocks/config.json |
This file contains 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/bash | |
# https://gist.github.com/omegazeng/d9d07a8a1c2bd7bb2cab38e32a12058b | |
export LC_ALL=en_US.UTF-8 | |
set +x | |
REGISTRY_URL=$1 | |
IMAGE_NAME=$2 |
This file contains 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 | |
# https://gist.github.com/omegazeng/18b58dfc6995aaeed0bce70bdbb30caf | |
# use admin | |
# db.createUser( | |
# { | |
# user: "backup", | |
# pwd: "YourPassword", | |
# roles: [ "backup", "restore" ] | |
# } |
This file contains 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 | |
# https://gist.github.com/omegazeng/ea3a2b1b52caca62a81e859c34eadba4 | |
# GRANT RELOAD, LOCK TABLES, REPLICATION CLIENT ON *.* TO 'backup'@'localhost' identified by 'YourPassword'; | |
# FLUSH PRIVILEGES; | |
# | |
# Usage: | |
# MYSQL_PASSWORD=YourPassword bash run-xtrabackup.sh | |
MYSQL_USER=backup |