Skip to content

Instantly share code, notes, and snippets.

View binhoul's full-sized avatar
🇨🇳

binhoul binhoul

🇨🇳
  • Chengdu
View GitHub Profile
@14790897
14790897 / ahr999_freqtrade.py
Last active October 18, 2025 07:08
ahr999_freqtrade
# --- Do not remove these libs ---
from freqtrade.strategy.interface import IStrategy
from pandas import DataFrame
import talib.abstract as ta
from freqtrade.strategy import CategoricalParameter, DecimalParameter, IntParameter
import numpy as np
import pandas as pd
import os
# --------------------------------
@ruanbekker
ruanbekker / promtail_docker_logs.md
Last active September 27, 2025 23:41
Docker Container Logging using Promtail
@fevangelou
fevangelou / my.cnf
Last active November 28, 2025 06:34
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 September 2024 ~
#
#
# 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 February 18, 2025 07:30
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"`