Skip to content

Instantly share code, notes, and snippets.

@dpanter
dpanter / cpu_usage_per_core.sh
Last active December 19, 2023 07:50
cpu_usage_per_core.sh - Outputs per-core CPU use percentage, space separated one-liner.
#!/bin/bash
# cpu_usage_per_core.sh
# Outputs per-core CPU use percentage, space separated one-liner.
# Created 2020-05-14 - updated 2020-08-13
# Written for Siduction (Debian sid based distro)
# By dpanter https://gist.github.com/dpanter
# requires _mpstat_ (provided by Debian package _sysstat_)
# Failsafe for awk arithmetic ops, if locale uses comma decimal separator
LC_NUMERIC="C"
@dpanter
dpanter / updatemesagit.sh
Last active October 29, 2024 11:32
updatemesagit.sh - Easily update Mesa git from Siduction experimental repo
#!/bin/bash
# updatemesagit.sh
# Easily update Mesa git from Siduction experimental repo
# Created 2020-04-15 - Updated 2024-10-29
# Written for Siduction (Debian sid based distro)
# By dpanter https://gist.github.com/dpanter
# setting color variables for fancy pants output
WHITE='\e[1;37m'
@dpanter
dpanter / aptwhen.sh
Last active August 13, 2020 12:16
aptwhen.sh - Easily check dpkg logs for when a package was installed
#!/bin/bash
# aptwhen.sh
# Easily check dpkg logs when a package was installed
# Created 2020-04-11 - Updated 2020-08-13
# Written for Siduction (Debian sid based distro)
# By dpanter https://gist.github.com/dpanter
# If no options given, print this message and quit
if [ -z "$1" ]; then