Skip to content

Instantly share code, notes, and snippets.

View jonasjonas's full-sized avatar

Frank Hellenkamp jonasjonas

View GitHub Profile

Keybase proof

I hereby claim:

  • I am jonasjonas on github.
  • I am jonasjonas (https://keybase.io/jonasjonas) on keybase.
  • I have a public key whose fingerprint is EB46 2522 8F4C 16C6 CB46 2B2A 244F 4167 9E6B 15AA

To claim this, I am signing this object:

@jonasjonas
jonasjonas / checkTmVolume
Last active May 3, 2016 17:35
automatic zfs snapshot taking for Time Machine Volumes after verifying the disk image
#!/bin/bash
DMG="$1"
if [ -d "$DMG" ]; then
OUTPUT=$( hdiutil attach -nomount $DMG )
SUCCESS=$?
if [[ $SUCCESS != 0 ]]; then
echo "Could not mount $DMG"
exit $SUCCESS
fi