Skip to content

Instantly share code, notes, and snippets.

@TjeuKayim
Last active September 13, 2019 10:04
Show Gist options
  • Save TjeuKayim/f619aefa78f7eff4c3bb0b1ce9a88810 to your computer and use it in GitHub Desktop.
Save TjeuKayim/f619aefa78f7eff4c3bb0b1ce9a88810 to your computer and use it in GitHub Desktop.
random base64 chars
#!/bin/bash
# random base64 chars
python3 -c "import base64; import os; print(base64.urlsafe_b64encode(os.urandom(999)))"
# current time formatted like 2019-09-13T12:03:04.459360+02:00
python3 -c 'import datetime;print(datetime.datetime.now().astimezone().isoformat())'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment