The little scripts I've written to make my life just a little bit easier when I'm living in the terminal
- Bash
- Python 3
Add the directory to your path in your shell config file.
export PATH=$PATH:"/path/to/the/script/dir/"
If you help with a tool just run it with a -h
flag
ascii
is a Python script to convert a unicode text file to plain ASCII. Especially useful for those annoying little unicode quotation marks that look just like ASCII but cause all sorts of problems.blocksite
adds a URL to the /etc/hosts file to stop those time sucking websites (only works on Mac and Linux)check_git
prints all directories that have uncommitted Git changes.diffchar
finds the number of characters that don't match between two strings. Helpful for checking for differences in DNA.grading
was one of my first CLI scripts to convert a percentage grade into a letter gradeipynb2py
converts a Jupyter notebook to a Python scriptl2n
converts a markdown letter list into a numeral listlicence
prints out a specified licencenumlines
finds the biggest file in a directoryorm
calculates your one rep max for weightliftingpassword
generates a random passwordprinter
can either print the Markdown files in a directory as plain text or convert them to PDFs before printingrename
renames a directory of files in sequential orderrmbadges
quickly toggles dock notification badges on macOSsinceblock
gets the number of minutes since the last Bitcoin block (must be run from a Bitcoin node)thes
gets synonyms of the word from a thesauruslatest_commit
shows the subdirectories in a directory sorted by the date of the latest git commitgp-control
turns the GlobalProtect VPN on and off with launchctl on macOS.