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
[Unit] | |
Description=Keeps a tunnel to 'remote.example.com' open | |
After=network.target | |
[Service] | |
User=autossh | |
# -p [PORT] | |
# -l [user] | |
# -M 0 --> no monitoring | |
# -N Just open the connection and do nothing (not interactive) |
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
#!/usr/bin/env bash | |
# set -euo pipefail | |
# aria2 | |
# aria2c --conf-path=/home/wd/.aria2/aria2.conf -D | |
# update tracker list | |
# last_run_timestamp=Fri Nov 20 09:25:58 PM CST 2020 | |
tracker_lists=`curl https://cdn.jsdelivr.net/gh/ngosang/trackerslist/trackers_best.txt | grep -v '^\s*$' | sed ":a;N;s/\n/,/g;$!ba"` | |
# echo $tracker_lists |
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
#!/usr/bin/env python3 | |
# | |
import io | |
import re | |
import os | |
import sys | |
import pdb | |
# filename = "/home/wd/wordcount.log" |
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
#!/usr/bin/env bash | |
set -euo pipefail | |
vmess_file_path=$1 | |
config_file_path=$2 | |
vmess_line=$3 | |
line=`sed -n ${vmess_line}p $vmess_file_path` | |
result=`v2ray-tools vmess2config --port 8080 --url $line` | |
outbound=`echo $result | jq '.outbounds[0]'` |
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
// todo | |
// https://www.5fun.com/game-detailed/2720125713.html |
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
// | |
// Created by Administrator on 2019/10/16. | |
// | |
#include <iostream> | |
#include <vector> | |
#include <algorithm> | |
using namespace std; |
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
// | |
// Created by suzumiya on 8/29/19. | |
// | |
#include <stack> | |
using namespace std; | |
int partition(int * a, int left, int right) | |
{ |
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
git config --global https.proxy http://127.0.0.1:1080 | |
git config --global https.proxy https://127.0.0.1:1080 | |
git config --global --unset http.proxy | |
git config --global --unset https.proxy | |
npm config delete proxy |
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
/** | |
* genpac 2.0.1 https://github.com/JinnLynn/genpac | |
* Generated: 2018-04-11 16:48:55 | |
* GFWList Last-Modified: 2018-04-09 12:19:42 | |
* GFWList From: online[https://raw.githubusercontent.com/gfwlist/gfwlist/master/gfwlist.txt] | |
*/ | |
var proxy = 'SOCKS5 127.0.0.1:1080'; | |
var rules = [ | |
[ |
NewerOlder