Skip to content

Instantly share code, notes, and snippets.

View asynchroza's full-sized avatar
🌴
On vacation

Mihail Bozhilov asynchroza

🌴
On vacation
View GitHub Profile
@asynchroza
asynchroza / git.md
Last active March 22, 2025 21:04
Git commands

Rename a branch

git branch -m <old-name> <new-name>

Change base branch

git rebase --onto   
@asynchroza
asynchroza / reset_tilde.sh
Created January 15, 2025 10:00
Reset keyboard mappings with hidutil
#!/bin/bash
hidutil property --set '{"UserKeyMapping":[]}'
@asynchroza
asynchroza / tmux.conf
Created January 6, 2025 21:14
Enable tmux to propagate keys correctly (to vim)
set -s extended-keys on
set -as terminal-features 'xterm*:extkeys'

k get <resource> <name?> - fetch resource/s

k create <resource> generic <name> <..attributes> --dry-run=client -o yaml > <filename>.yaml - generate resource definition template

k get pod <pod-name> -n <namespace> -o yaml > pod.yaml - export a pod definition

k delete pod - delete a pod

@asynchroza
asynchroza / swap.sh
Created February 6, 2023 20:47
Swap tilde and non us backlash on MacOS
hidutil property --set '{"UserKeyMapping":[
{"HIDKeyboardModifierMappingSrc":0x700000035,"HIDKeyboardModifierMappingDst":0x700000064},
{"HIDKeyboardModifierMappingSrc":0x700000064,"HIDKeyboardModifierMappingDst":0x700000035}
]}'