Update cheatsheets

This commit is contained in:
ivuorinen
2024-02-21 11:19:49 +00:00
parent 4e88a1b42f
commit 3d653cc7e6
4803 changed files with 127002 additions and 0 deletions

29
linux/genid Normal file
View File

@@ -0,0 +1,29 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# genid
> Generate IDs, such as snowflakes, UUIDs, and a new GAID.
> More information: <https://github.com/bleonard252/genid>.
- Generate a UUIDv4:
`genid uuid`
- Generate a UUIDv5 using a namespace UUID and a specific name:
`genid uuidv5 {{ce598faa-8dd0-49ee-8525-9e24fff71dca}} {{name}}`
- Generate a Discord Snowflake, without a trailing newline (useful in shell scripts):
`genid --script snowflake`
- Generate a Generic Anonymous ID with a specific "real ID":
`genid gaid {{real_id}}`
- Generate a Snowflake with the epoch set to a specific date:
`genid snowflake --epoch={{unix_epoch_time}}`