Skip to content

Instantly share code, notes, and snippets.

View astratagem's full-sized avatar
🎢

chris montgomery astratagem

🎢
View GitHub Profile

Ghostty Keyboard Shortcuts

Default keyboard shortcuts for Ghostty terminal emulator. Platform-specific differences are noted where applicable.

Window Management

Action Windows/Linux macOS
New window Ctrl+Shift+N Cmd+N
Close window Alt+F4 Cmd+Shift+W
@thoughtpolice
thoughtpolice / jjconfig.toml
Last active November 4, 2025 02:17
my jujutsu config
## ------------------------------------------------------------------------------------------------
# Schema published automatically on the website. This allows TOML language
# servers to autocomplete and show documentation for the entries below.
#
# I use the prerelease version as my builds on my machines are often from trunk.
"$schema" = "https://jj-vcs.github.io/jj/prerelease/config-schema.json"
## ------------------------------------------------------------------------------------------------
## ---- Basic settings
@max-sixty
max-sixty / config.kdl
Last active January 12, 2024 08:16
Zellij Config
// This Zellij config offers a more modal experience than the default. There are
// very few keybindings in the mode that you spend most of your time in, and we
// need to hit `C-space` to go into a mode where we navigate.
// The only keybindings in the normal mode are:
// - `C-space` to go into the tmux mode
// - `C-n` for a new pane
// - `C-t` for a new tab
// - `A-[` & `A-]` to go to the previous/next tab
// - `S-arrow` to navigate between panes
@laurybueno
laurybueno / docker.yml
Last active November 13, 2022 17:43
Use Lima as a Docker Desktop replacement on MacOS
images:
- location: "https://cloud-images.ubuntu.com/releases/22.04/release-20220902/ubuntu-22.04-server-cloudimg-amd64.img"
arch: "x86_64"
digest: "sha256:c777670007cc5f132417b9e0bc01367ccfc2a989951ffa225bb1952917c3aa81"
- location: "https://cloud-images.ubuntu.com/releases/22.04/release-20220902/ubuntu-22.04-server-cloudimg-arm64.img"
arch: "aarch64"
digest: "sha256:9620f479bd5a6cbf1e805654d41b27f4fc56ef20f916c8331558241734de81ae"
cpus: 8
memory: 8GiB
@roberth
roberth / minimod.nix
Last active July 26, 2025 16:14
Simple and quick module system alternative + thoughts and tasks
/*
minimod: A stripped down module system
TODO Comparison:
- [ ] Come up with a benchmark "logic" using plain old functions and let bindings
- [ ] Write the benchmark for the module system
- [ ] Write the benchmark for POP?
- [ ] Qualitative comparison of extensibility in the context of composable
Nixpkgs packaging logic
TODO Fine-tuning:
@juanmaguitar
juanmaguitar / __experimental-block-json,txt
Last active April 28, 2023 20:40
use of __experimental in Gutenberg
⬢ gutenberg  trunk ⦾ grep -Rinw . -e '__experimental.*' --include=\block.json
./packages/block-library/src/read-more/block.json:28: "__experimentalFontFamily": true,
./packages/block-library/src/read-more/block.json:29: "__experimentalFontWeight": true,
./packages/block-library/src/read-more/block.json:30: "__experimentalFontStyle": true,
./packages/block-library/src/read-more/block.json:31: "__experimentalTextTransform": true,
./packages/block-library/src/read-more/block.json:32: "__experimentalLetterSpacing": true,
./packages/block-library/src/read-more/block.json:33: "__experimentalTextDecoration": true,
./packages/block-library/src/read-more/block.json:34: "__experimentalDefaultControls": {
./packages/block-library/src/read-more/block.json:42: "__experimentalDefaultControls": {
./packages/block-library/src/read-more/block.json:46: "__experimentalBorder": {
@hlissner
hlissner / synology-ddns.linode.php
Last active July 29, 2022 14:44
A DDNS service provider script for Synology NAS (based off https://github.com/cpascal/syno-ddns-linode/blob/master/linode.php)
#!/usr/bin/php -d open_basedir=/usr/syno/bin/ddns
<?php
if ($argc !== 5) {
echo 'badparam';
exit();
}
// Entered into DSM (Control Panel > External Access > DDNS)
$username = (string) $argv[1]; // Resource ID
@bitonic
bitonic / configuration.nix
Last active August 20, 2025 22:59
NixOS configuration for a remote ZFS server on Hetzner
# Full NixOS configuration for a ZFS server with full disk encryption hosted on Hetzner.
# See <https://mazzo.li/posts/hetzner-zfs.html> for more information.
{ config, pkgs, ... }:
let
# Deployment-specific parameters -- you need to fill these in where the ... are
hostName = "...";
publicKey = "...";
# From `ls -lh /dev/disk/by-id`
@ethan-leba
ethan-leba / readme.org
Last active August 16, 2024 12:04
Yabai + Emacs seamless window movement

Yabai + Emacs window movement integration

This is a short guide to setting up unified window movement bindings with Yabai + SKHD and Emacs, inspired by this tmux-vim movement guide. Short video demo here.

For example, if there’s if Emacs is in focus and there’s an Emacs window to the left, then that window will be focused with the binding. Otherwise, the next application to the left will be focused. In this guide I’m using alt - HJKL, but you can substitute those with whatever you’d like.