Skip to content

Instantly share code, notes, and snippets.

@grrowl
grrowl / portforward.sh
Created October 22, 2019 00:51
Updated version of - https://gist.github.com/kura/5065819 + https://gist.github.com/codeinthehole/5064150 Forwards a list of known ports from localhost to a host
#!/bin/bash
if [[ $# -lt 2 ]]
then
echo "Usage: port-forward HOST REMOTE_PORT [LOCAL_PORT]";
else
HOST=$1
REMOTE_PORT=$2
LOCAL_PORT=${3:-${REMOTE_PORT}}
@grrowl
grrowl / apache-plex-reverse-proxy.vhost
Created January 8, 2018 12:48 — forked from hazcod/apache-plex-reverse-proxy.vhost
Apache2 reverse proxy vhost configuration for Plex. Rerquires modules ssl, proxy, wstunnel
ServerSignature Off
ServerTokens Prod
<VirtualHost *:80>
ServerName plex.website.com
# This VirtualHost redirects everything to HTTPS on port 443.
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
</VirtualHost>
@grrowl
grrowl / README.md
Last active November 20, 2016 08:27 — forked from christophermanning/README.md
Voronoi Diagram with Force Directed Nodes and Delaunay Links

Created by Christopher Manning

Summary

Nodes are linked to nodes in neighboring cells. The cell's color is a function of its area.

The white lines are the Delaunay triangulation and the purple cells are the Voronoi diagram.

Controls