Last active
April 19, 2018 14:32
-
-
Save danhalliday/3c76433efa459e79304509d2338f7e99 to your computer and use it in GitHub Desktop.
Easily create UUIDs from the terminal and get ‘em on your clipboard
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "securerandom" | |
uuid = SecureRandom.uuid | |
IO.popen("pbcopy", "w") { |f| f << uuid } | |
puts uuid |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias uuid="ruby ~/Scripts/uuid.rb" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment