Skip to content

Instantly share code, notes, and snippets.

@glenhoooo
glenhoooo / git_ssh_proxy.md
Created June 13, 2023 08:45 — forked from chenshengzhi/git_ssh_proxy.md
git ssh 代理设置

仅为 GitHub 设置代理

git 代理

设置 git config --global http.https://github.com.proxy socks5://127.0.0.1:1086
设置完成后, ~/.gitconfig 文件中会增加以下条目:

[http "https://github.com"]
    proxy = socks5://127.0.0.1:1086
@glenhoooo
glenhoooo / cloudflare_dyn_dns.sh
Last active August 8, 2022 09:26 — forked from chappy84/cloudflare_dyn_dns.sh
CloudFlare Dynamic DNS Shell Script
#!/bin/sh
#
# CloudFlare Dynamic DNS
#
# Updates CloudFlare records with the current public IP address
#
# Takes the same basic arguments as A/CNAME updates in the CloudFlare v4 API
# https://www.cloudflare.com/docs/client-api.html#s5.2
#
# Use with cron jobs etc.
daemon off;
error_log /dev/stdout error;
worker_processes 4;
events {
worker_connections 1024;
}