Skip to content

Instantly share code, notes, and snippets.

@johannesvogel
johannesvogel / 1-piped-docker-compose.md
Created April 27, 2025 09:59
Piped docker compose example (for TrueNAS)

Piped docker compose example (for TrueNAS)

This is an example of how to setup a working Piped video instance on a system like TrueNAS. You will also need an nginx-proxy-manager instance.

Steps

  1. Add a folder piped to your system.
  2. Add a folder called pgdata in there.
  3. Adapt the Piped Config file (config.properties) and put it in the piped folder
  4. Adapt the docker compose file and add it to TrueNAS (Apps > Discover apps > three dots > Install via YAML)
  5. Configure proxy hosts in Nignx proxy manager
@johannesvogel
johannesvogel / .mailfilter
Last active February 3, 2019 06:19
Uberspace 7: Forward emails sent to specific domains
# set Maildir
MAILDIR = "$HOME/Maildir"
# forward all emails sent to "@mydomain.de"
# to "[email protected]"
if (/^To:.*@mydomain\.de/:h)
{
to "[email protected]"
exit
}
@johannesvogel
johannesvogel / haskell-long.hs
Last active September 28, 2015 15:49
coins
main = do
money <- getLine
mapM putStr $ coins [200, 100, 50, 20, 10, 5, 2, 1] (read money)
coins [] _ = []
coins (x:xs) y
| x <= y = (coin x) : coins (x:xs) (y-x)
| x > y = coins xs y
coin x