Skip to content

Instantly share code, notes, and snippets.

View wangyan's full-sized avatar
🌴
On vacation

WangYan wangyan

🌴
On vacation
View GitHub Profile
@wangyan
wangyan / resilio_sync_v2ray.md
Last active March 30, 2024 03:00
Resilio Sync 科学之路

“没有可用的跟踪程序连接”,现在 Resilio Sync 已经不可用了,原因是官方的 Tracker 服务器被和谐了。一个普遍方法是,通过 Zerotier 构建虚拟局域网来跳过 Tracker 服务器,甚至将 sync 降级到 1.4.111 版本来加入 DHT 网络,但最后的实际体验都非常不友好,所以科学连上 Tracker 服务器才是正道。

一、原因

Sync 启动后会从 https://config.resilio.com/sync.conf 或者 http://config.getsync.com/sync.conf 获取 trackers 和 relays 服务器列表,而这两个地址均已被屏蔽。

sync.conf 文件内容如下:

sync.conf

@wangyan
wangyan / config.json
Last active July 6, 2021 09:30
v2ray 规则 (Resilio Sync)
{
"log": {
"loglevel": "debug",
"access": "access.log",
"error": "error.log"
},
"inbound": {
"port": 1080,
"listen": "127.0.0.1",
"protocol": "socks",
@wangyan
wangyan / keybase.md
Created July 16, 2017 12:16
Keybase proof

Keybase proof

I hereby claim:

  • I am wangyan on github.
  • I am wangyan (https://keybase.io/wangyan) on keybase.
  • I have a public key whose fingerprint is 5364 253E 993C B43A 4576 74CC 3029 1D65 E621 9A6B

To claim this, I am signing this object:

@wangyan
wangyan / readme-template.md
Created July 15, 2017 20:06
README 模板

Project Title 项目名称

简单描述这个项目是什么。

[![NPM Version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Downloads Stats][npm-downloads]][npm-url]

用一两段话介绍这个项目以及它能做些什么。

@wangyan
wangyan / vps_auto_backup.sh
Created December 21, 2011 12:27
vps automatic local and offsite backup shell cript
#! /bin/bash
#====================================================================
# vps_auto_backup.sh
#
# Copyright (c) 2011, WangYan <webmaster@wangyan.org>
# All rights reserved.
# Distributed under the GNU General Public License, version 3.0.
#
# vps automatic local and offsite backup shell cript
#
@wangyan
wangyan / rtorrent.sh
Created October 30, 2011 16:41
rtorrent satart shell script
#!/bin/sh
case "$1" in
start)
echo -n "Starting rtorrent"
su - root -c "screen -A -m -d -S rtorrent /usr/local/bin/rtorrent" &
echo "."
;;
stop)
echo -n "Stopping rtorrent"
@wangyan
wangyan / .rtorrent.rc
Created October 30, 2011 13:57
This is an Chinese example resource file for rTorrent.
# This is an example resource file for rTorrent. Copy to
# ~/.rtorrent.rc and enable/modify the options as needed. Remember to
# uncomment the options you wish to enable.
# 每个种子所允许的最小最大连接数
#min_peers = 40
#max_peers = 100
# 同上,但仅针对已完成的种子(-1 表示与下载中的种子一致)
#min_peers_seed = 10
@wangyan
wangyan / sys-mon.sh
Created September 14, 2011 15:13
Monitor system mem and load, if too high, restart some service.
#! /bin/bash
#====================================================================
# sys-mon.sh
#
# Copyright (c) 2011, WangYan <webmaster@wangyan.org>
# All rights reserved.
# Distributed under the GNU General Public License, version 3.0.
#
# Monitor system mem and load, if too high, restart some service.
#