Skip to content

Instantly share code, notes, and snippets.

@ascarter
ascarter / hyper_vim_arrows.json
Created March 24, 2025 05:01
Hyper + vim arrows
{
"title": "HHKB: Hyper on Left Control + Arrow keys on HJKL (Hyper layer)",
"rules": [
{
"description": "Left Control → Control when tapped, Hyper when held",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "left_control",
@ascarter
ascarter / hhkb.json
Created March 23, 2025 18:38
HHKB Karabiner Profile
{
"title": "HHKB Layout",
"rules": [
{
"description": "HHKB Editing Keys",
"manipulators": [
{
"from": {
"key_code": "semicolon",
"modifiers": {
@ascarter
ascarter / Xcode.terminal
Created March 11, 2025 22:43
Terminal.app Xcode profile
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>ANSIBlackColor</key>
<data>
YnBsaXN0MDDUAQIDBAUGBwpYJHZlcnNpb25ZJGFyY2hpdmVyVCR0b3BYJG9iamVjdHMS
AAGGoF8QD05TS2V5ZWRBcmNoaXZlctEICVRyb290gAGmCwwXHR4lVSRudWxs1Q0ODxAR
EhMUFRZcTlNDb21wb25lbnRzVU5TUkdCXE5TQ29sb3JTcGFjZV8QEk5TQ3VzdG9tQ29s
b3JTcGFjZVYkY2xhc3NPECUwLjE0OTAxOTU5OSAwLjE0OTAxOTU5OSAwLjE0OTAxOTU5
@ascarter
ascarter / Nord Night.terminal
Created March 11, 2025 22:42
Terminal.app Nord Night profile
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>ANSIBlackColor</key>
<data>
YnBsaXN0MDDUAQIDBAUGBwpYJHZlcnNpb25ZJGFyY2hpdmVyVCR0b3BYJG9iamVjdHMS
AAGGoF8QD05TS2V5ZWRBcmNoaXZlctEICVRyb290gAGjCwwTVSRudWxs0w0ODxARElVO
U1JHQlxOU0NvbG9yU3BhY2VWJGNsYXNzTxAnMC4xNzY0NzA1ODgyIDAuMTk2MDc4NDMx
NCAwLjI1NDkwMTk2MDgAEAGAAtIUFRYXWiRjbGFzc25hbWVYJGNsYXNzZXNXTlNDb2xv
@ascarter
ascarter / Nord.terminal
Created March 11, 2025 22:42
Terminal.app Nord profile
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>ANSIBlackColor</key>
<data>
YnBsaXN0MDDUAQIDBAUGBwpYJHZlcnNpb25ZJGFyY2hpdmVyVCR0b3BYJG9iamVjdHMS
AAGGoF8QD05TS2V5ZWRBcmNoaXZlctEICVRyb290gAGjCwwTVSRudWxs0w0ODxARElVO
U1JHQlxOU0NvbG9yU3BhY2VWJGNsYXNzTxAnMC4xNzY0NzA1ODgyIDAuMTk2MDc4NDMx
NCAwLjI1NDkwMTk2MDgAEAGAAtIUFRYXWiRjbGFzc25hbWVYJGNsYXNzZXNXTlNDb2xv
@ascarter
ascarter / tasks.json
Created March 7, 2025 06:15
Zed devcontainer tasks
// Static tasks configuration.
[
{
"label": "Build",
"command": "devcontainer build"
},
{
"label": "Start",
"command": "devcontainer up"
},
@ascarter
ascarter / stow.sh
Created October 2, 2024 00:03
stow
#!/bin/sh
# dfstow is a simplified version of GNU Stow, a tool that helps manage multiple
# software packages in a single directory.
#
# It does this by creating symbolic links from the destination directory
# to the original files and directories.
#
# The destination directory is created if it doesn't exist.
#
@ascarter
ascarter / remote_luks_unlock.md
Last active March 3, 2023 16:49
Remote Unlock LUKS Encrypted Drive

Remote Unlock LUKS Encrypted Drive

Initial Setup

Provision drive using installer for LUKS/LVM

Typical configuration:

% lsblk -f
@ascarter
ascarter / settings.json
Created March 2, 2022 18:41
GitHub Dark Dimmed Windows terminal colors
{
"background": "#2D333B",
"black": "#2D333B",
"blue": "#6CB6FF",
"brightBlack": "#768390",
"brightBlue": "#6CB6FF",
"brightCyan": "#96D0FF",
"brightGreen": "#8DDB8C",
"brightPurple": "#DCBDFB",
"brightRed": "#F47067",
@ascarter
ascarter / setdate.sh
Created January 27, 2021 17:08
Set missing date/time stamps in photos
#!/bin/sh
# Set missing datetime tags
find "${1:-$PWD}" -not -name ".DS_Store" -type f | while read f
do
# Assumption that files came from Apple Photos export
# Organized:
# <month> <day>, <year>
d=$(basename "$(dirname "${f}")")
datestamp=$(echo "${d}" | sed -E 's/(^.+[,][[:space:]])?([[:alpha:]]+[[:space:]][[:digit:]]+[,][[:space:]][[:digit:]]+)/\2/g')