Skip to content

Instantly share code, notes, and snippets.

@darryllee
darryllee / gist:054c2704d6c34cd008957b902d4e51bf
Last active January 29, 2026 22:56
Export Workflow JSON
// Bookmarklet to open Workflow JSON API from current workflow page
// Finds the workflow name in the page and opens the REST API endpoint in a new window
//
// Installation:
// * Create a new bookmark in your browser
// * Copy the minified version from the file (the second javascript: line)
// * Paste it as the URL/location of the bookmark
// * Give it a name like "View Workflow JSON"
// * Click the bookmarklet when viewing a Jira workflow page
//
@darryllee
darryllee / gist:5a45eb0b98adae9d77545b2c50537f52
Last active January 29, 2026 22:57
Export Workflow XML
// Bookmarklet to open Workflow XML viewer from current workflow page
// Finds the workflow name in the page and opens the XML viewer in a new window
//
// Installation:
// * Create a new bookmark in your browser
// * Copy the minified version from the file (the second javascript: line)
// * Paste it as the URL/location of the bookmark
// * Give it a name like "Export Workflow XML"
// * Click the bookmarklet when viewing a Jira workflow page
//
@darryllee
darryllee / update_page_owner_graphql
Created January 22, 2026 06:13
Update Page Owner using GraphQL :-P
# GraphQL mutation to update page owner - sniffed while updating Owner in Confluence UI via Chrome Developer Panel
# HOSTNAME, USERNAME, and TOKEN are stored in credentials.py
import requests
import credentials
GRAPHQL_URL = f"{credentials.HOSTNAME}/cgraphql"
def update_page_owner_graphql(page_id, new_owner_account_id):
@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