Skip to content

Instantly share code, notes, and snippets.

@shiningw
shiningw / haproxy.cfg
Created October 19, 2022 00:26 — forked from techotaku/haproxy.cfg
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

openconnect vpn server

stek29 May 21 2018

Installing ocserv

Older version (0.10.11) is avaliable in ubuntu repos and it seems to work fine,
but I've built 0.12.1 from sources. This is not neccessary, but might be useful.
Describing building from source is out of scope of these instructions.

@shiningw
shiningw / Win7清除垃圾文件.bat
Created March 4, 2018 02:40 — forked from huobazi/Win7清除垃圾文件.bat
Win7清除垃圾文件.bat
@echo off
color 0a
title windows7系统垃圾清理---
echo ★☆ ★☆ ★☆ ★☆ ★☆★☆★☆ ★☆ ★☆ ★☆ ★☆★
echo ★☆ ★☆ ★☆ ★☆ ★☆★☆★☆ ★☆ ★☆ ★☆ ★☆★
echo.★☆ ☆★
echo.★☆ ☆★
echo.★☆ 清理系统垃圾文件,请稍等...... ☆★
echo ★☆ ☆★
echo.★☆ ☆★
@shiningw
shiningw / readme-php7.md
Created November 16, 2017 02:40
Compile PHP 7.1 on Mac OS X El Capitan with Homebrew with thread safety enabled. https://wiki.php.net/phpng | https://www.jverdeyen.be/php/phpng-on-ubuntu-trusty/ | http://talks.php.net/froscon15#/phpconf1
1. Install dependencies for PHP 7.1
$ brew update
$ brew tap homebrew/dupes
$ brew install autoconf automake gmp homebrew/versions/bison27 gd freetype t1lib gettext zlib mcrypt
2. Configure PHP 7.1
$ git clone --depth=1 https://github.com/php/php-src.git
$ cd php-src

$ ./buildconf