Skip to content

Commit

Permalink
Add Ubuntu Summit 2024 (#387)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
z3ntu authored Oct 9, 2024
1 parent f2f5f9a commit 5b6ceec
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
16 changes: 16 additions & 0 deletions menu/ubuntu_summit_2024.json
Original file line number Diff line number Diff line change
@@ -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"
}
]
}
}
2 changes: 1 addition & 1 deletion tools/ggt.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 +/ -_)"

0 comments on commit 5b6ceec

Please sign in to comment.