Skip to content

Instantly share code, notes, and snippets.

@nukkeldev
Created April 26, 2025 04:22
Show Gist options
  • Save nukkeldev/2b910db8152c55dc5bc36030e4028926 to your computer and use it in GitHub Desktop.
Save nukkeldev/2b910db8152c55dc5bc36030e4028926 to your computer and use it in GitHub Desktop.
Bash One-liners I've Made While Learning Bash

Honestly-not-a-bad-password Generator

for ((i=0;i<20;i++)); do echo -n "$(printf "%b\n" "$(printf "\\\x%x" "$((RANDOM % 95 + 32))")")"; done; echo;
#           ^ "Password" Length                                                   ^ Limit to ASCII characters 32 to 127
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment