Skip to content

Instantly share code, notes, and snippets.

View DonBattery's full-sized avatar

DonBattery DonBattery

View GitHub Profile
@DonBattery
DonBattery / .filekvs
Last active November 3, 2018 20:36
set the FILEKVS_DIRECTORY env, and source this file to get a file-based key:value store
# donbattery's poopdb
if [ ! -d "$FILEKVS_DIRECTORY" ]; then
printf "cannot find poopdb at %s\n" "$FILEKVS_DIRECTORY"
return
fi
filekvs_get () {
[ -f "$FILEKVS_DIRECTORY/$1" ] && printf "%s" "$(< "$FILEKVS_DIRECTORY/$1")"
}
@DonBattery
DonBattery / https-poc.yml
Last active July 28, 2018 00:28
given your 80 and 443 ports are forwarded, and yoursite.com points to your external IP <docker-compose -f https-poc.yml up> will start the hello-world webserver and it will be available on yoursite.com via HTTPS
version: '2'
services:
nginx-proxy:
image: jwilder/nginx-proxy
container_name: NginX_Proxy
ports:
- 80:80
- 443:443
networks: