Skip to content

Instantly share code, notes, and snippets.

View Gutter-chan's full-sized avatar
💭
I may be slow to respond. So try to leave a message. Thanks ;)

Gutter-chan

💭
I may be slow to respond. So try to leave a message. Thanks ;)
View GitHub Profile
@Gutter-chan
Gutter-chan / miui-blotware-apps.md
Created November 23, 2023 14:25 — forked from mcxiaoke/miui-blotware-apps.md
MIUI 13/14 bloatware apps, updated at 20240816

对于所有应用,不建议直接删除,使用adb shell pm disable-user package-name禁用即可,方便出问题时恢复。

DO NOT UNINSTALL:

  • com.miui.securitycenter
  • com.miui.securityadd
  • com.xiaomi.finddevice

(Don’t uninstall these three apps or services from your Xiaomi device. Otherwise, you may encounter device bricking or bootloop issues.)

@Gutter-chan
Gutter-chan / mpv.conf
Created September 14, 2021 14:36 — forked from Ammly/mpv.conf
My mpv player configuration
#
# mpv configuration file
#
# Configuration files are read system-wide from /usr/local/etc/mpv.conf
# and per-user from ~/.config/mpv/mpv.conf, where per-user settings override
# system-wide settings, all of which are overridden by the command line.
deband=no
geometry=50%:50%
alang=en
@Gutter-chan
Gutter-chan / youtube-quality.lua
Created August 30, 2021 04:54 — forked from jgreco/youtube-quality.lua
demo mpv user builtin for youtube-dl
-- youtube-quality.lua
--
-- Change youtube video quality on the fly.
--
-- Diplays a menu that lets you switch to different ytdl-format settings while
-- you're in the middle of a video (just like you were using the web player).
--
-- Bound to ctrl-f by default.
local mp = require 'mp'
@Gutter-chan
Gutter-chan / ytdl-preload.lua
Created August 19, 2021 13:24 — forked from bitingsock/ytdl-preload.lua
(Updated) precache the next entry in your playlist if it is a network source by downloading it to a temp file ahead of time. Make sure to change Line 1 to a directory where you want the files to download to. This update makes it much more usable by downloading all streams in parallel so you can watch it while it downloads. Only downside is it do…
local cachePath = "R:/ytdl"
local nextIndex
local observeInitial
mp.enable_messages("info")
local function listener(event)
if event.prefix == mp.get_script_name() then
local destination = string.match(event.text, "%[download%] Destination: (.+).mkv") or
string.match(event.text, "%[download%] (.+).mkv has already been downloaded")
if destination and string.find(destination,":\\") then
@Gutter-chan
Gutter-chan / skiptofade.lua
Created August 13, 2021 15:31 — forked from bossen/skiptofade.lua
mpv lua script. Seeks forward until a black screen appears. Built to skip openings. Uses the lavfi blackdetect filter.
-- betterchapters.lua
-- seeks forward until a black screen appears.
-- default keybinding: b
-- Keybind names: skip_scene
script_name = mp.get_script_name()
detect_label = string.format("%s-detect", script_name)
detecting = false
threshold = 0.9
detection_span = 0.05
negation = false
@Gutter-chan
Gutter-chan / autoload.lua
Created August 10, 2021 06:42 — forked from Cellane/autoload.lua
Amazing mpv scripts
-- This script automatically loads playlist entries before and after the
-- the currently played file. It does so by scanning the directory a file is
-- located in when starting playback. It sorts the directory entries
-- alphabetically, and adds entries before and after the current file to
-- the internal playlist. (It stops if the it would add an already existing
-- playlist entry at the same position - this makes it "stable".)
-- Add at most 5 * 2 files when starting a file (before + after).
MAXENTRIES = 5
function Set (t)