Ryan Finnie on Nostr: Bash #protip : Need to do something like, say, base64 encode a password (ahh, ...
Bash #protip : Need to do something like, say, base64 encode a password (ahh, k8s...)? Type (without the illustrative backticks):
` echo -n secret | base64`
Note the leading space before echo. By default in Bash, commands typed in with leading spaces are not saved to your history.
Published at
2024-09-20 17:27:32Event JSON
{
"id": "5314ea8de640c4458051070fef89e3ba1dd11db47cd44fe5d8e81b82e1d73f44",
"pubkey": "cb7b96f427fbc0072ff2e451d5e074aa6ab37b9044cd07b23481cee77d1ac05a",
"created_at": 1726853252,
"kind": 1,
"tags": [
[
"t",
"protip"
],
[
"proxy",
"https://fosstodon.org/users/foo/statuses/113171054758178948",
"activitypub"
]
],
"content": "Bash #protip : Need to do something like, say, base64 encode a password (ahh, k8s...)? Type (without the illustrative backticks):\n\n` echo -n secret | base64`\n\nNote the leading space before echo. By default in Bash, commands typed in with leading spaces are not saved to your history.",
"sig": "23cd177e8f93907943ce28e610f01ad99019eb0907bda871af19af0fd6106eb3bc6db48b4f3a90034659c832a5109140ccaf7c1827fd79deb2e09b5b52cd281f"
}