Skip to content

Instantly share code, notes, and snippets.

View leemm's full-sized avatar

Lee McCormick leemm

View GitHub Profile
@leemm
leemm / gist:ab82d8bb91f899b3540787155524d776
Last active February 16, 2023 23:25
Installing and configuring nvidia drivers in clean Elementary OS 6.x install, including gamemode and prime-run (if indemand)
To install nvidia drivers (based on 515.48.07 at the time of writing) in a clean elementary os 6.1 Jolnir install. DON'T use the driver listed in the eos store.
// Install the toolchain
sudo apt install build-essential
sudo apt install software-properties-gtk
sudo apt install software-properties-common
sudo apt install linux-headers-$(uname -r)
// Install the drivers
sudo add-apt-repository ppa:graphics-drivers/ppa
@leemm
leemm / gist:60702c245ddc67a22b9acf6ffa77944c
Created March 9, 2023 18:31
HandBrakeCLI (Good small quality)
HandBrakeCLI -i /file/input.mp4 -o /file/out.mp4 -E faac -B 96k -6 stereo -R 44.1 -e x264 -q 27 -x cabac=1:ref=5:analyse=0x133:me=umh:subme=9:chroma-me=1:deadzone-inter=21:deadzone-intra=11:b-adapt=2:rc-lookahead=60:vbv-maxrate=10000:vbv-bufsize=10000:qpmax=69:bframes=5:b-adapt=2:direct=auto:crf-max=51:weightp=2:merange=24:chroma-qp-offset=-1:sync-lookahead=2:psy-rd=1.00,0.15:trellis=2:min-keyint=23:partitions=all
@leemm
leemm / gist:0e512a09edd0f24d440e2243c4e9a3e9
Created April 11, 2023 09:13
Transmission-daemon logging
https://www.cviorel.com/enable-transmission-daemon-logging-to-file/
@leemm
leemm / gist:4e37f97a85fb3825a279cb8a659b99e5
Created April 15, 2023 14:09
Adding Swap file to ubuntu (oom issues)
// Check for OOM errors
journalctl -u systemd-oomd
// Add or increase swap file
https://askubuntu.com/questions/178712/how-to-increase-swap-space/1177939#1177939
@leemm
leemm / gist:1609a2b63ec0514b43c798e6fbc9079a
Created December 1, 2023 15:07
Debian and Secure Boot
https://makedebianfunagainandlearnhowtodoothercoolstufftoo.computer/doku.php?id=start:issecurebootworking
@leemm
leemm / gist:2241e886c2fae9382c03f8b666acea18
Created November 10, 2024 16:14
Snap desktop shortcuts fix
sudo ln -s /var/lib/snapd/desktop/applications /usr/share/applications/snapd