Skip to content

Instantly share code, notes, and snippets.

View arcturus011's full-sized avatar
👋
Focusing

arcturus arcturus011

👋
Focusing
  • China, GuangZhou
View GitHub Profile
#用户名
#rpc-user=user
#密码
#rpc-passwd=passwd
#上面的认证方式不建议使用,建议使用下面的token方式
#设置加密的密钥
@arcturus011
arcturus011 / jsx
Created April 23, 2018 02:06
narp comment
// 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
function escapeRegExp(text) {
return text.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, '\\$&');
}
@arcturus011
arcturus011 / conf.yml
Created June 24, 2018 10:57
docker-compose-custom-network
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
# 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
@arcturus011
arcturus011 / README.md
Last active September 13, 2021 03:55 — forked from ptflp/README.md
docker tun device into container

Docker tun device into container install openvpn or other soft, which uses tun devices