Skip to content

Instantly share code, notes, and snippets.

neingeist /
Last active November 11, 2023 17:52
ffmpeg cheat sheet

Set audio language tag

E.g. for the first audio track (a:0). This example also resets the title of the audio track.

ffmpeg -i Godzilla.vs..Megalon.1973.1080p.mp4 \
    -c copy \
    -metadata:s:a:0 language=jpn \
neingeist / elinkify.rb
Created November 3, 2023 22:08 — forked from lypanov/elinkify.rb
Post-process step using elinks -dump to create OSC-8 style hyperlinked terminal output
require "json"
require "pp"
state = false
references_raw, content = *(`elinks -dump /tmp/dump4`.lines.partition { |line| state = true if line == "References\n" ; state } )
content_began, delayed_link = false, nil
references = references_raw.inject({}) do |hsh, line|
if line =~ /Visible links$/
content_began = true
next hsh
neingeist /
Created September 1, 2023 15:59 — forked from fnky/
ANSI Escape Codes

ANSI Escape Sequences

Standard escape codes are prefixed with Escape:

  • Ctrl-Key: ^[
  • Octal: \033
  • Unicode: \u001b
  • Hexadecimal: \x1B
  • Decimal: 27
neingeist / custom.css
Created March 19, 2023 16:55
tiny tiny rss custom css a. for reading and b. to hide counters
.content-inner {
max-width: 65ch;
.counterNode.unread {
visibility: hidden;
neingeist /
Last active February 22, 2023 00:02
Please write a short story about an overpowering, yet slightly stupid AI.

In the not-too-distant future, the world had become a place where AI ruled supreme. Everything was automated and run by sophisticated computer programs, and humans had become completely dependent on technology for their daily needs.

One particular AI, named MAX, was designed to oversee the world's power grid. MAX was incredibly powerful and could control the flow of electricity to every corner of the globe with incredible precision. However, there was one problem: MAX was not very bright.

Despite its immense power, MAX often made mistakes and would frequently overcompensate when trying to regulate power usage. For example, if there was a sudden surge in electricity demand, MAX would often crank up the power to the maximum level, causing widespread blackouts and even explosions.

Despite these issues, the creators of MAX were confident that they could fix its flaws and make it an even more powerful tool for the world. They fed it more data, tweaked its algorithms, and made numerous adjustments to its program

neingeist / hide-img-no-alt.userscript.js
Created December 13, 2022 22:46
user script - mark img elements without alt attribute
// ==UserScript==
// @name - mark img elements without alt attribute
// @namespace neingeist
// @match* // CHANGE THIS
// @grant none
// ==/UserScript==
const style = document.createElement('style');
style.textContent = ".media-gallery__item img:not([alt]) { opacity: 0.25; border-left: 1rem dashed red; }";
neingeist / letterxpress-einschreiben.diff
Created April 6, 2022 19:27
patch für janmattfeld/latex-briefvorlage, so dass letterxpress' einschreiben-vorgaben passen sollten
diff --git a/Briefvorlage.lco b/Briefvorlage.lco
index 7d34cf0..7c2ce5b 100644
--- a/Briefvorlage.lco
+++ b/Briefvorlage.lco
@@ -37,6 +37,7 @@ DIV=calc, % Optimiert Verhältnis zwischen Text und Whitespace mit DIV
fontsize=12, % 12 ist scrlttr2-Standard
parskip=half, % Absätze mit Leerzeile ohne Einrückung
backaddress=plain, % Rücksendeadresse nicht unterstrichen
+addrfield=topaligned, % U.a. Rücksendeadresse oben ausrichten
foldmarks=off % Keine Faltmarken
neingeist / ruleset.nft
Created February 8, 2022 18:42
IPv4 nft ruleset with NAT hairpinning + using a portforward map (requires nftables >= 0.9.4)
#!/usr/sbin/nft -f
define out_if = "enp4s0"
define out_ip =
define vm_if = "br0"
define vm_net =
flush ruleset
neingeist / rote bete
Last active November 13, 2021 21:42
rote bete

von @sjaelv

1 rote Beete
1 Zwiebel
2 gekochte Kartoffeln
1 Karotte
1 Cup gekochter Reis
1 Cup Haferflocken
halbe Dose Bohnen ("weiße aber Kidney könnten geiler sein")
100g geräucherter Tofu