test)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# coding=utf8 | |
import os | |
import sys | |
DEFAULT_DOCKER_HUB_URL = "docker.io" | |
GCR_URL = "k8s.gcr.io" | |
mirror_map = { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/ash | |
# Name: generate_dnsmasq_chinalist.sh | |
# Desription: A script which auto-download newest dnsmasq-china-list and add ipset rules to the config file. | |
# Version: 2017-01-30 | |
# Author: Cokebar Chi | |
# Website: https://gist.github.com/cokebar | |
usage() { | |
cat <<-EOF |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* A white-list based PAC without regexp, by @janlay | |
* It's just simple and fast. | |
* Last update: Oct 20, 2015 | |
* Special thanks to @Paveo | |
*/ | |
function FindProxyForURL(url, host) { | |
// REPLACE PROXY WITH YOUR OWN'S | |
var PROXY = "SOCKS 127.0.0.1:1080;SOCKS5 127.0.0.1:1080;PROXY 127.0.0.1:8888"; | |
var BLACKHOLE = "127.0.0.2"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# init a repo | |
mkdir repo | |
cd repo | |
git init --bare . | |
# make init commit | |
cd .. | |
git clone repo work | |
cd work | |
echo "test" > readme.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
###################################################################### | |
# | |
# File : split_bootimg.pl | |
# Author(s) : William Enck <enck@cse.psu.edu> | |
# Description : Split appart an Android boot image created | |
# with mkbootimg. The format can be found in | |
# android-src/system/core/mkbootimg/bootimg.h | |
# | |
# Thanks to alansj on xda-developers.com for |