-
-
Save maxwofford/522272a64394ca8a7fa016d7a7b3366f to your computer and use it in GitHub Desktop.
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
| #!/usr/bin/env ruby | |
| require 'securerandom' | |
| key = SecureRandom.urlsafe_base64(ARGV[0]&.to_i || 32) | |
| puts key | |
| IO.popen('pbcopy', 'w') { |f| f << key.to_s } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment