Skip to content

Instantly share code, notes, and snippets.

View Earnestly's full-sized avatar

Earnestly

  • The Black Gate
View GitHub Profile
@izabera
izabera / recursive_exp.md
Last active December 25, 2025 23:35
recursive expansions

for the latest chapter of what's becoming a blog on the most cursed bash you can imagine, let's do some maths together

euclid's algorithm for gcd could be written like this in python:

>>> def gcd(a, b):
...     if b:
...         return gcd(b, a%b)
... return a

Disclaimer: Please read this being aware of the fact that I'm not an expert regarding the things outlined below, however I made my best attempt.

Linux is in general defaulting to values and settings for a server workload with security/hardening in mind, distros usually tweak those a bit towards a more desktop based workload. thought id list a few things ive found out that can be tweaked a bit depending on your own hardware and personal preferences.

My Hardware

Lenovo Legion 7i 2023:

  • 13th Gen Intel(R) Core(TM) i9-13900HX

Native TTY resolutions with nvidia and efifb

this only works on efi systems and on the efifb driver.

Getting Started

to get native TTY resolutions with nvidia blob today (2017-07-xx) you have to run your framebuffer on efifb but efifb itself cant change resolution it only uses whatever it gets handed with, which means you need your firmware or bootloader to set it and hand it over. currently i think its only grub and rEFInd that can do so.

@egmontkob
egmontkob / Hyperlinks_in_Terminal_Emulators.md
Last active April 12, 2026 08:39
Hyperlinks in Terminal Emulators
@ChrisK2
ChrisK2 / README.md
Last active August 29, 2015 14:07
ytdl_hook.lua

youtube-dl hook script for mpv

Now part of mpv

As of 079ecd7 (2014-11-19), the hook script is now integrated into mpv and will be avaiblable when compiled with LUA support. It is (currently) disabled by default, to enable it add --ytdl=yes to your command-line or ytdl=yes to your mpv.conf.

Open Issues