Skip to content

Instantly share code, notes, and snippets.

#!/home/irandms/.guix-home/profile/bin/fish
# 1. Check for arguments
# We check if the argument count is 0. If so, print help and exit.
if test (count $argv) -eq 0
echo "Error: No game specified."
echo "Usage: "(status filename)" <game_process_substring>"
echo "Example: "(status filename)" helldivers2"
exit 1
end
@irandms
irandms / .vimrc
Created October 17, 2018 01:00
Vimrc for os1
" Vim 8 / nvim only things are commented out with 3 double quotes
call plug#begin()
Plug 'sjl/badwolf'
Plug 'airblade/vim-gitgutter'
Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' }
Plug 'SirVer/ultisnips'
Plug 'honza/vim-snippets'
@irandms
irandms / from_PrtScr_to_xclip.sh
Last active November 26, 2016 04:46
Simple shell script to replace some ShareX functionality on Linux for me. Uploads a screencap of my screen to my own server and pastes the public URL into clipboard for easy sharing.
#!/bin/bash
# user-config things
PICTURES_DIR="/home/irandms/Pictures"
FILE_NAME="Screenshot from $DATE.png"
HOST="just.another.computer"
URL_END="sharex/$YR/$MO"
REMOTE_DIR="$HOME/public_html/$URL_END"
# take the screenshot