Utilities to ease your life.
Scripts that I use on a daily basis, or on new system installs, that improve my experience with Linux substantially!
They are sorted by how much utility they provide me, descending.
- Super Productivity
- bash_rc.aliases - High-Octane .bashrc aliase and functions for a better Quality of Life.
- sudoers.d/00_prompt_once - Only prompt for your sudo password once per boot.
- ssh-keyphrase-only-once - Only prompt for your SSH keyphrase once per boot.
- gitconfig - High-Octane Git CLI Configuration.
- CronTabs
- cron.daily/00_clear-cache - Remove useless cache files nightly.
- cron.daily/01_purge-locales - Remove worthless intl locales.
- cron.hourly/btrfs-snapshot - Backup your BTRFS / hourly.
- cron.daily/btrfs-snapshot - Backup your BTRFS / daily.
- Quality of Life
- ls-by-min - Sorts the output of
ls
by file size, descending. - random-file [dir] - Randomly picks a file or directory and displays it.
- sync-watch - Outputs a tiny, updating display of how many MBs need to be written to disks.
- turn-off-monitors - Turns off all monitors via the Command Line (CLI).
- ls-by-min - Sorts the output of
- Uber Scripts (很好的控制台脚本)
- changelog-maker-lite - Quickly creates a beautiful changelog from the commit history.
- git-mtime - Restores every file's modification time to that of the repo's history.
- stream-to-youtube - Live Screencast directly to YouTube from the CLI.
- watermark.sh - Easily embed your own image watermark onto videos.
- wifi-autorun-on-connect - Autorun a script when you connect to a Wifi hotspot.
- x265.sh - Transcode to h265 HEVC via the Intel graphics card using VAAPI.
- Esoteric Utilities
- arch-pacman-dupe-cleaner -
- init-btrfs-rootfs - Remove duplicated Arch Linux Pacman entries.
- clone-github-repos.php - Downloads all of a user's/org's GitHub repositories.
- License - Creative Commons v4.0 International
- About The Author
This is arguably the most important piece of the project!
These dozens of aliases make working with Linux and developing web app software much more efficient and streamlined.
Go check it out! bash_rc.aliases
This will make sudo
only ask for your password ONE TIME during
a single boot. It won't ask across terminals and it won't time out.
On reboot, it will automatically expire.
Properly configures your OpenSSH client and installs ssh-agent
in your ~/.bash_profile
in such a way
that you will only ever have to enter your SSH keyphrase once per login for anything that works with ssh-agent
.
A highly-optimized .gitconfig for seasoned software developers ready to increase their daly productivity. Install into ~/.gitconfig.
git pretty
git ll
Shows a beautiful multi-colored log with standard ISO dates:
git fix
Quickly jumps into rebasing the last two commits into one another.
git alterego
Quickly switch the current repo to using your main alterego account for an previously-committed commit.
git ego
The reverse of git alterego
.
git resign <hash>
Quickly resign bulk commits from to the latest.
This is particularly utilitarian when your GPG key expires and you need to renew it and then resign.
git c: checkout
git cp: cherry-pick
git cpm: cherry-pick for Merge commits
Utility aliases to make git more efficient to use.
git shows
Shows the GPG signature for every commit in git log
.
- Empties out the ~/.cache directory of every non-root user.
- Empties out Pacman's package cache directory.
This can optionally use nullfsvfs in order to limit wear-and-tear on SSDs.
Removes every non-EN locale file every day.
This saves, usually, 400-1000 MB of space.
Takes BTRFS snapshots of / every hour on the hour.
Cleans up the prior day's hourly snapshots while keeping the daily ones.
Easily turns off all of your monitors via the CLI.
For when you want to just step away and not worry so much about a lock screen.
Returns a list of files sorted by file size, descending, that are at least X MB big.
Transcodes to x265 HEVC via ffmpeg using Intel's graphics card.
Picks a random file in a directory / PWD.
Installs a NetworkManager script that atomatically runs when connected to specific # WiFi networks.
Restores each file's modification time in your working directory to when it was last updated in the remote git repository.
Displays how many megabytes still need to be written to [slow] disks.
Adds a watermark to videos via ffmpeg.
Easily creates CHANGELOGs based upon concise git commit logs:
[2020-10-01 00:23:15 CDT] - [x265.sh] Use VAAPI for encoding using Intel graphics cards.
[2020-10-01 00:30:00 CDT] - Created a README.md.
[2020-10-01 00:37:07 CDT] - [random-file] renamed for more clarity.
[2020-10-01 00:44:34 CDT] - Flushed out the README.
[2020-10-01 00:49:44 CDT] - [bash_rc.aliases] Added a whole slew of webdev aliases.
[2020-10-01 00:58:00 CDT] - [bash_rc.aliases] Added some more descriptions.
[2020-10-01 01:10:26 CDT] - [.gitconfig] Added a whole bunch of my git aliases. tag: v1.0.0
[2020-10-01 08:17:42 CDT] - [clear-cache] Delete broken symlinks in the ~/.cache directories.
YouTube CLI Livestream Screencaster straight from the CLI (via ffmpeg)!
Aids in automagically repairing duplicate Pacman database entries in Arch Linux.
It's meant to resolve the rare problem: "error: duplicated database entry 'foo'"
Arch Linux sticks all of / in the main BTRFS subvolume (ID=5).
This means that common snapshotting and subvolume tasks, particularly rolling back to a previously (e.g., working) root subvolume is exceptionally difficult and requires a rescue boot, etc.
The provided solution hotfixes the situation, hopefully without the need for a rescue disk, on a live environment. However, you really ought to have a rescue disk prepped in avance.
And for the love of God, make backups first!
Automagically downloads all of the GitHub repositories of a user or or an organization.
This project is licensed under the Creative Commons Attribution License v4.0 International.
Theodore R. Smith [email protected]
GPG Fingerprint: 4BF8 2613 1C34 87AC D28F 2AD8 EB24 A91D D612 5690
CEO: PHP Experts, Inc.