Skip to content

Instantly share code, notes, and snippets.

@yknext
yknext / tmall.js
Created November 19, 2019 07:37
天猫精灵测试
//天猫精灵自定义技能,树莓派
var express = require('express')
var bodyParser = require('body-parser')
var NodeRSA = require('node-rsa')
var fs = require('fs')
var publicKey = new NodeRSA(fs.readFileSync(__dirname+'/public_key.pem').toString('ascii'));
var privateKey = new NodeRSA(fs.readFileSync(__dirname+'/private_key.pem').toString('ascii'));
publicKey.setOptions({encryptionScheme: 'pkcs1'})
privateKey.setOptions({encryptionScheme: 'pkcs1'})
@yknext
yknext / iptv.conf
Created July 30, 2019 10:48
四川电信IPTV 330个组播地址
CCTV-1高清 igmp://239.93.0.184:5140
CCTV-2高清 igmp://239.93.1.23:6000
CCTV-3高清 igmp://239.93.1.11:2223
CCTV-4高清 igmp://239.93.1.105:5140
CCTV-5高清 igmp://239.93.1.12:2224
CCTV-6高清 igmp://239.93.1.13:2226
CCTV-7高清 igmp://239.93.1.67:5140
CCTV-8高清 igmp://239.93.1.14:2225
CCTV-9高清 igmp://239.93.1.24:5140
CCTV-10高清 igmp://239.93.1.28:5140
@yknext
yknext / docker-compose.yml
Created June 26, 2019 09:01
raspberry-docker-transmission
version: "2"
services:
transmission:
image: linuxserver/transmission:arm32v7-latest
container_name: transmission
environment:
- PUID=0
- PGID=0
- TZ=Asia/Shanghai
volumes:
@yknext
yknext / docker-compose.yml
Created June 26, 2019 08:58
raspberry-docker-compose-timemachine
version: '2'
services:
timemachine:
image: odarriba/timemachine-rpi
container_name: timemachine
restart: always
network_mode: host
volumes:
- /etc/localtime:/etc/localtime:ro
- /data:/timemachine
@yknext
yknext / docker-compose.yml
Created April 13, 2018 03:09
docker transmission
transmission:
image: linuxserver/transmission
privileged: false
restart: "on-failure"
ports:
- 9091:9091
- 51413:51413
- 51413:51413/udp
volumes:
- /etc/localtime:/etc/localtime:ro
@yknext
yknext / client.json
Created April 11, 2018 16:29
V2ray Vmessage simple
{
"log" : {
"loglevel" : "none"
},
"inbound" : {
"port" : 1080,
"listen" : "0.0.0.0",
"protocol" : "socks",
"settings" : {
"auth" : "noauth",
@yknext
yknext / docker-compose.yml
Created April 11, 2018 16:20
Nextcloud and collabora Office
app:
image: nextcloud
ports:
- 80:80
external_links:
- mysql_MySQL_1:mysql
volumes:
- /etc/localtime:/etc/localtime:ro
- nextcloud:/var/www/html
restart: always
@yknext
yknext / config.json
Last active December 9, 2020 13:17
使用gost和iptables实现socks5透明代理
# gost配置 /opt/gost/config.json
# https://github.com/ginuerzh/gost
{
"ServeNodes":[
"redirect://:65500"
],
"ChainNodes":[
"socks://192.168.200.144:11080"
]
}
@yknext
yknext / docker-compose.yml
Created April 11, 2018 16:08
dnscrypt dns with docker
dnscrypt-proxy:
image: gists/dnscrypt-proxy
ports:
- "5353:5353/udp"
- "5353:5353/tcp"
environment:
- USER=nobody
- LOCAL_IP=0.0.0.0
- LOCAL_PORT=5353
- RESOLVER_IP=212.47.228.136
@yknext
yknext / docker-compose.yml
Created April 11, 2018 15:33
docker-compose gitlab
gitlab:
restart: always
image: sameersbn/gitlab:10.4.2-1
ports:
- "10022:22"
- "10080:80"
- "10443:443"
volumes:
- /etc/localtime:/etc/localtime:ro
- gitlab_data:/home/git/data