Skip to content

Instantly share code, notes, and snippets.

:shipit:
疯狂打码中

Wensheng Tang legendtang

:shipit:
疯狂打码中
View GitHub Profile
@legendtang
legendtang / .config
Created Dec 21, 2019
K2P OpenWrt Build Configuration
View .config
#
# Automatically generated file; DO NOT EDIT.
# OpenWrt Configuration
#
CONFIG_MODULES=y
CONFIG_HAVE_DOT_CONFIG=y
# CONFIG_TARGET_sunxi is not set
# CONFIG_TARGET_apm821xx is not set
# CONFIG_TARGET_ath25 is not set
# CONFIG_TARGET_ar71xx is not set
@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
You can’t perform that action at this time.