GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - birdie-github/useful-scripts: Useful everyday bash scripts and commands for Linux by Artem S. Tashkinov

BranchesTags
Open more actions menu

Latest commit

 

History

180 Commits
180 Commits

Folders and files

NameName
Last commit message
Last commit date
BTBL
BTBL
 
 
Firefox-updater
Firefox-updater
 
 
LICENSE
LICENSE
 
 
PkgPowerDaemon.service
PkgPowerDaemon.service
 
 
PkgPowerDaemon.sh
PkgPowerDaemon.sh
 
 
README.md
README.md
 
 
alert-bad-processes
alert-bad-processes
 
 
alert-bad-processes-user
alert-bad-processes-user
 
 
any2jxl
any2jxl
 
 
any2wav
any2wav
 
 
appsquash-helper
appsquash-helper
 
 
audio-conf
audio-conf
 
 
avoid-vpn
avoid-vpn
 
 
avolume
avolume
 
 
boost-tuner
boost-tuner
 
 
btc2usd
btc2usd
 
 
check_installed_rpms
check_installed_rpms
 
 
check_installed_rpms_clean
check_installed_rpms_clean
 
 
clean_dnf
clean_dnf
 
 
cpumode
cpumode
 
 
cr
cr
 
 
defrag
defrag
 
 
direct
direct
 
 
dmesg-notify
dmesg-notify
 
 
dmesg-notify-user
dmesg-notify-user
 
 
dmesg-sanitize.py
dmesg-sanitize.py
 
 
extract-git-commits.sh
extract-git-commits.sh
 
 
findexe
findexe
 
 
firmware-updater.sh
firmware-updater.sh
 
 
gamma.sh
gamma.sh
 
 
git-file-dates
git-file-dates
 
 
git-file-dates-pro
git-file-dates-pro
 
 
git-pusher
git-pusher
 
 
ip-country
ip-country
 
 
iperf3.service
iperf3.service
 
 
macros
macros
 
 
message_gui_user
message_gui_user
 
 
metaclone
metaclone
 
 
minicat.asm
minicat.asm
 
 
monitor_overclock
monitor_overclock
 
 
mouse-acceleration-toggle
mouse-acceleration-toggle
 
 
nvidia-xfce-genmon
nvidia-xfce-genmon
 
 
oneliners
oneliners
 
 
par2create-batch
par2create-batch
 
 
perfbias.sh
perfbias.sh
 
 
png2jxl
png2jxl
 
 
rescan_scsi
rescan_scsi
 
 
run_via_cgroup
run_via_cgroup
 
 
ryzen-powersave.sh
ryzen-powersave.sh
 
 
tar_sorted
tar_sorted
 
 
uniunpack
uniunpack
 
 
vbox_system_qt
vbox_system_qt
 
 
watch_raw_io
watch_raw_io
 
 
watchrawio.py
watchrawio.py
 
 
watts_cpu
watts_cpu
 
 
xsession-errors
xsession-errors
 
 
zip2date
zip2date
 
 

Repository files navigation

Probably useful scripts

boost-tuner

I'm not content that my Ryzen 3700 CPU boosts so often and so much while I'm simply browsing the web (governor: ondemand) which leads to the CPU operating at relatively high temperatures (45-60C, with an average run-of-the-mill air cooler and around 19C temperature in the room where I am) and voltages (1.5V voltage doesn't sound safe to me despite AMD assurance this voltage is 100% safe). The whole situation made me write the script which disables boost unless certain predefined processes are found to be running. At the moment I've allowed only compilation but you can add anything you want. To run it you may add it to /etc/rc.d/rc.local, e.g. this way: ( sleep 60 && exec /root/bin/boost-tuner & ) & # this is not to delay any further commands and probably to disable boost only after the user has logged on (60 seconds are more than enough to enter your password). It must be run under root. As a user you may force enable boost by creating /tmp/boost, e.g. touch /tmp/boost

btc2usd

A shell script which shows the current bitcoin exchange rates for CoinDesk.com and CoinMarketCap.com in the United States dollars (USD). Requires the jq utility (can be installed in deb distros using sudo apt-get install jq or in Fedora using sudo dnf install jq). It could also be used under XFCE via the generic monitor applet.

clean_dnf

Ever wanted to get rid of useless/unnecessary/redundant RPMs lying on your disk? There's a script for that which uses DNF. Run it without arguments to walk through all the installed packaged, or give it a single argument (I may fix it to accept any number of packages) to check whether other packages depend on it. It will skip the RPMs which result in the removal of protected packages like DNF itself.

defrag

fast recursive defrag for ext4

  • Fast recursive defragmentation for the specified directory residing on an ext4 filesystem; it doesn't support anything else
  • ext4 doesn't allow to defrag free space, so it's impossible to fully defragment a filesystem if free space is fragmented and there are files larger than continuous chunks of free space
  • If you want to defrag the root filesystem, start with defrag /var, then defrag / - files in var are usually heavily fragmented and need to be defragged first
  • It's theoretically possible to fully defrag the ext4 filesystem: you first need to shrink it, then expand it. I will never recommend this as it's quite a dangerous operation and mustn't be performed without backing up first; in addition you cannot obviously do that on a mounted filesystem

Firefox-updater

If you're unwilling to let your user account update Firefox (it's a little bit unsafe) I've created a script for this situation which could be added in a crontab. This script automatically updates the official Linux x86-64 Firefox distribution installed on your PC. It currently supports the ESR, stable and beta channels.

monitor_overclock

This script allows you to overclock your monitor (refresh rate/frequency) under Linux. It was created specifically for my sole monitor, so you'll have to adjust it if yours is different. Modifications to /etc/X11/xorg.conf.d/conf.conf are required.

watch_raw_io

Monitor input/output read/write nicely formatted stats for all block devices/disks in the system in real time in Linux. Takes a single argument: a refresh interval which is 2 seconds by default. Works under a normal (non-root) user as well.

Bottom line

To be honest I have close to a hundred such scripts but many of them are either silly or useful only for me. I publish them elsewhere.

SAST Tools

PVS-Studio - static analyzer for C, C++, C#, and Java code.

About

Useful everyday bash scripts and commands for Linux by Artem S. Tashkinov

Topics

clicommand-line-toolsdnffedoralinuxmonitorrpmsshell-scripttricks

Resources

Readme
GPL-2.0 license
Activity

Stars

20 stars

Watchers

0 watching

Forks

2 forks
Report repository

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.