View alfred-kitty-applescript
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on alfred_script(q) | |
set cmd to q | |
repeat while cmd starts with space | |
set cmd to cmd's text 2 thru -1 | |
end repeat | |
tell application "kitty" to activate | |
do shell script "/Applications/Kitty.app/Contents/MacOS/kitty @ --to unix:/tmp/mykitty new-window --new-tab" | |
tell application "System Events" to keystroke cmd | |
tell application "System Events" |
View colemak-dh.linux.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git clone git@github.com:DreymaR/BigBagKbdTrixXKB.git | |
cd BigBagKbdTrixXKB | |
chmod +x *.sh | |
bash install-dreymar-xmod.sh -ox | |
./setxkb.sh -a 5ca | |
# reset with `sudo apt-get install xkb-data` |
View 1password-chezmoi.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
read -e -p "1password email?: " onepassemail | |
read -e -p "1password domain?: " onepassdomain | |
op account add --address $onepassdomain --email $onepassemail | |
eval $(op signin --account $onepassdomain) | |
# TODO: handle existing private key | |
mkdir -p $HOME/.ssh | |
KEY=$HOME/.ssh/id_rsa |
View shell.nix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ pkgs ? import <nixpkgs> {} }: | |
pkgs.mkShell { | |
buildInputs = with pkgs; [ | |
just # a command runner | |
]; | |
shellHook = '' | |
echo nix shell! | |
''; |
View .vimrc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" kill vi compatibility | |
syntax enable | |
set fileformat=unix | |
set hidden | |
set number " always show line numbers | |
filetype plugin indent on | |
set tabstop=2 " 2 spaces per tab | |
set shiftwidth=2 " when indenting with > use 2 spaces |