shadowsocks + privoxy/tsocks
shadowsocks
: service, socks proxyprivoxy
: service, convert socks proxy to http proxytsocks
: tool, use socks proxy for any command line
tested under ubuntu14.04
/* Use libcurl to upload POST data. | |
Usage: PostUpload <post_data_filename> <url> | |
Used this as a speed test in Win7 x64, see | |
https://github.com/curl/curl/issues/708 | |
First test the speed in a web browser: | |
Go to https://testmy.net/mirror and choose the geographically closest mirror. | |
After the mirror is set click on 'Upload Test'. |
/* Use libcurl to POST JSON data. | |
Usage: PostJSON <name> <value> | |
curl-library mailing list thread: | |
'how do i post json to a https ?' | |
http://curl.haxx.se/mail/lib-2015-01/0049.html | |
Copyright (C) 2015 Jay Satiro <[email protected]> | |
http://curl.haxx.se/docs/copyright.html |
public class CountingFileRequestBody extends RequestBody { | |
private static final int SEGMENT_SIZE = 2048; // okio.Segment.SIZE | |
private final File file; | |
private final ProgressListener listener; | |
private final String contentType; | |
public CountingFileRequestBody(File file, String contentType, ProgressListener listener) { | |
this.file = file; |
#!/bin/bash | |
# Clones as usual but creates local tracking branches for all remote branches. | |
# To use, copy this file into the same directory your git binaries are (git, git-flow, git-subtree, etc) | |
clone_output=$((git clone "$@" ) 2>&1) | |
retval=$? | |
echo $clone_output | |
if [[ $retval != 0 ]] ; then | |
exit 1 |
Get FetchMacOS and place it in a known folder.
Open Command Prompt
and use cd
to go to the known folder.
Run fetch-macos.exe -p PRODUCTID -o SharedSupport
where PRODUCTID
is the macOS package you want to download.
InstallESDDmg.pkg
inside the SharedSupport
folder to InstallESD.dmg
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
import subprocess | |
from StringIO import StringIO | |
out = StringIO() | |
sp = subprocess.Popen(["python", "test_output.py"], | |
stdout=subprocess.PIPE, |
#!/bin/bash | |
set -e | |
set -x | |
# Set directory | |
SCRIPTPATH=`realpath .` | |
export ANDROID_NDK_HOME=$SCRIPTPATH/android-ndk-r20 | |
OPENSSL_DIR=$SCRIPTPATH/openssl-1.1.1c | |
# Find the toolchain for your build machine |