Skip to content

Instantly share code, notes, and snippets.

@darryllee
darryllee / downloadbykey.sh
Created September 12, 2020 05:41
Download Jira Cloud Attachments into directories named after issue keys
#!/bin/bash
# Minor update to https://bitbucket.org/snippets/atlassiansupportprojects/nedyBb/download-files-attached-to-the-issues
# * Gets issue key in addition to download URL
# * Downloads attachments into directories created for each issue key
#
# Usage:
# chmod u+x ./downloadbykey.sh
# bash ./downloadbykey.sh
# 1. Issue your API Token at https://id.atlassian.com/manage/api-tokens
# Put this file in your /etc/dnsmasq.d/ directory then run
# pihole restartdns
# This will block "Random MAC addresses" or as Apple calls them "Private Addresses"
# https://forum.netgate.com/topic/162075/how-to-block-randomized-mac-addresses/7
dhcp-host=a2:*:*:*:*:*,ignore
dhcp-host=b2:*:*:*:*:*,ignore
dhcp-host=c2:*:*:*:*:*,ignore
dhcp-host=d2:*:*:*:*:*,ignore
dhcp-host=e2:*:*:*:*:*,ignore