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
<!-- DO NOT EDIT OR DELETE LINES WITH COMMENTS (it's look like as this or next line)
-->{{WoWs_Ship
|Promo=<!-- in case of gift or promo ship write conditions to get it. (optional)-->
USS ''Missouri'' is now preserved as a [https://www.ussmissouri.org/ military museum ship] in Pearl Harbor, Hawaii.
''{{#var:ship_name}}'' was first released for sale worldwide on 7 December 2016, and was removed from sale on 28 February 2018 with the release of [[Ship:Update 0.7.2|Update 0.7.2]]. It was brought back as a ship available for purchase with the Pacific War event in [[Ship:Update 0.10.7|Update 0.10.7]], albeit unlike the legacy variant, it was returned to the game as a ship earning only the standard amount of credits per battle for a tier IX premium ship.
|Anno=<!-- you can write below short description for the ship. it will replace default once. -->
<!-- <br><br>{{Model3DViewer|cc01ed2a411e41f79c4d9a77aa1e3b03}}-->
@extratone
extratone / mastodon_status_admonitions.py
Last active October 17, 2025 15:40
A script querying the mastodon API for all status urls found for a given Mastodon-formatted search query.
import requests
import sys
import argparse
import time
from datetime import datetime
from dateutil import parser as date_parser
from dateutil import tz
from markdownify import markdownify as md
# --- Configuration ---
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 = "[email protected]"
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": [
{