Skip to content

Instantly share code, notes, and snippets.

View montchr's full-sized avatar
I may be slow to respond.

chris montgomery montchr

I may be slow to respond.
View GitHub Profile
@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 December 17, 2024 13:31
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": {
#!/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 September 22, 2024 07:37
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.

The Freenode resignation FAQ, or: "what the fuck is going on?"

IMPORTANT NOTE:

It's come to my attention that some people have been spamming issue trackers with a link to this gist. While it's a good idea to inform people of the situation in principle, please do not do this. By all means spread the word in the communities that you are a part of, after verifying that they are not aware yet, but unsolicited spam is not helpful. It will just frustrate people.

Update 3 (May 24, 2021)

A number of things have happened since the last update.

@danthegoodman
danthegoodman / Impressions of the ZSA Moonlander.md
Last active December 2, 2021 13:49
Impressions of the ZSA Moonlander

Impressions of the ZSA Moonlander

I bought a ZSA Moonlander keyboard. This article documents my journey to using this keyboard as my daily driver.

Last Update: June 1, 2021

My current configuration: Oryx Layout

Graph of Typing Speed