Skip to content

Instantly share code, notes, and snippets.

Avatar
🔬

Alpha Shuro alphashuro

🔬
  • Pleo
  • Astral plane
View GitHub Profile
@alphashuro
alphashuro / alfred-kitty-applescript
Created April 24, 2022 11:18
AppleScript for using Alfred with kitty
View alfred-kitty-applescript
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
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
#!/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
@alphashuro
alphashuro / shell.nix
Last active June 17, 2022 18:08
a base for starting nix shell scripts
View shell.nix
{ pkgs ? import <nixpkgs> {} }:
pkgs.mkShell {
buildInputs = with pkgs; [
just # a command runner
];
shellHook = ''
echo nix shell!
'';
@alphashuro
alphashuro / .vimrc
Last active March 17, 2019 13:31
My vim config
View .vimrc
" 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