1 | #!/usr/bin/zsh |
2 | |
3 | # ==== Configuration ==== |
4 | SABNZBD_HOST="" # IP or FQDN with port if on non-standard port |
5 | API_KEY="" # API key |
6 | HTTP_SCHEME="" # http or https |
7 | |
8 | # ==== Extract Job IDs ==== |
9 | JOB_IDS=($(curl -s "$HTTP_SCHEME://$SABNZBD_HOST/sabnzbd/api?apikey=$API_KEY&mode=queue&output=json" | jq -r '.queue.slots[].nzo_id')) |
zer0 / Delete unused Todoist labels
0 likes
0 forks
1 files
Last active
Delete ALL unused Todoist labels in one go
1 | #!/usr/bin/bash |
2 | set -euo pipefail |
3 | |
4 | TMP_JSON_FILE=/tmp/todoist.json.tmp |
5 | TMP_ALL_LABELS_FILE=/tmp/all.labels.tmp |
6 | TMP_USED_LABELS_FILE=/tmp/used.labels.tmp |
7 | TMP_UNUSED_LABELS_FILE=/tmp/unused.labels.tmp |
8 | TMP_UNUSED_LABEL_IDS_FILE=/tmp/unused.label.ids.tmp |
9 |
Newer
Older