Skip to content

Instantly share code, notes, and snippets.

@agyild
agyild / FSR.glsl
Last active September 7, 2026 00:09
AMD FidelityFX Super Resolution v1.0.2 for mpv
// Copyright (c) 2021 Advanced Micro Devices, Inc. All rights reserved.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
@francisfeng
francisfeng / save-tabs-safari-anybox.applescript
Last active August 13, 2025 00:55
Save all tabs of Safari’s current window to Anybox
tell application "Safari"
repeat with tabItem in tabs of window 1
set link to URL of tabItem
tell application id "cc.anybox.Anybox"
save link
end tell
end repeat
end tell
@dbrookman
dbrookman / build-mpv_silicon.sh
Last active June 10, 2026 07:34
How to build mpv & mpv.app on an Apple silicon Mac
#!/usr/bin/env bash
# Builds mpv & mpv.app on Apple silicon Macs.
# Run this script from the root directory of the mpv repo.
# if anything fails, gtfo
set -ex
meson setup build
meson compile -C build
@parterburn
parterburn / custom_warp_script.applescript
Created September 27, 2022 16:51
An easy way to use the Warp terminal (https://www.warp.dev/) with Alfred.
-- For the latest version:
-- https://gist.github.com/parterburn/e832b9090ee35eb830529de8bd978b82
-- Set this property to true to always open in a new window
property open_in_new_window : false
-- Set this property to false to reuse the current tab
property open_in_new_tab : true
-- Handlers
@nilninull
nilninull / restart_mpv.lua
Last active January 16, 2026 11:05
Function to restart mpv by pressing the key.
-- When using the version under development, the image sometimes
-- freezes during seek. Restarting mpv cures it, but it is
-- troublesome, so I wrote a script to solve the problem.
local function restart_mpv()
mp.command("quit-watch-later")
local cmds = {"run", "mpv"}
-- local opts = mp.get_property_native("property-list")
@sirlaurie
sirlaurie / build-ffmpeg-and-mpv.sh
Last active February 27, 2025 12:12
building mpv with capable playing dolby vision
#!/usr/bin/env zsh
# just for macOS
#
# The default options for installing ffmpeg and mpv via brew do not include the activation of libplacebo.
# As a result, when playing videos in Dolby Vision, the color mapping is not accurate. To resolve this issue,
# a script is used to compile ffmpeg with libplacebo activated, followed by the building of mpv.
# Extra: build mpv bundle, with jxl
if [ "$(uname -s)" != "Darwin" ]; then