Skip to content

Instantly share code, notes, and snippets.

:shipit:
疯狂打码中

Wensheng Tang legendtang

:shipit:
疯狂打码中
Block or report user

Report or block legendtang

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@legendtang
legendtang / ss_switch.sh
Last active Dec 4, 2018
Switch shadowsocks-libev nodes using brew services
View ss_switch.sh
#!/bin/bash
if test -f "/usr/local/etc/shadowsocks-libev-$1.json"; then
echo "/usr/local/etc/shadowsocks-libev-$1.json"
echo "Switch to $1 node"
cp /usr/local/etc/shadowsocks-libev.json /usr/local/etc/shadowsocks-libev.bak.json
cp "/usr/local/etc/shadowsocks-libev-$1.json" /usr/local/etc/shadowsocks-libev.json
brew services restart shadowsocks-libev
fi
@legendtang
legendtang / shadowsocks-server
Created Oct 27, 2018 — forked from EvianZhow/shadowsocks-server
shadowsocks-server OpenWRT init.d script
View shadowsocks-server
#!/bin/sh /etc/rc.common
#
# Copyright (C) 2016 Jian Chang <aa65535@live.com>
# Copyright (C) 2016 Evian Zhow <evianzhow@gmail.com>
#
# This is free software, licensed under the GNU General Public License v3.
# See /LICENSE for more information.
#
START=90
View gist:b0794b5ead58b79da4aeaae93ca320eb
src/gz reboot_core http://mirrors.ustc.edu.cn/lede/releases/17.01.2/targets/ar71xx/generic/packages
src/gz reboot_base http://mirrors.ustc.edu.cn/lede/releases/17.01.2/packages/mips_24kc/base
src/gz reboot_luci http://mirrors.ustc.edu.cn/lede/releases/17.01.2/packages/mips_24kc/luci
src/gz reboot_packages http://mirrors.ustc.edu.cn/lede/releases/17.01.2/packages/mips_24kc/packages
src/gz reboot_routing http://mirrors.ustc.edu.cn/lede/releases/17.01.2/packages/mips_24kc/routing
src/gz reboot_telephony http://mirrors.ustc.edu.cn/lede/releases/17.01.2/packages/mips_24kc/telephony
View 50-user.conf
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<!--
Load per-user customization files where stored on XDG Base Directory
specification compliant places. it should be usually:
$HOME/.config/fontconfig/conf.d
$HOME/.config/fontconfig/fonts.conf
-->
@legendtang
legendtang / 50-user.conf
Created Feb 28, 2017
Fontconfig after installing WPS
View 50-user.conf
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<!--
Load per-user customization files where stored on XDG Base Directory
specification compliant places. it should be usually:
$HOME/.config/fontconfig/conf.d
$HOME/.config/fontconfig/fonts.conf
-->
@legendtang
legendtang / Proxifier.ppx
Last active Dec 26, 2016
Yer Another Configuration for Proxifier (Chinese Users)
View Proxifier.ppx
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ProxifierProfile version="101" platform="Windows" product_id="0" product_minver="310">
<Options>
<Resolve>
<AutoModeDetection enabled="true" />
<ViaProxy enabled="false">
<TryLocalDnsFirst enabled="false" />
</ViaProxy>
<ExclusionList>%ComputerName%; localhost; *.local</ExclusionList>
</Resolve>
@legendtang
legendtang / config.py
Last active Nov 3, 2016
Configuration file for binux/qiandao with env var support.
View config.py
#!/usr/bin/env python
# -*- encoding: utf-8 -*-
# vim: set et sw=4 ts=4 sts=4 ff=unix fenc=utf8:
# Author: Binux<i@binux.me>
# http://binux.me
# Created on 2014-07-30 12:21:48
# Modified on 2016-11-03 01:46:00 by @legendtang
import hashlib
import os
@legendtang
legendtang / hosts.bat
Created Jul 16, 2016
BAT for quick access to editing Windows hosts
View hosts.bat
@echo off
:: BatchGotAdmin
:-------------------------------------
REM --> Check for permissions
>nul 2>&1 "%SYSTEMROOT%\system32\cacls.exe" "%SYSTEMROOT%\system32\config\system"
REM --> If error flag set, we do not have admin.
if '%errorlevel%' NEQ '0' (
echo Requesting administrative privileges...
@legendtang
legendtang / gapps-config-jfltexx.txt
Created Dec 27, 2015
Configurations for Open GApps Stock Package (jfltexx)
View gapps-config-jfltexx.txt
Books
CloudPrint
Fitness
Keep
NewsStand
NewsWidget
Hangouts
Movies
Email
Gmail
View dnscrypt-resolvers.csv
We can make this file beautiful and searchable if this error is corrected: It looks like row 5 should actually have 14 columns, instead of 6. in line 4.
Name,Full name,Description,Location,Coordinates,URL,Version,DNSSEC validation,No logs,Namecoin,Resolver address,Provider name,Provider public key,Provider public key TXT record
adamas,Adamas.ai DNSCrypt,DNSCrypt Server in LUX provided by adamas.ai,Luxembourg,,http.//adamas.ai,1,no,yes,no,80.90.43.162:5678,2.dnscrypt-cert.adamas.ai,6484:544A:4B91:F23A:E8AD:2AA3:6661:C419:D09B:C88D:B1AF:C314:E59D:2C36:0F81:FB99,
cisco,Cisco OpenDNS,Remove your DNS blind spot,Anycast,,https://www.opendns.com,1,no,no,no,208.67.220.220:443,2.dnscrypt-cert.opendns.com,B735:1140:206F:225D:3E2B:D822:D7FD:691E:A1C3:3CC8:D666:8D0C:BE04:BFAB:CA43:FB79,
cisco-familyshield,Cisco OpenDNS with FamilyShield,Blocks web sites not suitable for children,Anycast,,https://www.opendns.com/home-internet-security/parental-controls/,1,no,no,no,208.67.220.123:443,2.dnscrypt-cert.opendns.com,B735:1140:206F:225D:3E2B:D822:D7FD:691E:A1C3:3CC8:D666:8D0C:BE04:BFAB:CA43:FB79,
cisco-ipv6,Cisco OpenDNS over IPv6,Cisco OpenDNS IPv6 sandbox,Anycast,,https://www.
You can’t perform that action at this time.