Docker tun device into container install openvpn or other soft, which uses tun devices
This file contains hidden or 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
# Create new chain | |
iptables -t nat -N SHADOWSOCKS | |
iptables -t mangle -N SHADOWSOCKS | |
# Ignore your shadowsocks server's addresses | |
# It's very IMPORTANT, just be car |
This file contains hidden or 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
version: '3' | |
services: | |
ffmpeg: | |
image: ffmpeg-nvidia | |
# ports: 27017:27017 | |
volumes: | |
- $HOME/media:/home/cch/media | |
- $PWD:/data | |
- /usr/lib/nvidia-384/:/usr/local/nvidia/lib/ | |
working_dir: /data |
This file contains hidden or 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
function escapeRegExp(text) { | |
return text.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, '\\$&'); | |
} |
This file contains hidden or 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
// import React from 'react' | |
// import {_, _c, _p, _cp} from 'i18n-utils' | |
var nodeGettext = require('node-gettext') | |
window.ifrxGT = window.ifrxGT || new nodeGettext() | |
function GetText(props) { | |
let {args, message, children, messagePlural, context} = props | |
let msg = message || children | |
let isPlural = props.messagePlural && args.count | |
let hasContext = props.context |
This file contains hidden or 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
#用户名 | |
#rpc-user=user | |
#密码 | |
#rpc-passwd=passwd | |
#上面的认证方式不建议使用,建议使用下面的token方式 | |
#设置加密的密钥 |