Skip to content

Instantly share code, notes, and snippets.

View extratone's full-sized avatar
🗿
sudo exit

David Blue extratone

🗿
sudo exit
View GitHub Profile
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@extratone
extratone / ddActionKeys.js
Created September 22, 2025 10:23
Drafts Action Script to query, sort, and reformat all configured Action keyboard shortcuts as a markdown list.
// Drafts Action: List Action Keyboard Shortcuts (Markdown)
function getAllActions() {
let all = [];
ActionGroup.getAll().forEach((grp) => (all = all.concat(grp.actions)));
return all;
}
function parseShortcut(action) {
try {
@extratone
extratone / Screwtapes.html
Last active September 22, 2025 02:36
Shortcuts Source Tool analyses of Mr. T-Wrecks' Screwtapes Siri Shortcut.
<!DOCTYPE html><html><head><meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<meta name="format-detection" content="telephone=no,date=no">
<title>Screwtapes</title>
<style>
body {
font-family: system-ui;
font-size: 0.95em;
margin-top: 1rem;
margin-bottom: calc(1rem + env(safe-area-inset-bottom));
class Bear {
static get bearBaseURL() {
return "bear://x-callback-url/";
}
static formatNewNote(tags) {
if (tags == undefined) tags = [];
else if (!Array.isArray(tags)) tags = [tags];
return (
"# " +
@extratone
extratone / mastodon_audio_urls.py
Created September 19, 2025 13:49
A script querying the mastodon API for the raw file URLs to all of a user's audio attachments.
import requests
import sys
# --- Configuration ---
INSTANCE = "mastodon.social"
USER_HANDLE = "DavidBlue@mastodon.social"
ACCESS_TOKEN = "YOUR_ACCESS_TOKEN"
# --- End Configuration ---
def main():
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@extratone
extratone / GEMINI.md
Created September 2, 2025 23:39
Finally convinced gemini-cli to provide this half-assed example of the GEMINI.md file that is suggested *at every run*. As far as I can tell, this will now be the most thorough this feature has yet been publically documented.

Of course. Creating a GEMINI.md file in the root directory of your project is a powerful way to give me specific, project-level instructions and context.

When I start a session in a directory, I look for a GEMINI.md file. The content of this file helps me understand the project's conventions, goals, and constraints, allowing me to provide more accurate and relevant assistance.

What to put in GEMINI.md

You can include any information that would be helpful for a new developer joining your project. Here are some common examples:

  • Project Overview: A brief description of the project's purpose and goals.
  • Tech Stack: The programming languages, frameworks, and libraries used (e.g., "This is a React project using TypeScript and Tailwind CSS").
{
"name": "CommonMark",
"description": "A syntax definition for CommonMark, based on the official specification.",
"author": "Gemini",
"sampleText": "# CommonMark\n\nThis is a sample text for the CommonMark syntax definition.\n\n- Lists\n- *Emphasis*\n- **Strong**\n\n```\nCode blocks\n```",
"rangeExtensionType": {
"default": "lineExtended"
},
"patterns": [
{
@extratone
extratone / ddTiddlyWiki.json
Created August 31, 2025 14:51
Source of the TiddlyWiki Drafts Syntax Definition posted on the directory by h6y3.
{
"name": "TiddlyWiki",
"author": "Claude AI Assistant",
"description": "Complete TiddlyWiki 5 WikiText syntax highlighting for iOS Drafts. Supports all major WikiText elements including formatting, links, widgets, macros, procedures, functions, filters, transclusions, and more.",
"sampleText": "! TiddlyWiki Sample\n\nThis is ''bold'' and //italic// text with ^^superscript^^ and ~~subscript~~.\n\n* Bullet list\n** Nested item\n# Numbered list\n\n|!Header 1|!Header 2|\n|Cell 1|Cell 2|\n\n[[Internal Link]] and [ext[External|https://example.com]]\n\n{{TranscludedTiddler}}\n\n<$button>Click Me</$button>\n\n<<myMacro param:\"value\">>\n\n[tag[important]sort[created]]",
"rangeExtensionType": {
"default": "lookAround1000"
},
"featureKeys": [
{
@extratone
extratone / InfiniteFlightdiscoursseprofile.md
Created August 31, 2025 09:53
Version tracking [my user profile](https://community.infiniteflight.com/u/extratone) on Infinite Flight's Discourse community.