Skip to content

Instantly share code, notes, and snippets.

View joshbeard's full-sized avatar
👽
stranger in a strange land

Josh Beard joshbeard

👽
stranger in a strange land
View GitHub Profile
@joshbeard
joshbeard / mac_iso_usb.md
Last active August 29, 2015 14:15
Make bootable USB from ISO on Mac

1. Convert the ISO:

hdiutil convert -format UDRW -o target.img source.iso

Note: It will add a dmg file extension to it, but it's alright.

2. Get a list of mounted devices. Specifically, the USB media:

bcrypt_auth.rb

Overview

Wrapper class to ultimately save a salted/hashed password to a file on disk for authenticating against vSphere.

If a credentials file is not found, this will prompt for a password pair and save the salted/hashed to a file.

If a credentials file IS found, it will prompt for a password and attempt

@joshbeard
joshbeard / gist:6073933
Last active October 24, 2020 03:08
Bash script to mount a TimeMachine sparsebundle on a file server.
#!/bin/bash
HOST="mynas"
SHARE="my_home"
UNAME="jdoe"
PROTO="smb"
BUNDLE="TimeMachine/mycomputer.sparsebundle"
# mount_smbfs doesn't seem to work with passwords that have special characters
#printf "Mounting on ${HOST}...\n"