Skip to content

Instantly share code, notes, and snippets.

View omegazeng's full-sized avatar
🌘
月に代わって、お仕置きよ!

Omega Zeng omegazeng

🌘
月に代わって、お仕置きよ!
View GitHub Profile
@omegazeng
omegazeng / run-xtrabackup.sh
Last active September 12, 2020 18:57 — forked from jmfederico/run-xtrabackup.sh
Script to create full/incremental backups with mariabackup/xtrabackup.
#!/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
@omegazeng
omegazeng / sslocal.service
Last active February 1, 2019 09:43 — forked from ygmpkk/sslocal.service
ShadowSocks Client Systemd Service
# /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