Skip to content

Instantly share code, notes, and snippets.

@darryllee
darryllee / gist:9e316c66ae6c9d0bac743c95e22b3b4e
Last active July 3, 2025 18:10
Bookmarklet to Copy Clean URL to Clipboard
javascript:(function () { navigator.clipboard.writeText(window.location.protocol + '//' + window.location.host + window.location.pathname);null})();
@darryllee
darryllee / gist:1ea2ba31a6e4344ec5dbfd5d936677f0
Last active July 3, 2025 18:09
Bookmarklet to Clean URL of Tracking Links, etc.
javascript:(function () { history.replaceState('Foo', 'Foo', window.location.protocol + '//' + window.location.host + window.location.pathname);})()
# 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
@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