Skip to content

Instantly share code, notes, and snippets.

View goetzc's full-sized avatar
🕉️

Götz goetzc

🕉️
View GitHub Profile
@goetzc
goetzc / btrfs-subvolume-diff.sh
Created December 30, 2017 23:02
Show the difference between two btrfs subvolumes/snapshots
#!/bin/bash
#
# Author: http://serverfault.com/users/96883/artfulrobot
#
# This script will show most files that got modified or added.
# Renames and deletions will not be shown.
# Read limitations on:
# http://serverfault.com/questions/399894/does-btrfs-have-an-efficient-way-to-compare-snapshots
#
# btrfs send is the best way to do this long term, but as of kernel
@goetzc
goetzc / on_pause_show_progress_bar.lua
Created August 12, 2016 05:23
mpv script to show the progress bar on pause.
-- mpv script to show the progress bar on pause. --
function on_pause(name, value)
if value == true then
mp.command("show-progress")
end
end
mp.observe_property("pause", "bool", on_pause)
@goetzc
goetzc / subdl.lua
Last active September 9, 2016 20:49 — forked from gim-/subdl.lua
Automatically download subtitles in mpv using subdl.
-- mpv script to download subtitles using subdl.
-- requires subdl (2016 Sep master branch): https://github.com/alexanderwink/subdl
-- default keybinding: B (capital B)
-- add the following to your input.conf to change the default keybinding:
-- keyname script_binding subdl_load_subs
local utils = require 'mp.utils'
function subdl_load()