Skip to content

Instantly share code, notes, and snippets.

@clong
Created March 22, 2018 02:32
Show Gist options
  • Select an option

  • Save clong/e6b6ffd972e0905ca739571e655c229d to your computer and use it in GitHub Desktop.

Select an option

Save clong/e6b6ffd972e0905ca739571e655c229d to your computer and use it in GitHub Desktop.
fleet_snippet
# Generate a base64 encoded random string with length provided in $1
function generate_random() {
docker run --rm --entrypoint sh kolide/openssl -c "cat /dev/random | base64 | head -c $1"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment