Skip to content

Instantly share code, notes, and snippets.


Jack WU sparrowjack

View GitHub Profile
sparrowjack /
Last active Jun 6, 2018 — forked from johnjohndoe/
Redmine installation on macOS #2018

Redmine installation on MacOSX

  • A summarized instruction tested on macOSX 10.13 installing Ruby 2.4.1.

Install brew

  • Follow the instructions on
  • $ /usr/bin/ruby -e "$(/usr/bin/curl -fsSL"

brew hints

sparrowjack /
Last active Mar 16, 2018
protobuf .js file to origin .proto file
# usage: python3 [-h] [--js_path JS_PATH] [--js_library JS_LIBRARY]
# optional arguments:
# -h, --help show this help message and exit
# --js_path JS_PATH, -p JS_PATH
# javascript pb file path
# --js_library JS_LIBRARY, -l JS_LIBRARY
# the library name of pb
def is_repeat_needed(is_needed):
sparrowjack /
Last active Apr 11, 2017
python large file download
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from pathlib import Path
import requests
from random import randint
base_timeout = 10
headers = {'User-Agent': '-UserAgentStrings-'}
# pip install fake-useragent
View ESP8266 Web Server to storing ap config to

ESP8266 Web Server to storing ap config to EEPROM.

Original by chriscook8 from I just modified to use ESP8266WebServer library for easy to handle the http request.

This is sample code not yet complete.


  • when Wifi connected need to close the softAP.
sparrowjack / Main.conf
Created Nov 9, 2015
Yet another config for
View Main.conf
# warning, notify, info, verbose
skip-proxy =,,,, localhost, *.local,
bypass-tun =,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,