Skip to content

Instantly share code, notes, and snippets.

View trpapp's full-sized avatar
🏹
Lord, save us from the arrows of the Hungarians.

Thomas R. Papp trpapp

🏹
Lord, save us from the arrows of the Hungarians.
View GitHub Profile
@trpapp
trpapp / pkglist.sh
Created April 9, 2019 14:49
List all packages w/ install size, package name & priority level
#!/bin/bash
dpkg-query -Wf '${Installed-Size}\t${Package;-40}${Priority}\n' | sort -nr
@trpapp
trpapp / arch.cmd
Created April 9, 2019 14:43
Script to check computer's architecture
echo Starting #%0 & @ECHO OFF & GOTO :windows
#### BASH SCRIPT STARTS HERE ####
# Check for OS name, but can't trust uname -a for arch
OS=`uname`
# Detect architecture by abusing an integer overflow
if ((1<<32)); then
ARCH=64 # 64-bit architecture
@trpapp
trpapp / sources.list
Last active September 17, 2021 20:57
Debian sources.list
#Main Debian package repositories
deb https://deb.debian.org/debian/ stable main contrib non-free
deb-src https://deb.debian.org/debian/ stable main contrib non-free
#Main Debian package updates repositories
deb https://deb.debian.org/debian/ stable-updates main contrib non-free
deb-src https://deb.debian.org/debian/ stable-updates main contrib non-free
#Main Debian package backport repositories
deb https://deb.debian.org/debian/ stable-backports main contrib non-free