From 5b6ceec5529dbd5aec2955e7816c72948387461d Mon Sep 17 00:00:00 2001 From: Luca Weiss Date: Wed, 9 Oct 2024 22:22:58 +0200 Subject: [PATCH] Add Ubuntu Summit 2024 (#387) * Fix jq usage in ggt.sh To use the top-level json node one needs to provide this as an argument to jq, otherwise it will throw an error: $ cat menu/hackmas24.json | jq -Mc "" jq: error: Top-level program not given (try ".") jq: 1 compile error $ jq --version jq-1.7.1 * Add Ubuntu Summit 2024 --- menu/ubuntu_summit_2024.json | 16 ++++++++++++++++ tools/ggt.sh | 2 +- 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 menu/ubuntu_summit_2024.json diff --git a/menu/ubuntu_summit_2024.json b/menu/ubuntu_summit_2024.json new file mode 100644 index 00000000..6d801ec4 --- /dev/null +++ b/menu/ubuntu_summit_2024.json @@ -0,0 +1,16 @@ +{ + "version": 2024100900, + "url": "https://events.canonical.com/event/51/event.ics?detail=contributions", + "title": "Ubuntu Summit 2024", + "start": "2024-10-25", + "end": "2024-10-27", + "timezone": "Europe/Amsterdam", + "metadata": { + "links": [ + { + "url": "https://ubuntu.com/summit", + "title": "Website" + } + ] + } +} diff --git a/tools/ggt.sh b/tools/ggt.sh index e13df2ab..0d104923 100755 --- a/tools/ggt.sh +++ b/tools/ggt.sh @@ -13,4 +13,4 @@ if [ -z "$url" ]; then exit 1 fi -echo https://ggt.gaa.st#url="${url}"\&json="$(cat "$json" | jq -Mc "" | gzip -9 | base64 -w0 | tr +/ -_)" +echo https://ggt.gaa.st#url="${url}"\&json="$(cat "$json" | jq -Mc "." | gzip -9 | base64 -w0 | tr +/ -_)"