Skip to content

Instantly share code, notes, and snippets.

@Laforeta
Laforeta / caddyfile
Created May 10, 2018 10:24
Simple caddyfile example with forward proxy
https://$domain:$port {
gzip
log /var/log/caddy.log
tls $email
forwardproxy {
basicauth $user $passwd
}
}
@Laforeta
Laforeta / gist:34da32ebc029abf1a1bb05004a5ceddf
Last active February 10, 2017 09:46
Generic nginx config for websockets
server {
listen 80;
server_name $your_domain_name;
location / {
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_pass http://127.0.0.1:9000;
}
# Source: http://dazzyd.org/blog/2016/03/17/kantai-collection-obfuscation-anti-obfuscation/
# All rights remain with the author(s) cited
#!/usr/bin/env python3
import sys
ORDER = [0, 7, 2, 5, 4, 3, 6, 1]
SRC = sys.argv[1]
DEST = sys.argv[2]
@Laforeta
Laforeta / OOI Guide
Last active October 10, 2015 08:40
Obsolete version, please use https://github.com/Laforeta/ooi2/wiki/Installation-on-ubuntu-14.04-Trusty/
@Laforeta
Laforeta / gist:34f75d638ffa756b30b5
Last active August 29, 2015 14:25
A simple shutdown script with menu and error detection
@ECHO OFF
SETLOCAL
SET ME=%~n0
SET PARENT=%~dp0
ECHO Running %ME%...
:MENU
ECHO.
ECHO #####################