1
0
Fork
You've already forked PersonalScripts
0
A collection of scripts I have created for personal use.
  • Shell 80.5%
  • Python 19.5%
2026年05月20日 14:31:57 -04:00
.github/workflows Revert previous changes 2026年05月03日 15:55:12 -04:00
bash Rewrite ffmpeg command 2026年05月19日 21:09:49 -04:00
python Added functionality description 2025年12月05日 01:41:49 -05:00
LICENSE Added GNU GPLv3 license. 2025年06月11日 03:17:40 -04:00
README.md Updated readme 2026年05月20日 14:31:57 -04:00

PersonalScripts

A collection of bash and Python scripts for automating tasks and simplifying workflows on Linux.

License: GPL v3

Contents


Scripts

Bash

Script Description
bash/go2sleep.sh Cleans up the system (trash, logs, RPM cache, snapshots, BleachBit) then shuts down
bash/rewrite_git_commit_emails.sh Rewrites author/committer name and email across all commits in a repo's history
bash/squarizevideo.sh Converts a video to 1:1 aspect ratio by adding a blurred background via ffmpeg
bash/updateall.sh Updates system packages, Flatpak, pipx, Rust, ClamAV definitions, and tldr cache

Python

Script Description
python/webp_to_apng.py Converts an animated WebP file to APNG, preserving frame durations

Prerequisites

  • bash — for all .sh scripts
  • python3 + Pillow — for webp_to_apng.py (pip install Pillow)
  • ffmpeg — for squarizevideo.sh
  • git — for rewrite_git_commit_emails.sh
  • Other per-script dependencies (e.g. flatpak, rustup, snapper) are optional (scripts check for them before running)

Usage

Clone the repository:

git clone https://codeberg.org/chrisafk/PersonalScripts.git
cd PersonalScripts

Run a bash script:

bash bash/script-name.sh

Run the Python script:

pip install Pillow
python3 python/webp_to_apng.py input.webp output.png

For rewrite_git_commit_emails.sh, run from the root of the target repository:

bash /path/to/rewrite_git_commit_emails.sh <new_name> <new_email> <old_email> [<old_email2> ...]

Warning

rewrite_git_commit_emails.sh rewrites Git history. A backup is created automatically, but force-pushing afterwards will disrupt collaborators' clones.

Environment

Developed and tested on openSUSE Tumbleweed. Most scripts should work on other systemd-based Linux distributions, though package manager commands (zypper, snapper, etc.) are openSUSE-specific.

License

Licensed under the GNU General Public License v3.0.