Skip to content

Instantly share code, notes, and snippets.

View binhoul's full-sized avatar
🇨🇳

binhoul binhoul

🇨🇳
  • Chengdu
View GitHub Profile
@ruanbekker
ruanbekker / promtail_docker_logs.md
Last active May 31, 2024 23:52
Docker Container Logging using Promtail
@fevangelou
fevangelou / my.cnf
Last active May 23, 2024 15:15
Optimized my.cnf configuration for MySQL/MariaDB (on Ubuntu, CentOS, Almalinux etc. servers)
# === Optimized my.cnf configuration for MySQL/MariaDB (on Ubuntu, CentOS, Almalinux etc. servers) ===
#
# by Fotis Evangelou, developer of Engintron (engintron.com)
#
# ~ Updated December 2021 ~
#
#
# The settings provided below are a starting point for a 8-16 GB RAM server with 4-8 CPU cores.
# If you have different resources available you should adjust accordingly to save CPU, RAM & disk I/O usage.
#
@orita
orita / virt-install_ubuntu12
Created June 27, 2012 02:01
virt-install ubuntu 12.04 with virtio
mkdir -p /data/kvm/images/ubuntu12/
qemu-img create -f qcow2 /data/kvm/images/ubuntu12/boot.img 10G
virt-install --connect qemu:///system \
--arch=x86_64 \
--accelerate \
--name ubuntu12 \
--ram=1024 \
--vcpus=2 \
--hvm \
@chuangbo
chuangbo / README.md
Last active June 19, 2023 04:48
Python dynamic DNSPod DNS Script

替换上你的 API Token,域名ID,记录ID等参数,就可以运行了。 会在后台一直运行,每隔30秒检查一遍IP,如果修改了就更新IP。

获取 API Token 的方式

获得 domain_id 可以用 curl

curl -k https://dnsapi.cn/Domain.List -d "login_token=TOKEN"`