A few light touches to improve the experience of finding and reading the documentation on freedesktop.org.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ==UserScript== | |
| // @name Copy late.sh artboard to clipboard | |
| // @namespace https://github.com/christippett | |
| // @description Adds a click handler to the gallery canvas element that copies the image to your clipboard. | |
| // @icon https://www.google.com/s2/favicons?sz=64&domain=late.sh | |
| // @author christippett | |
| // @version 1.0 | |
| // @match https://late.sh/gallery* | |
| // @grant none | |
| // ==/UserScript== |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "bufio" | |
| "bytes" | |
| "context" | |
| "encoding/json" | |
| "errors" | |
| "flag" | |
| "fmt" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env -S uv run | |
| # /// script | |
| # requires-python = ">=3.10" | |
| # dependencies = [] | |
| # /// | |
| """Generate TypeScript type definitions for Affinity's scripting SDK. | |
| Reads the high-level JavaScript runtime modules shipped inside the Affinity app | |
| (``/Applications/Affinity.app/Contents/Resources/JSLib``) and emits ``.d.ts`` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env -S uv run --script | |
| # /// script | |
| # requires-python = ">=3.10" | |
| # dependencies = ["svgpathtools"] | |
| # /// | |
| """Recursively strips <text> tags and optimizes SVG viewBoxes to centered squares.""" | |
| import argparse | |
| import io | |
| import re |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| # ----------------------------------------------------------------------------- | |
| # _____ _ _ _ | |
| # /__ \__ _(_) |___ ___ __ _| | ___ | |
| # / /\/ _` | | / __|/ __/ _` | |/ _ \ | |
| # / / | (_| | | \__ \ (_| (_| | | __/ | |
| # \/ \____|_|_|___/\___\__,_|_|\___| _ _ | |
| # ,d88b.d88b, / _\ |_ ___ __ _ _ __ ___ __| | ___ ___| | __ | |
| # 88888888888 \ \| __/ _ \/ _` | '_ ` _ \ / _` |/ _ \/ __| |/ / | |
| # `Y8888888Y' _\ \ || __/ (_| | | | | | | (_| | __/ (__| < |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| DOMAIN='______.ts.net' | |
| PASSWORD="____" | |
| tailscale_cert="$HOME/Library/Containers/io.tailscale.ipn.macos/Data/${DOMAIN}.crt" | |
| tailscale_key="$HOME/Library/Containers/io.tailscale.ipn.macos/Data/${DOMAIN}.key" | |
| plex_cert="$HOME/Application Support/Plex Media Server/https.p12" | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| set -e | |
| ext=".$(basename "$1" | rev | cut -d'.' -f1 | rev)" | |
| fname="$(basename "$1" "$ext")" | |
| width="$(identify -format "%w" "$1")" | |
| height="$(identify -format "%h" "$1")" |
A modern re-styling of the Hacker News front page, including automatic light/dark mode.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| locals { | |
| org_id = "" | |
| project_id = "" | |
| } | |
| resource "google_service_account" "doit" { | |
| account_id = "doit-management" | |
| display_name = "DoiT Service Account" | |
| project = local.project_id | |
| } |
NewerOlder

