forked from tldr-pages/tldr
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9561105
commit c92b8f1
Showing
1 changed file
with
24 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# 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}}` |