Skip to content

Instantly share code, notes, and snippets.

View silverbp's full-sized avatar

Casey Entzi silverbp

View GitHub Profile

Keybase proof

I hereby claim:

  • I am silverbp on github.
  • I am kcnz (https://keybase.io/kcnz) on keybase.
  • I have a public key ASBR6YGKdSTBgtQQrNUlhpJvHqJylAYRQ1GgF_nmVO5HwQo

To claim this, I am signing this object:

#!/bin/bash
# Shamelessly stolen from https://gist.github.com/eduardocardoso/82a629882ddb02ab3677
set -o errexit
echo "Removing exited docker containers..."
docker ps -a -f status=exited -q | xargs -r docker rm -v
echo "Removing untagged images..."
docker images --no-trunc | grep "<none>" | awk '{print $3}' | xargs -r docker rmi
@silverbp
silverbp / gist:b2544d4caf547e1b015e
Created May 23, 2015 20:35
Java Keystore with existing Certs
openssl pkcs12 -export -out certificate.pfx -inkey privateKey.key -in certificate.crt -certfile CACert.crt
keytool -importkeystore -deststorepass ubiquiti -destkeypass ubiquiti -destkeystore keystore -srckeystore certificate.pfx -srcstoretype PKCS12 -srcstorepass ubiquiti -alias 1
keytool -changealias -alias "1" -destalias "airvision" -keypass ubiquiti -keystore /path/to/keystore -storepass ubiquiti