Skip to content

Instantly share code, notes, and snippets.

View tiagoblackcode's full-sized avatar

Tiago Melo tiagoblackcode

View GitHub Profile
@tiagoblackcode
tiagoblackcode / rabbitmq-pass.sh
Last active April 30, 2024 13:36
Generate RabbitMQ Password
#!/usr/bin/env bash
# reference: https://lists.rabbitmq.com/pipermail/rabbitmq-discuss/2011-May/012765.html
salt=$(openssl rand -hex 4 | xxd -r -p)
pass="hello"
hash=$(printf '%s%s' "$salt" "$pass" | shasum -a 256 | xxd -r -p)
printf '%s%s' "$salt" "$hash" | base64

Keybase proof

I hereby claim:

  • I am tiagoblackcode on github.
  • I am tiagomelo (https://keybase.io/tiagomelo) on keybase.
  • I have a public key ASD-ZZnJR4RIyGK57TmXs5-ScP7SwwpFVFy4W93ngj-RgQo

To claim this, I am signing this object:

@tiagoblackcode
tiagoblackcode / 0_reuse_code.js
Created June 3, 2016 09:12
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console