Skip to content

Instantly share code, notes, and snippets.

View PaulMaddox's full-sized avatar

Paul Maddox PaulMaddox

View GitHub Profile
@PaulMaddox
PaulMaddox / decrypt.sh
Created April 4, 2014 10:38
LUKS encrypted image file
#!/bin/bash
FILENAME="private.img";
FILESIZE="100M";
# Create encrypted volume if it doesn't exist
if [ ! -f $FILENAME ]; then
echo "Creating image file...";
dd if=/dev/zero of=$FILENAME bs=$FILESIZE count=0 seek=1
@PaulMaddox
PaulMaddox / noip
Created February 25, 2014 15:02
No IP using Amazon Route53
#!/bin/bash
# Requires cli53 to be installed
# https://github.com/barnybug/cli53
DNS_NAME="home";
DNS_ZONE="example.com";
export AWS_ACCESS_KEY_ID=
export AWS_SECRET_ACCESS_KEY=