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.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@extratone
extratone / craftDoc.json
Created December 15, 2024 18:08
Example Craft document source file.
{
"content": [
{
"isFetched": true,
"stamp": "DBA99748-8078-4F77-8EC0-CC2708A4B302",
"rootBlockId": "9AC90C55-C836-46CC-A53A-3542F9E19FBB",
"created": 1734283965645.1511,
"id": "0792D755-54DF-4C9C-9F7D-FDE4BECBBC2F",
"modified": 1734285914063.8071,
"isInserted": false,
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@extratone
extratone / signing-git-commits.md
Created December 14, 2024 09:12 — forked from phortuin/signing-git-commits.md
Set up a GPG key for signing Git commits on MacOS (M1)

Based on this blogpost.

To sign Git commits, you need a gpg key. GPG stands for GNU Privacy Guard and is the de facto implementation of the OpenPGP message format. PGP stands for ‘Pretty Good Privacy’ and is a standard to sign and encrypt messages.

Setting up

Install with Homebrew:

$ brew install gpg
(* v0.1 Replace text using tops.scpt
This script prompts for text to search and replace, and then uses the command line "tops" command to do the replacement.
The script operates only on text files (RTF, Text, HTML types in DTPO).
The Apple Developer tools should be installed in order to get access to "tops". This is a proof of concept script. Tops is a powerful command, and can use
regex patterns, input files that define the replacement rules, as well as other features. Tops is intended for developers, but works for any text source.
The script below is experimental - it might wipe out your data, so don't use it until you've tested it in your own environment.
*)
on run
tell application id "com.devon-technologies.thinkpro2"