Let Clash handle all local network traffic.
# Create a separate user to run Clash
useradd clash
# Note down UID
id clash
# Use rest of the file in this gist as usual.
{ | |
"version": "1", | |
"comment": "Here's an NextID proof of this Github account.", | |
"comment2": "To validate, base64.decode the signature, and recover pubkey from it using sign_payload with ethereum personal_sign algo.", | |
"persona": "0x03947957e8a8785b6520b96c1c0d70ae9cf59835eec18f9ac920bbf5733413366a", | |
"github_username": "nykma", | |
"sign_payload": "{\"action\":\"create\",\"created_at\":\"1647329242\",\"identity\":\"nykma\",\"platform\":\"github\",\"prev\":null,\"uuid\":\"ea7279e4-b00c-4447-b784-c8f45895fdc8\"}", | |
"signature": "p4kb/P2uuKCU40zZTs+jk6/ARAO5ZcXErvJU/8oXNVt3+b6SUzpauBW6wNT2N8fwQeXYGgFHCTEGon4qZbK3IQE=", | |
"created_at": "1647329242", | |
"uuid": "ea7279e4-b00c-4447-b784-c8f45895fdc8" |
#!/usr/bin/env ruby | |
# Maildir folder: create an UTF-8 symlink to original UTF-7 maildir. | |
# For example, it will create a symlink named '所有邮件' to a directory | |
# named '&YkBnCZCuTvY-' | |
utf7_dirs = Dir.entries(Dir.pwd).select do |dir| | |
dir.start_with?("&") | |
end | |
utf7_dirs.each do |dir| |
ss_redir_iptables
:
iptables
redir rules to ss_redir
ipset
of china IPs using chnroute.txt
ss_ctl
:
systemctl --user
chnroute_refresh
:[ | |
{ | |
"name": "XD75" | |
}, | |
[ | |
"Esc", | |
"!\n1", | |
"@\n2", | |
"#\n3", | |
"$\n4", |
[ | |
{ | |
"name": "Ergodone", | |
"author": "Nyk Ma <[email protected]>" | |
}, | |
[ | |
{ | |
"x": 3.5 | |
}, | |
"#\n3", |
[ | |
{ | |
"name": "Nyk's Planck", | |
"author": "Nyk Ma <[email protected]>", | |
"background": { | |
"name": "Carbon fibre 3", | |
"style": "background-image: url('/bg/carbonfibre/carbon_texture1869.png');" | |
}, | |
"switchMount": "cherry", | |
"switchBrand": "gateron", |
class Pointer | |
attr_reader :count, :array, :current, :index | |
def initialize(array) | |
raise unless array.is_a?(Array) | |
@array = array.clone | |
@count = @array.count | |
@current = @array.first | |
@index = 0 | |
end |
def subdomain!(sub="test") | |
::Rack::Test::DEFAULT_HOST.replace "#{sub}.your_domain.com" | |
end |
[ | |
{ | |
"name": "My ErgoDox keymap", | |
"author": "Nyk Ma", | |
"switchMount": "cherry", | |
"switchBrand": "gateron", | |
"switchType": "KS-3-Yellow", | |
"pcb": false, | |
"plate": true | |
}, |