A collection of useful Perl scripts of mine
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Ivan Kovmir 0e340f3cdb add ppmix 1 month ago
LICENSE Initial commit 1 month ago
README.md add ppmix 1 month ago
freepicg add freepicg 1 month ago
ghurl add ghurl 1 month ago
nptrack add nptrack 1 month ago
nptrack.png add nptrack 1 month ago
ppmix add ppmix 1 month ago
xbl add xbl 1 month ago

README.md

swissknife-perl

A collection of useful Perl scripts of mine

ghurl

Formats a given GitHub URL to give you a cURL/wget friendly archive name of the form $NAME-$TAG.(tar.gz|zip). Useful for creating software packages.

For instance: ghurl https://github.com/unInstance/untldr/archive/refs/tags/v1.1.0.zip outputs https://github.com/unInstance/untldr/archive/v1.1.0/untldr-v1.1.0.zip.

ghurl <github_archive_tag_url>

nptrack

Tracks Nova Poshta Global packages, simply invoke the script and pass the track number as its first argument. Just a web crawler for this website.

nptrack <your_track_number>

Example Output

freepicg

Tells you what are the current free game deals at Epic Game Store. Just a web crawler for this article.

Example output:

Current deal (August 25 - September 01): Ring of Pain & Destiny 2: Bungie 30th Anniversary Pack
Upcoming deal: Shadow of the Tomb Raider - Definitive Edition, Submerged: Hidden Depths, Knockout City - Armazillo DLC Pack

freepicg # Simply invoke the script

xbl

A bloat-free way to alter screen brightness on Linux laptops. Reads and writes numerical values to /sys/class/backlight/intel_backlight.

xbl      # Shows current and maxmimal brightness level.
xbl 3500 # Sets brightness to 3500 (run the above command to get the info).
xbl +40  # Add 40 to the current brightness level.
xbl -200 # Subtracts 200 from the current brightness level.

If the value you are trying to set is more than the maxmimal one, then xbl sets the highest possible. If you try to set less than zero, then xbl sets zero.

ppmix

FreeBSD OSS per program volume control (or Per Program MIX)

ppmix
ppmix <program_name> 10
ppmix <program_name>
ppmix <program_name> +17
ppmix <program_name> +4:-5