Skip to content

Instantly share code, notes, and snippets.

View mxmilkiib's full-sized avatar
🔊

Milkii Brewster mxmilkiib

🔊
View GitHub Profile
@krasCGQ
krasCGQ / PreferredSettings.md
Last active March 4, 2024 17:09
My personal prefered settings for encoding media files, especially audio.

Disclaimer

If you decide to follow my settings, I'm not responsible for anything that happens if you decide to go careless and become a priceless dumb. All commands are done in Linux PC using corresponding CLI programs. In Windows, just add .exe after CLI program name.

Free Lossless Audio Codec (FLAC)

I prefer maximum compression as possible with replay gain applied. This command below will silence all warnings, especially when dealing with Hi-Res audios: a.wav: WARNING: Legacy WAVE file has format type 1 but bits-per-sample=24

$ flac --totally-silent --delete-input-file --replay-gain -V8 .wav
-- autosave.lua
--
-- Periodically saves "watch later" data during playback, rather than only saving on quit.
-- This lets you easily recover your position in the case of an ungraceful shutdown of mpv (crash, power failure, etc.).
--
-- You can configure the save period by creating a "lua-settings" directory inside your mpv configuration directory.
-- Inside the "lua-settings" directory, create a file named "autosave.conf".
-- The save period can be set like so:
--
-- save_period=60
@JBlond
JBlond / bash-colors.md
Last active May 13, 2025 18:13 — forked from iamnewton/bash-colors.md
The entire table of ANSI color codes.

Regular Colors

Value Color
\e[0;30m Black
\e[0;31m Red
\e[0;32m Green
\e[0;33m Yellow
\e[0;34m Blue
\e[0;35m Purple
@fullmetalsheep
fullmetalsheep / trueautosub.lua
Last active June 26, 2023 12:52 — forked from selsta/autosub.lua
Automatically download subtitles in mpv using subliminal.
-- requires subliminal, version 1.0 or newer
-- default keybinding: b
local utils = require 'mp.utils'
--sleep function, so that subs aren't downloaded the instant a file is loaded
--taken from:http://lua-users.org/wiki/SleepFunction
function sleep(s)
local ntime = os.time() + s
repeat until os.time() > ntime
end
@Francesco149
Francesco149 / osu_on_linux_overhaul.md
Last active March 21, 2025 16:22
Ultimate guide to low-latency osu on linux
@develmaycare
develmaycare / duplicate-row.js
Last active December 8, 2024 09:46
Duplicate a row in Google Sheets.
/* To use this in a Google Sheet:
1. Go to Tools > Script Editor.
2. Save the script.
3. Paste this script and click on the bug symbol.
4. Authorize the script.
5. Refresh the sheet.
*/
// global
var ss = SpreadsheetApp.getActive();
@a-raccoon
a-raccoon / radio.m3u
Last active August 1, 2023 04:12
My hodgepodge of News & Talk Radio feed live streams.
#EXTM3U
# filename: radio.m3u
# -------------------
# My Talk/News Live Streaming Radio Playlist
# Get this playlist on your phone! I use VLC
##### https://git.io/vKiO1 ######
# #
# #
# █▀▀▀▀▀█ █▄█ █▄█ ▄ █▀▀▀▀▀█ #
@alces
alces / ansible_local_playbooks.md
Last active May 6, 2025 11:00
How to run an Ansible playbook locally
  • using Ansible command line:
ansible-playbook --connection=local 127.0.0.1 playbook.yml
  • using inventory:
127.0.0.1 ansible_connection=local
@alphapapa
alphapapa / mangle
Last active June 21, 2021 16:03
Mangle man pages to show just the parts you need (suitable for aliasing to "man")
#!/bin/bash
less_command='| less $less_no_init -aiF -Ps"Manual page\: $man_page (?ltline %lt?L/%L.:byte %bB?s/%s..? (END):?pB %pB\%..)"'
# Get section
if [[ $1 =~ [0-9]+ ]]
then
section=$1
shift
fi
@abhimanyu003
abhimanyu003 / input.conf
Created February 7, 2016 01:15
MPV Keyboard Shortcut to match VLC
## MPV Keyboard Shortcut to match VLC
## Path: /etc/mpv
## ==================
UP ignore # ignore keybinds for
DOWN ignore # directional keys
LEFT seek -10
RIGHT seek 10
SPACE cycle pause # toggle pause