Skip to content

Instantly share code, notes, and snippets.

@mikeri
mikeri / scc.zsh-theme
Last active May 18, 2020
SCC zsh theme
View scc.zsh-theme
RPROMPT='$(git_prompt_info)%F{yellow}%n%{$reset_color%}%F{240}@%F{blue}%m%{$reset_color%}%(?,,%F{red} [%?]%{$reset_color%})'
PROMPT='%F{240}%25<...<%F{cyan}%~%F{yellow}%B>%b%{$reset_color%}%f '
ZSH_THEME_GIT_PROMPT_PREFIX="%F{240}(%F{246}"
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%} "
ZSH_THEME_GIT_PROMPT_DIRTY="%F{240})%F{red}x%{$reset_color%}"
ZSH_THEME_GIT_PROMPT_CLEAN="%F{240})%{$reset_color%}"
@mikeri
mikeri / mutool-pdf.thumbnailer
Created May 11, 2019
PDF thumbnailer for freedesktop.org using mutool. Very fast.
View mutool-pdf.thumbnailer
[Thumbnailer Entry]
TryExec=mutool
Exec=mutool draw -w %s -h %s -o %o %i 1
MimeType=application/pdf;application/x-pdf;image/pdf;
@mikeri
mikeri / sp-download.sh
Last active Jul 4, 2018
South Park downloader
View sp-download.sh
#!/bin/bash
# South Park download script
#
# Uses youtube-dl and ffmpeg
#
# Downloads the whole series
# and joins the multipart
# episodes into single files
for season in `seq 1 22`:
@mikeri
mikeri / imagemagick-pdf.thumbnailer
Created May 28, 2018
PDF thumbnailer for freedesktop.org using ImageMagick (for users without Evince)
View imagemagick-pdf.thumbnailer
[Thumbnailer Entry]
TryExec=convert
Exec=convert -alpha deactivate %i[0] -thumbnail %s %o
MimeType=application/pdf;application/x-pdf;image/pdf;
@mikeri
mikeri / ilbm.thumbnailer
Created May 28, 2018
ILBM/Amiga IFF thumbnailer for freedesktop.org
View ilbm.thumbnailer
[Thumbnailer Entry]
TryExec=convert
Exec=convert %i -thumbnail %s %o
MimeType=image/x-ilbm;
@mikeri
mikeri / userContent.css
Last active Nov 15, 2017
userContent.css to fix checkmarks and input fields in Firefox running on dark themed Linux
View userContent.css
/* ~/.mozilla/firefox/XXXXXX.default/chrome/userContent.css */
input {
border: 2px inset white;
background-color: white;
color: black;
-moz-appearance: none !important;
}
textarea {
border: 2px inset white;
You can’t perform that action at this time.