Skip to content

Instantly share code, notes, and snippets.

@xdujiang
xdujiang / config.json
Created March 11, 2018 10:06 — forked from wd/config.json
路由器梅林固件上面使用 v2ray 的方案
{
"log": {
"loglevel": "none"
},
"inbound": {
"port": 23456,
"listen": "127.0.0.1",
"protocol": "socks",
"settings": {
"udp": true
@xdujiang
xdujiang / subtitle_downloader.py
Created November 18, 2016 05:19 — forked from ihciah/subtitle_downloader.py
Xunlei subtitle downloader
#!/usr/bin/python
# -*- coding: utf-8 -*-
# __author__ = 'ihciah'
# cid_hash_file function from https://github.com/binux/lixian.xunlei/blob/master/libs/tools.py
import hashlib
import inotify.adapters
import os
import requests
import re
@xdujiang
xdujiang / ipfilter.dat
Created March 7, 2016 12:00
XDU_ipfilter
0.0.0.0-10.0.0.0
10.255.255.255-115.155.0.0
115.155.63.255-202.117.112.0
202.117.127.255-210.27.0.0
210.27.15.255-219.244.112.0
219.244.127.255-219.245.64.0
219.245.127.255-222.25.128.0
222.25.191.255-255.255.255.255
0::0-2001:249:ffff:ffff:ffff:ffff:ffff:ffff
2001:251::0-2001:255:ffff:ffff:ffff:ffff:ffff:ffff
@xdujiang
xdujiang / install_pytho2710.sh
Last active September 16, 2015 08:16 — forked from ftao/install_pytho27.sh
install python 2.7 on debian 6
#!/bin/sh
mkdir ~/down/
cd ~/down/
sudo apt-get install build-essential
wget http://www.python.org/ftp/python/2.7.10/Python-2.7.10.tgz
tar -xzf Python-2.7.10.tgz
cd Python-2.7.10
sudo apt-get install libsqlite3-dev zlib1g-dev libncurses5-dev
sudo apt-get install libgdbm-dev libbz2-dev libreadline5-dev
sudo apt-get install libssl-dev libdb-dev
https://ooo.0o0.ooo/2015/07/21/55add577690f2.png