Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

1,628 Commits

Repository files navigation

Miscellaneous scripts

ScriptDescription
add-subtitlesembed srt files into video
allow-ipadd rule to routing table for an IP address (e.g. a local printer)
alphabetizesorts line alphabetically and deletes repeats
archivetar a directory and output to ~/Desktop with a unique filename
backupbackup home directory to external drive (up to 2 backups at once)
battery-notifyuse notify-send to display when the battery level is too high or low
cleanupwrapper script for cleanup programs
clipifycut clips out of videos
copy-playlistcopy files in a playlist (e.g. m3u) to a destination directory
count-commitscount commits made by an author over specified period of time
count-linescount number of lines in all files in directory
coverartembeds or remove images in audio files
cryptdirwrapper for mounting/unmounting fs-level encrypted directories
decode-base64detect and convert base64 text in emails to UTF-8
delete-swpclear sw[a-p] files in directory (Vim backups)
drop-cachesclear system cache
dump-streamscopy container streams into one file each
embed-scriptcombine executable script and source dependencies into one file
epub-convertebook-convert wrapper to convert azw3 and mobi files to ePub
epub-fixupdisable text-align: justify and hardcoded colors in EPUB files
extract-audioextract audio track from video
extract-subsextract all subtitle streams from video
formatformat source code with language-specific tools
gen-playlistgenerate playlists based on beets database
get-songdownload song (audio) from URL and set ID3v2 metadata
get-webseriesyoutube-dl wrapper to download web series / playlists / etc.
gififygenerate a GIF from part of a video
git-archivesimple wrapper for git archive
git-clone-allclone all repositories of a GitHub user/organization
git-gcprune orphaned objects and force garbage collection
git-initwrapper script for initializing a Git repo and setting the metadata
git-partial-pushpush commits up to a given date
join-vidsconcatenate videos
kvm-clearclear out shared KVM directory
kvm-cpcopy file to shared KVM directory
kvm-lslist files in shared KVM directory
kvm-mvmove file to shared KVM directory
list-ass-fontslist all the fonts referenced in a subtitle file or directory
make-watchre-run make when files changes are written
mpv-playplay media above a duration cutoff
mpv-sshsearch remote directories over SSH and pipe as playlist to mpv
nm-ovpn-deletedelete OpenVPN connections via nmcli
nm-ovpn-importnmcli wrapper for importing an OpenVPN configuration file
nm-wg-deletedelete all WireGuard connection definitions using Network Manager
nm-wg-importimport a WireGuard configuration file using Network Manager
ova-to-qcow2convert an OVA virtual disk image to QCOW2
pdf-fixupfix up the metadata in PDF files (newlines in tags, covers, etc.)
pdf-splitextract range of pages from a PDF
ping-testuse ping to estimate network speed
print-colorsprint terminal colors
print-fontstringgenerate the FFmpeg format string to embed fonts in a container
quickdatewrapper for generating date strings based on a specified offset
rank-mirrorlistrank all servers listed in /etc/pacman.d/mirrorlist
rate-songwrite song rating metadata to beets database
reencodeconvert video's encoding
rename-userrename an existing user and migrate all files, symlinks, etc.
rendercompile LaTeX, RMarkdown and Julia Markdown files to PDF
restart-networkrestart network connection (for getting new MAC address)
rmlinkdelete symlink and the file it references
rotaterotate the screen with xrandr and switch background theme
scourifywrapper to scour for simplifying SVG files
search-docsfind documents, with option to pin to ~/Desktop and ~/Sync
seek-and-destroyfind and delete pesky dotfiles and dot-directories
set-gdm-themeoverwrite the GDM theme with the CSS in the current GTK theme
set-replaygaincompute replay gain for directory of audio files
shrink-vmresize a qcow2 image
split-cueuse a CUE file to split a single large audio file into MP3 components
strip-audiouse ffmpeg to strip metadata from FLAC and MP3 files
strip-metadataremove metadata from MKV and MP4 containers and streams
strip-yamlstrip YAML front matter from text file
swapfilecreate or destroy swapfile
swap-symlinkswitch around a symlink and its reference location
switch-themeswitch GTK or icon theme (and edit Vim/UI settings accordingly)
torrentstat-syncsynchronize statistics between Transmission and qBittorrent
upgradeupgrade system, AUR, Zsh plugins, and Julia packages
vidname-cleanupuse regex to clean up file names
vpn-killswitchadd iptables rules to block networking if VPN connection is lost
wget-mirrorwget wrapper to create local mirror of website
whattodofind all to-do lists and print them in the terminal
write-entrywrite a entry into your log
wsl-browser-openopen a file in WSL using the default host web browser

Globals

The globals file contains global variables that need to be set before running specific scripts.

VariableDescriptionRequired By
archivedirdestination for archive filesarchive
backup1path to backup destination devicebackup
backup2path of device to mirror backup1backup
calibrelibrarydirpath to Calibre library directorysearch-docs
kvmdirdirectory containing KVM imagesbackup
kvmshareshared (host <--> guest) KVM directorykvm-clear, kvm-cp, kvm-ls, kvm-mv
vboxdirdirectory with VirtualBox configs and imagesbackup
encryptpathencrypted EncFS store (source)cryptdir
decryptpathdecrypted EncFS store (destination)cryptdir
gtkdirdirectory that contains sources for GTK themesupgrade
plasmadirdirectory containing Plasma themes source reposupgrade
icondirdirectory that contains sources for icon themesupgrade
thunderbirddirpath to Thunderbird profile directoryswitch-theme
zshdirwhere Zsh themes are downloadedupgrade
pkgbuilddirwhere AUR pkgbuilds are storedseek-and-destroy, upgrade
projectdirdirectory containing Git repos and projectscount-commits, seek-and-destroy, whattodo
musicdirdirectory containing music filescopy-playlist
videodirdirectory for video filesget-webseries
ignoreprojectdirslist of directories in projectdir to ignorewhattodo
zoterodatadirlocation of Zotero data (not config) directorysearch-docs
weechatplugindirWeeChat plugin durectoryupgrade
vimpackdirVim Git plugins directoryupgrade
nvimpackdirNeoVim Git plugins directoryupgrade

About

Various command line scripts that make my life easier.

Topics

Resources

Stars

17 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages