From c92b8f10f3d6f5ba4a0c0190aa46c0bebb3a43b7 Mon Sep 17 00:00:00 2001 From: Blake L Date: Tue, 11 May 2021 07:47:29 -0400 Subject: [PATCH] genid: add page (#5867) --- pages/linux/genid.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 pages/linux/genid.md diff --git a/pages/linux/genid.md b/pages/linux/genid.md new file mode 100644 index 0000000000..2178fdb647 --- /dev/null +++ b/pages/linux/genid.md @@ -0,0 +1,24 @@ +# genid + +> Generate IDs, such as snowflakes, UUIDs, and a new GAID. +> More information: . + +- 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}}`