Skip to content

Instantly share code, notes, and snippets.

@jahands
jahands / docker-compose.yml
Created February 15, 2017 20:01
ArchiveTeam Warrior via Docker Compose
version: '3'
services:
warrior:
restart: on-failure
image: archiveteam/warrior-dockerfile
ports:
- "8001:8001"
@jahands
jahands / dupliciti-backup.sh
Created December 18, 2016 15:18
Backup your /home to B2
#!/bin/bash
if [ -f ~/.bash_secrets ]; then
. ~/.bash_secrets
fi
duplicity $1 --no-encryption \
--include '/home/*/.dotfiles' \
--exclude '/home/*/.*' \
--exclude '/home/*/Downloads' \
--exclude '/home/*/.ecryptfs' \
@jahands
jahands / DO.psm1
Last active October 29, 2016 16:01
PowerShell module to create/destroy a server
# Tutorial: https://www.digitalocean.com/community/tutorials/how-to-use-doctl-the-official-digitalocean-command-line-client
Function Start-PSServerConnection {
doctl compute ssh powershell --ssh-user me
}
Function Start-PSServer {
Param(
[switch]$AutoConnect
)
@jahands
jahands / docker-cleanup-spotify.sh
Last active September 19, 2016 21:49
Remove all that docker junk
# Uses https://github.com/spotify/docker-gc
sudo docker run --rm -v /var/run/docker.sock:/var/run/docker.sock -v /etc:/etc spotify/docker-gc
@jahands
jahands / Caddyfile
Created August 8, 2016 18:59
Using Caddy and Docker Compose for easy deployment
gitlab:80 {
proxy / gitlabsvc:80 {
proxy_header Host {host}
proxy_header X-Forwarded-Proto {scheme}
proxy_header X-Real-IP {remote}
}
}
wiki:80 {
proxy / wikisvc:8090 {
proxy_header Host {host}

Keybase proof

I hereby claim:

  • I am jahands on github.
  • I am jhands (https://keybase.io/jhands) on keybase.
  • I have a public key whose fingerprint is 096B 7AE7 52E3 58BE 9601 4B73 6458 D80A 2E7E 433A

To claim this, I am signing this object:

@jahands
jahands / install_latest_docker_compose.sh
Created June 8, 2016 18:33 — forked from luislobo/install_latest_docker_compose.sh
Install Latest Docker and Docker-compose on Ubuntu
# Ask for the user password
# Script only works if sudo caches the password for a few minutes
sudo true
# Install kernel extra's to enable docker aufs support
# sudo apt-get -y install linux-image-extra-$(uname -r)
# Add Docker PPA and install latest version
# sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 36A1D7869245C8950F966E92D8576A8BA88D21E9
# sudo sh -c "echo deb https://get.docker.io/ubuntu docker main > /etc/apt/sources.list.d/docker.list"
@jahands
jahands / Dockerfile
Created June 5, 2016 21:16
Caddy custom Dockerfile
FROM ubuntu:16.04
RUN apt-get update -q \
&& apt-get install wget -yq \
&& rm -rf /var/lib/apt/lists/*
RUN wget -qO- https://getcaddy.com | bash -s git
EXPOSE 443 80
@jahands
jahands / colonelwill.txt
Created March 9, 2016 22:38
List of vod links for twitch.tv/colonelwill
http://www.twitch.tv/colonelwill/v/53221003
http://www.twitch.tv/colonelwill/v/53035587
http://www.twitch.tv/colonelwill/v/52993876
http://www.twitch.tv/colonelwill/v/52967063
http://www.twitch.tv/colonelwill/v/52868087
http://www.twitch.tv/colonelwill/v/52837476
http://www.twitch.tv/colonelwill/v/52817667
http://www.twitch.tv/colonelwill/v/52770812
http://www.twitch.tv/colonelwill/v/52654533
http://www.twitch.tv/colonelwill/v/52650532

EXAMPLE 1 (shared blocks)

site1.com, site2.com {
  tls me@example.com
}
site3.com, site4.com {
  tls me@foo.com
}

site1.com, site2.com, site3.com, site4.com {