Skip to content

Instantly share code, notes, and snippets.

View p-r-i-t-h-v-i's full-sized avatar
🎯
Focusing

Prithvi p-r-i-t-h-v-i

🎯
Focusing
  • Sauntering in the Milky Way Galaxy
View GitHub Profile

notes for setting up power management under ubuntu 22.04 (kernel 5.15) on a dell xps

I am a developer and system admin. I have a LOT of browser tabs, lots of terminals open, as well as vscode and MS Teams. YMMV but as far as I can tell, the "best" balance of power savings (long battery life) vs maching usability is using tlp and tlpui. This gives approx 5 - 6 hours of battery life on my workload.

I am running an INTEL processor, the below does not apply to AMD

TL;DR

@p-r-i-t-h-v-i
p-r-i-t-h-v-i / apt_mirrors_debian_ubuntu.md
Last active April 9, 2024 07:40
Debian repositories/mirrors

Debian 12 Bookworm

# Official Bookworm mirrors
# Bookworm
deb http://deb.debian.org/debian/ bookworm contrib main non-free-firmware non-free
deb-src http://deb.debian.org/debian/ bookworm contrib main non-free-firmware non-free

# Bookworm-backports
deb http://deb.debian.org/debian/ bookworm-backports contrib main non-free-firmware non-free
@p-r-i-t-h-v-i
p-r-i-t-h-v-i / bash_aliases.md
Last active April 17, 2024 08:44
Bash command aliases
# Aptitude & System related command aliases.
alias udg="sudo apt-get update && sudo apt-get upgrade && sudo apt-get dist-upgrade"
alias ud="sudo apt-get update"
alias ug="sudo apt-get upgrade"
alias dg="sudo apt-get dist-upgrade"
alias src="sudo nano /etc/apt/sources.list"
alias gsrc="sudo gedit /etc/apt/sources.list"
alias csrc="sudo cat /etc/apt/sources.list"
alias ver="cat /etc/debian_version"
@p-r-i-t-h-v-i
p-r-i-t-h-v-i / setup.md
Last active April 18, 2024 02:12
WSL2 Debian@12 Dev Evn set up

Make /etc/resolv.conf changes permanent in WSL2

sudo rm /etc/resolv.conf
sudo bash -c 'echo "nameserver 8.8.8.8" > /etc/resolv.conf'
sudo bash -c 'echo "[network]" > /etc/wsl.conf'
sudo bash -c 'echo "generateResolvConf = false" >> /etc/wsl.conf'
sudo chattr +i /etc/resolv.conf

Install Python dependencies