为了在Docker中运行OpenWrt系统,我们需要用到OpenWrt的docker镜像,网上有很多人分享已经制作好的镜像。但是,每个人都有自己不同的需求,自己学会制作镜像就显得特别重要了。
其实使用OpenWrt的固件, 可以很方便的构建Docker镜像,这里的固件不光是官方固件,也可以是经过自己定制编译生成的固件。
[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) |
#!/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 |
#!/usr/bin/env python3 | |
# | |
import io | |
import re | |
import os | |
import sys | |
import pdb | |
# filename = "/home/wd/wordcount.log" |
#!/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]'` |
// todo | |
// https://www.5fun.com/game-detailed/2720125713.html |
// | |
// Created by Administrator on 2019/10/16. | |
// | |
#include <iostream> | |
#include <vector> | |
#include <algorithm> | |
using namespace std; |
// | |
// Created by suzumiya on 8/29/19. | |
// | |
#include <stack> | |
using namespace std; | |
int partition(int * a, int left, int right) | |
{ |
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 |