Skip to content

Instantly share code, notes, and snippets.

@Steellow
Steellow / preview-remap.lua
Last active August 29, 2022 08:08
Remap delete to cmd + ⌫ in Preview.app
-- Requires AppBindings.spoon: https://github.com/wyne/awesome-hammerspoon
hs.loadSpoon("AppBindings")
spoon.AppBindings:bind('Preview', {{{}, 'forwarddelete', {'cmd'}, 'delete'}})
@Steellow
Steellow / kk-yt-oneliner
Created October 16, 2021 11:38
audio + picture = YouTube video
ffmpeg -loop 1 -r 1 -i image.jpg -i audio.mp3 -c:a copy -shortest -c:v libx264 out.mp4
@Steellow
Steellow / äö_in_US_layout.ahk
Created May 8, 2020 08:59
Finnish characters in US layout
#Warn
#SingleInstance Force
:?*:g;::ö
:?*:g'::ä
@Steellow
Steellow / docker.create
Last active May 8, 2020 09:07
My Jellyfin Docker create
docker create \
--name=jellyfin \
-e PUID=1000 \
-e PGID=1000 \
-e TZ=Europe/Helsinki \
-p 8096:8096 \
-v /mnt/virtual/storage/Entertainment/jellyfin_stuff:/config \
-v /mnt/virtual/storage/Entertainment/Series:/data/tvshows \
-v /mnt/virtual/storage/Entertainment/Movies:/data/movies \
--restart unless-stopped \