Skip to content

Instantly share code, notes, and snippets.

@mitchellroe
mitchellroe / cvimrc.vim
Last active February 25, 2022 13:14
cvimrc
" 'up' and 'down' make more sense to me in this context
" than which key is on the left or the right.
map J nextTab
map K previousTab
" YouTube
site '*://www.youtube.com/*' {
unmap f
}
convert -density 600 +antialias input.pdf output.pdf
package main
// Code copied from linuxacademy.com. Stored here for reference.
import (
"encoding/csv"
"encoding/json"
"flag"
"fmt"
"io"
;; Change the window decoration to the dark theme
(start-process-shell-command
"set emacs colors" "*Messages*"
(concat
"xprop -f _GTK_THEME_VARIANT 8u"
" -set _GTK_THEME_VARIANT 'dark'"
" -name 'emacs@" system-name "'"))
# Useful when you're trying to process filenames with spaces in them.
# Thanks to http://www.cyberciti.biz/tips/handling-filenames-with-spaces-in-bash.html
# for this useful bit of code.
SAVEDIFS=$IFS
IFS=$(echo -en "\n\b")
for f in *
do
echo "$f"