Skip to content

Instantly share code, notes, and snippets.

@techotaku
techotaku / haproxy.cfg
Created January 8, 2018 14:18
SNI Proxy for Netflix
# sudo docker run -d --name unblocker-ha -v $HOME/unblocker:/usr/local/etc/haproxy -p 443:443/tcp --link unblocker-sni \
# --log-opt max-size=1m --restart=unless-stopped tarot13/haproxy
defaults
timeout connect 5s
timeout client 24h
timeout server 24h
global
log /dev/log local0
@techotaku
techotaku / google-https-dns
Created January 8, 2018 11:29
Init script for google-https-dns in LEDE
#!/bin/sh /etc/rc.common
#
# Copyright (C) 2017 Ian Li <[email protected]>
#
# This is free software, licensed under the GNU General Public License v3.
# See /LICENSE for more information.
#
START=75
@techotaku
techotaku / unbound.conf
Created January 8, 2018 11:03
DNS (unbound + google-https-dns)
# Network:
# sudo docker network create -d bridge --subnet=172.25.0.0/16 dns
# DNS Upstream:
# sudo docker run -d --name dns-google \
# --network=dns --ip=172.25.1.1 --log-opt max-size=1m --restart=unless-stopped tarot13/google-https-dns
# Unbound:
# sudo docker run -d --name dns-unbound -v $HOME/unbound:/etc/unbound -p 53:53/tcp -p 53:53/udp \
# --network=dns --ip=172.25.1.2 --log-opt max-size=1m --restart=unless-stopped tarot13/unbound
# File:
# $HOME/unbound/unbound.conf
@techotaku
techotaku / haproxy.cfg
Last active August 5, 2023 22:32
HAProxy to Nginx (Web + V2Ray WebSocket) + OpenConnect + SSH + ShadowsocksR (TLS OBFS)
defaults
timeout connect 5s
timeout client 24h
timeout server 24h
global
log /dev/log local0
frontend ssl
log global
@techotaku
techotaku / haproxy.cfg
Last active December 2, 2022 19:17
HAProxy to Nginx (Web + V2Ray WebSocket) + OpenConnect + ShadowsocksR (TLS OBFS)
defaults
timeout connect 5s
timeout client 24h
timeout server 24h
global
log /dev/log local0
frontend ssl
log global
@techotaku
techotaku / config.json
Last active March 22, 2018 02:50
V2Ray / ShadowsocksR init scripts and configurations for OpenWrt / LEDE.
{
"log": {
"access": "",
"error": "/var/log/v2ray/error.log",
"loglevel": "warning"
},
"inbound": {
"port": 12345,
"protocol": "dokodemo-door",
"settings": {
@techotaku
techotaku / travis-ci-phpinfo-5.5.txt
Created September 6, 2013 07:39
Travis-CI phpinfo() - 5.5.0 @ 2013-09-06
Using worker: worker-linux-3-2.bb.travis-ci.org:travis-linux-5
$ phpenv global 5.5
$ php --version
PHP 5.5.0 (cli) (built: Jun 28 2013 11:31:41)
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.5.0-dev, Copyright (c) 1998-2013 Zend Technologies
with Zend OPcache v7.0.2-dev, Copyright (c) 1999-2013, by Zend Technologies
with Xdebug v2.2.3, Copyright (c) 2002-2013, by Derick Rethans
@techotaku
techotaku / travis-ci-phpinfo-5.4.txt
Created September 6, 2013 07:38
Travis-CI phpinfo() - 5.4.16 @ 2013-09-06
Using worker: worker-linux-6-1.bb.travis-ci.org:travis-linux-2
$ phpenv global 5.4
$ php --version
PHP 5.4.16 (cli) (built: Jun 28 2013 11:14:20)
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies
with Xdebug v2.2.1, Copyright (c) 2002-2012, by Derick Rethans
$ php -i
@techotaku
techotaku / travis-ci-phpinfo-5.3.txt
Last active December 22, 2015 10:39
Travis-CI phpinfo() - 5.3.26 @ 2013-09-06
Using worker: worker-linux-5-2.bb.travis-ci.org:travis-linux-12
$ phpenv global 5.3
$ php --version
PHP 5.3.26 (cli) (built: Jun 28 2013 11:03:57)
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2013 Zend Technologies
with Xdebug v2.2.1, Copyright (c) 2002-2012, by Derick Rethans
$ php -i
@techotaku
techotaku / php-5.5.3-win.cmd
Last active December 22, 2015 10:39
PHP 5.5.3 Windows configure command (vc11-x86-ts, should download / install Xdebug separately), phpinfo() & extensions configurations. Binaries download link: http://sdrv.ms/18Hgn5K
configure --enable-cli-win32 --with-bz2 --with-curl --with-dba --enable-fileinfo --with-gettext --with-gmp --with-ldap --enable-mbstring --enable-mbregex --with-mcrypt --with-openssl --with-pgsql --enable-sockets --with-sqlite3 --with-config-file-scan-dir --with-tidy --enable-exif --with-mysql --with-mysqli --enable-pdo --with-pdo-mysql --with-pdo-pgsql --with-pdo-sqlite --enable-soap --with-xmlrpc --with-xsl