Skip to content

Instantly share code, notes, and snippets.

@dpanter
dpanter / vulkanreport.sh
Created March 3, 2024 12:18
vulkanreport.sh - Easily run vulkancapsviewer with AMD GPU (RADV ACO/RADV LLVM/AMDVLK/AMDGPU-PRO)
#!/bin/bash
# vulkanreport.sh
# Easily run vulkancapsviewer with AMD GPU (RADV ACO/RADV LLVM/AMDVLK/AMDGPU-PRO)
# Created 2024-03-01
# Written for Siduction (Debian sid based distro)
# By dpanter https://gist.github.com/dpanter
# Requires an executable vulkancapsviewer appimage, download from https://vulkan.gpuinfo.org/
# Also assumes the system has icds in the usual locations
# workaround for buggy binary not handling Qt wayland properly
@dpanter
dpanter / git-dolphin.sh
Last active January 30, 2024 13:36
git-dolphin.sh - Easily download, build and install latest dolphin emulator master from Github
#!/bin/bash
# git-dolphin.sh
# Easily download, build and install latest dolphin emulator master from Github
# Created 2023-05-27 - updated 2024-01-30
# Written for Siduction (Debian sid based distro)
# By dpanter https://gist.github.com/dpanter
# make install requires elevated privileges
PROJECT="dolphin"
RUNDATE="`date +%Y%m%d`"
@dpanter
dpanter / git-corectrl.sh
Last active May 4, 2023 14:44
git-corectrl.sh - Easily download, build and install latest CoreCtrl master from Gitlab
#!/bin/bash
# git-corectrl.sh
# Easily download, build and install latest CoreCtrl master from Gitlab
# Created 2023-04-24 - updated 2023-05-04
# Written for Siduction (Debian sid based distro)
# By dpanter https://gist.github.com/dpanter
# make install requires elevated privileges
PROJECT="corectrl"
RUNDATE="`date +%Y%m%d`"
@dpanter
dpanter / git-mangohud.sh
Last active January 30, 2024 18:44
git-mangohud.sh - Easily download, build and install latest MangoHud master from Github
#!/bin/bash
# git-mangohud.sh
# Easily download, build and install latest MangoHud master from Github
# Created 2023-04-21 - updated 2024-01-30
# Written for Siduction (Debian sid based distro)
# By dpanter https://gist.github.com/dpanter
# Meson install requires elevated privileges
PROJECT="MangoHud"
RUNDATE="`date +%Y%m%d`"
@dpanter
dpanter / git-gamescope.sh
Last active January 30, 2024 12:30
git-gamescope.sh - Easily download, build and install latest gamescope master from Github
#!/bin/bash
# git-gamescope.sh
# Easily download, build and install latest gamescope master from Github
# Created 2023-04-21 - updated 2024-01-30
# Written for Siduction (Debian sid based distro)
# By dpanter https://gist.github.com/dpanter
# Meson install requires elevated privileges
# Dependency list https://github.com/ValveSoftware/gamescope/issues/838
PROJECT="gamescope"
@dpanter
dpanter / gpuperf.sh
Created April 1, 2022 16:01
gpuperf.sh - Easily change AMDGPU power DPM forced performance level
#!/bin/bash
# gpuperf.sh
# Easily change AMDGPU power DPM forced performance level
# Created 2022-03-09
# Written for Siduction (Debian sid based distro)
# By dpanter https://gist.github.com/dpanter
# Requires _sudo_ or root login
# setting color variables for fancy pants output
WHITE='\e[1;37m'
@dpanter
dpanter / keyb_rgbsaver.sh
Created August 28, 2021 11:14
keyb_rgbsaver.sh - Auto load OpenRGB profiles with xscreensaver
#!/bin/bash
# keyb_rgbsaver.sh
# Automatically mute keyboard RGB when xscreensaver activates, turn back up when deactivating
# Created 2021-08-28
# Written for Siduction (Debian sid based distro)
# By dpanter https://gist.github.com/dpanter
# Requires _xscreensaver_ and _openrgb_
process() {
while read input; do
@dpanter
dpanter / ping_tester.sh
Created February 5, 2021 17:19
ping_tester.sh - A collection of basic tests for internet connections
#!/bin/bash
# ping_tester.sh
# A collection of basic tests for internet connections, like troubleshooting your ISP
# Useful for logging long running tests to file
# Created 2021-01-01 - updated 2021-02-05
# Written for Siduction (Debian sid based distro)
# By dpanter https://gist.github.com/dpanter
# requires speedtest-cli (provided by Debian package _speedtest-cli_)
# setting up variables
@dpanter
dpanter / compatcheck.sh
Last active September 3, 2023 01:04
compatcheck.sh - Check which compatibility tools Steam is configured to use on installed games
#!/bin/bash
# compatcheck.sh
# Check which compatibility tools Steam is configured to use on installed games
# What's the point? Steam has no easy way to tell you which compat tools are used where.
# If you delete a custom proton version that is in use, Steam lists those games as not installed
# Created 2020-08-12 - Updated 2020-08-13
# Written for Siduction (Debian sid based distro)
# By dpanter https://gist.github.com/dpanter
# kudos to MoistGoat
@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"