Skip to content

Instantly share code, notes, and snippets.

View ayanamist's full-sized avatar

ayanamist ayanamist

View GitHub Profile
@ayanamist
ayanamist / proxy.pac
Created November 24, 2011 06:08
My Pac File for Auto Proxy
var PROXY = {
"direct":"DIRECT",
"gfw":"PROXY 127.0.0.1:8123"
};
var DEFAULT = "direct";
var SECTIONS = [
{
"name":"direct",
@ayanamist
ayanamist / openvpn-reconnect.sh
Created October 27, 2011 13:02
OpenVPN reconnect Bash script
#!/bin/bash
# configuration
DEVICE="tap0"
USERNAME="twitter"
PASSWORD="twitter"
# check configuration and environment
if [ -z $DEVICE ]; then
echo You must specific DEVICE first.
@ayanamist
ayanamist / MyEncoder.bat
Created September 3, 2011 10:25
mp4convertor
@echo off
set CurPath=%0
IF NOT "%CurPath%"=="" set CurPath=%CurPath:~0,-15%"
set PATH=%CurPath%;%PATH%
set flock="%CurPath%\converting.txt"
:START
if exist %flock% goto WAIT
echo 文件正在转换中!请勿删除此文件! > %flock%
@ayanamist
ayanamist / app.yaml
Created June 30, 2011 14:05
Google App Engine Twitter API Proxy (T Mode)
application: gtap
version: 1
runtime: python
api_version: 1
handlers:
- url: /t/.*
script: main.py