Skip to content

Instantly share code, notes, and snippets.

@danhalliday
Last active April 19, 2018 14:32
Show Gist options
  • Save danhalliday/3c76433efa459e79304509d2338f7e99 to your computer and use it in GitHub Desktop.
Save danhalliday/3c76433efa459e79304509d2338f7e99 to your computer and use it in GitHub Desktop.
Easily create UUIDs from the terminal and get ‘em on your clipboard
require "securerandom"
uuid = SecureRandom.uuid
IO.popen("pbcopy", "w") { |f| f << uuid }
puts uuid
alias uuid="ruby ~/Scripts/uuid.rb"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment