Skip to content

Instantly share code, notes, and snippets.


Alpha Shuro alphashuro

  • Pleo
  • Astral plane
View GitHub Profile
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/ @ --to unix:/tmp/mykitty new-window --new-tab"
tell application "System Events" to keystroke cmd
tell application "System Events"
git clone
cd BigBagKbdTrixXKB
chmod +x *.sh
bash -ox
./ -a 5ca
# reset with `sudo apt-get install xkb-data`
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
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 / .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