Skip to content

Instantly share code, notes, and snippets.

View tsing's full-sized avatar
🦀

Jesse Wang tsing

🦀
View GitHub Profile
  • abc
    • def
      • aaaa
      • bbbb
    • foo
  • ghi
diff --git a/lib-0.8.2/UnicodeBidi.js.flow b/lib/UnicodeBidi.js.flow
index d55ca3b..419ba32 100644
--- a/lib-0.8.2/UnicodeBidi.js.flow
+++ b/lib/UnicodeBidi.js.flow
@@ -25,7 +25,7 @@ const UnicodeBidiDirection = require('./UnicodeBidiDirection');
const invariant = require('./invariant');
-import type { BidiDirection } from 'UnicodeBidiDirection';
+import type { BidiDirection } from './UnicodeBidiDirection';
role_controller() {
[ "${Role}" == "controller" ] && return 0
return 1
}
role_agent() {
[ "${Role}" == "agent" ] && return 0
return 1
}
[General]
skip-proxy = 192.168.0.0/16, 10.0.0.0/8, 172.16.0.0/12, 100.64.0.0/10, localhost, *.local, 127.0.0.1
bypass-tun = 192.168.0.0/16, 10.0.0.0/8, 172.16.0.0/12, 100.64.0.0/10
loglevel = notify
[Proxy]
Proxy = https,prx.example.com,443,username,password
USProxy = https,prx-us.example.com,443,username,password
UKProxy = https,prx-uk.example.com,443,username,password
docker images |grep none
abcd

Keybase proof

I hereby claim:

  • I am tsing on github.
  • I am tsing (https://keybase.io/tsing) on keybase.
  • I have a public key whose fingerprint is 8981 879F 8B21 DEEF 6E1A 2A60 EDA2 A071 02D5 AA36

To claim this, I am signing this object:

@tsing
tsing / proxy-tunnel.py
Created January 23, 2013 07:56
create tunnel through http proxy
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import SocketServer
import socket
import logging
import select
import threading
import signal
import argparse
@tsing
tsing / hack.sh
Created July 9, 2012 13:36 — forked from DAddYE/hack.sh
OSX For Hackers
#!/bin/sh
##
# This is a script with usefull tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# Run in interactive mode with:
# $ sh -c "$(curl -sL https://raw.github.com/gist/2108403/hack.sh)"
#
# or run it without prompt questions:
@tsing
tsing / ed2kHash.py
Created May 28, 2012 15:00 — forked from fcicq/ed2kHash.py
ed2kHash class for python
# by fcicq (fcicq at fcicq dot net) @ 2012.5.12, Released under GPLv2
import hashlib
from cStringIO import StringIO
class ed2kHash():
CHUNK_SIZE = 9728000
BLOCK_SIZE = 65536
chunkmd4_list = ''
chunkmd4 = None
chunkpos = 0
var posix = require('posix'),
sys = require('sys'),
http = require('http');
http.createServer(function (req, res) {
checkBalanceFile(req, res);
}).listen(8000);
function checkBalanceFile(req, res) {
var promise = posix.stat("balance");