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
| 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 | |
| } |
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/bash | |
| ############################################################################## | |
| # An rclone backup script by Chris Tippett (c.tippett@gmail.com) | |
| # | |
| # Originally adapted from the great work by Jared Males (jaredmales@gmail.com) | |
| # https://gist.github.com/jaredmales/2f732254bb10002fc0549fa9aa0abdd7 | |
| # | |
| # Copyright (C) 2020 Chris Tippett (c.tippett@gmail.com) | |
| # |
NewerOlder

