Skip to content

Instantly share code, notes, and snippets.

View korchasa's full-sized avatar
💭
(╯°□°)╯︵ ┻━┻

Stanislav Korchagin korchasa

💭
(╯°□°)╯︵ ┻━┻
View GitHub Profile
@korchasa
korchasa / HttpProxy.go
Created April 26, 2022 15:11 — forked from yowu/HttpProxy.go
A simple HTTP proxy by Golang
package main
import (
"flag"
"io"
"log"
"net"
"net/http"
"strings"
)
@korchasa
korchasa / run-openvpn-on-hyper.md
Last active August 20, 2017 10:42 — forked from Jimmy-Xu/run-openvpn-on-hyper.md
Run OpenVPN on Hyper_
$ docker search openvpn | head -n 5
NAME                           DESCRIPTION                                     STARS     OFFICIAL   AUTOMATED
kylemanna/openvpn              OpenVPN server in a Docker container compl...   316                  [OK]
haugene/transmission-openvpn   Docker container which runs Transmission t...   47                   [OK]
dperson/openvpn-client                                                         29                   [OK]
martin/openvpn                 Tiny (12MB) full featured OpenVPN server w...   14                   [OK]
# Feel free to change this path of course (and keys_zone value as well, but also change the usage of it below).
proxy_cache_path /var/www/cache/resized levels=1:2 keys_zone=resizedimages:10m max_size=1G;
# Gzip was on in another conf file of mine...You may need to uncomment the next line.
#gzip on;
gzip_disable msie6;
gzip_static on;
gzip_comp_level 4;
gzip_proxied any;
# Again, be careful that you aren't overwriting some other setting from another config's http {} section.