Skip to content

Instantly share code, notes, and snippets.

View sybohy's full-sized avatar

Sy Bohy sybohy

  • @hello-seam
  • San Francisco
  • X @sybohy
View GitHub Profile
  1. General Background and Overview
@sybohy
sybohy / random_password.sh
Created July 17, 2014 01:17
OSX Bash Random Password Generator
#!/bin/bash
# bash generate random alphanumeric string
#
# bash generate random 32 character alphanumeric string (upper and lowercase) and
NEW_UUID=$(cat /dev/urandom | env LC_CTYPE=C tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1)
echo $NEW_UUID