Skip to content

Instantly share code, notes, and snippets.

View coryjreid's full-sized avatar

Cory J Reid coryjreid

View GitHub Profile
@pingbird
pingbird / nbt.lua
Last active March 5, 2022 16:14
Lua NBT encoder and decoder
--[[
Lua NBT encoding and decoding by PixelToast, public domain
example output (serialized) from a player.dat: http://hastebin.com/kogupimizi.txt
requires string.pack/string.unpack
note: nbt is usually gzipped, you must inflate it before decoding
]]
nbt={}
@sussycatgirl
sussycatgirl / mailcow_wg.md
Created February 27, 2022 14:49
Tunneling a Mailcow server through a remote server using Wireguard

Tunneling a Mailcow server through Wireguard

Mailcow is a easy to set up Mailserver running in Docker.

Unfortunately, most ISPs block port 25. In addition to that, residential IP addresses are generally blacklisted, making it impossible to self-host a mailserver at home. Mailcow by itself requires at least 6GB of RAM, which makes hosting it on a VPS rather expensive.

The solution: Running Mailcow at home and tunneling it's traffic through a cheap VPS.

The final setup will look like this: