Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
# 将hash方式存放的相册如immich,重新整理为年月
# 定义源文件夹和目标根文件夹
SOURCE_DIR="2ce01bb6-e13d-46e5-b1ae-4e60f2d1c79c"
TARGET_DIR="./"
# 遍历源文件夹下的所有文件
find "$SOURCE_DIR" -type f | while read -r file; do
@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 28, 2024 16:01
使用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