This gist is now deprecated and moved to janlay/openai-cloudflare. Stay tuned!
This gist provides key guideline to make Clash tun handle Telegram's pure IP traffic.
- The IP list file
telegram.list
is located in/etc/asn/
7892
isredir-port
in Clash's config file- iptables module
iptables-mod-extra
is required for the--match-set
usage
- Prepare your Clash service with:
I hereby claim:
- I am janlay on github.
- I am janlay (https://keybase.io/janlay) on keybase.
- I have a public key ASAdsgFM0gJM4sbu3Jm2dr4rysHJIdVt4leRb1UI_JGX3wo
To claim this, I am signing this object:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e | |
# Backup db and certs in $BITWARDEN_DIR into $TARGET_DIR/$FILENAME_PREFIX$DATE.tar.gz | |
BITWARDEN_DIR='/volume1/docker/Bitwarden' | |
TARGET_DIR='/var/services/dropbox/Backup/Bitwarden' | |
FILENAME_PREFIX='bw-backup_' | |
FILENAME_DATE_PATTERN='%m-%d' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Windows Registry Editor Version 5.00 | |
[HKEY_CLASSES_ROOT\MSEdgePDF\shell\open\command] | |
@="\"C:\\Program Files\\Microsoft\\Edge\\Application\\msedge.exe\" --disk-cache-dir=R:\\MSEdge -- \"%1\"" | |
[HKEY_CLASSES_ROOT\MSEdgeHTM\shell\open\command] | |
@="\"C:\\Program Files\\Microsoft\\Edge\\Application\\msedge.exe\" --disk-cache-dir=R:\\MSEdge -- \"%1\"" | |
[HKEY_CLASSES_ROOT\http\shell\open\command] | |
@="\"C:\\Program Files\\Microsoft\\Edge\\Application\\msedge.exe\" --disk-cache-dir=R:\\MSEdge -- \"%1\"" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# author: [email protected] | |
set -e | |
cols=$(bc <<< "$(tput cols) / 3 - 2") | |
char=✾ | |
echo -n ' ' | |
for col in $(seq 0 $cols); do |
NewerOlder