Skip to content

Instantly share code, notes, and snippets.

@mmadfox
mmadfox / MULTIPLEXING CHANNELS IN GO
Last active December 17, 2020 10:36
MULTIPLEXING CHANNELS IN GO
Based on https://katcipis.github.io/blog/mux-channels-go/, but without reflection.
$: diskutil list
/dev/disk2 (external, physical): ...
$: diskutil eraseDisk ExFAT USB /dev/disk2
wget -qO- https://deb.nodesource.com/setup_5.x | sudo bash -
sudo apt-get install --yes nodejs
@mmadfox
mmadfox / nginx.conf
Last active August 29, 2015 14:25 — forked from turtlesoupy/nginx.conf
http {
proxy_cache_path /var/cache/nginx levels=1:2 keys_zone=one:8m max_size=3000m inactive=600m;
proxy_temp_path /var/tmp;
include mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 65;
gzip on;
gzip_comp_level 6;
@mmadfox
mmadfox / nginx.conf
Last active August 29, 2015 14:25 — forked from plentz/nginx.conf
# to generate your dhparam.pem file, run in the terminal
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048
http://docs.basho.com/riak/latest/ops/tuning/open-files-limit/