Skip to content

Instantly share code, notes, and snippets.

View Aurora12's full-sized avatar
🔥
burning with the fires of Orc

Michael A. Aurora12

🔥
burning with the fires of Orc
  • @worldr
  • London, UK
View GitHub Profile
@Aurora12
Aurora12 / rebase.md
Last active October 16, 2025 16:12
Rebase your Git branch on top of target accepting all changes from your branch, including file deletions and renamings.

Solution

A way to solve this in a non-interactive way:

# Optional but helpful: remember conflict resolutions
git config rerere.enabled true
git config rerere.autoupdate true
git config rerere.autoreuse true

# don't auto-open editor on merges
@Aurora12
Aurora12 / git-commit-signing.md
Last active October 12, 2025 16:57
Signing Git commits with PGP

Rationale

Signing commits with GPG adds another layer of security to GitHub flow.

While access to the repos is secured by your SSH key, this is only a transport authentication. Signing commits with GPG provides a proof of your identity as well as commit contents integrity.

While SOC 2 doesn't explicitly state "you must sign your commits," it provides auditors with strong, automated evidence that we are adhering to our own policies. Compliance tools have built-in tests to enforce signed commits. Branch protection rules in GitHub can require commit signing.

Actions to Take

@Aurora12
Aurora12 / agpl.md
Last active October 16, 2025 16:31
A note on AGPL licenses

{"level":"info","#":0,"id":"f4fdb10f-4448-48a8-b55e-1862fed3d15b_e1733967-57d1-4ad3-a754-52c62e5347ae","content_type":"application/pdf","chunk_length":162,"chunk":"

King Lear Shakespeare homepage | King Lear | Act 1, Scene 1 Next scene SCENE I. King Lear's palace. Enter KENT, GLOUCESTER, and EDMUND KENT I thought the king had

","time":"2025-08-12T13:03:14Z","caller":"/app/internal/llmworker/embed.go:96","message":"0 embedding content chunk"} {"level":"info","#":1,"id":"f4fdb10f-4448-48a8-b55e-1862fed3d15b_e1733967-57d1-4ad3-a754-52c62e5347ae","content_type":"application/pdf","chunk_length":160,"chunk":"

KENT, GLOUCESTER, and EDMUND KENT I thought the king had more affected the Duke of Albany than Cornwall. GLOUCESTER It did always seem so to us: but now, in the

","time":"2025-08-12T13:03:14Z","caller":"/app/internal/llmworker/embed.go:96","message":"1 embedding content chunk"}

// https://go.dev/play/p/zMefNMTZCOo
package main
import "fmt"
type A interface {
Test(value int) string
}
@Aurora12
Aurora12 / docker-out-of-space.sh
Last active July 22, 2025 08:23
Trying to pull a Docker image results in a signature error.
# Errors similar to this:
# Err:4 http://archive.ubuntu.com/ubuntu bionic-backports InRelease
# At least one invalid signature was encountered.
# Probably mean Docker ran out of space (and the error is completely unhelpful).
docker builder prune -f # This may be enough
# If that didn't help
@Aurora12
Aurora12 / datetime.sh
Created July 16, 2025 16:51
Date-time in Bash in a portable way that works on GNU and BSD systems
datetime="$(date -u +'%Y-%m-%dT%H:%M:%SZ')"
@Aurora12
Aurora12 / where.sh
Created June 11, 2025 07:00
Where am I?
#!/usr/bin/env bash
script_path="$(realpath "$0")"
script_folder="$(dirname "$script_path")"
@Aurora12
Aurora12 / gist:44f1cbf7f5ad267602963599e14f6c47
Last active November 18, 2024 14:40
Go mod replace package version with a commit
go mod edit -replace github.com/repo=github.com/repo@commit-hash
go mod tidy
go mod vendor