A friend asked me to verify if a digitally signed PDF he was sending me via email would maintain its characteristics (he was having some issues on his server), so he asked if I could check the file hash (MD5). I found out that I could do it easily on Windows PowerShell with the following command:
Shipped a WordPress site for a friend: http://zachsjunkremoval.com/. It was built using Genesis Framework and a little CSS customization.
Followed a tutorial by Data School on web scraping using Python (libraries ‘requests’ and ‘Beautiful Soup 4’).
My original script to automate the generation of new posts for this blog was done through a single line cmd that was a little bit complicated, because I’d have to rely on memory to figure out the order of the commands. Realizing that I’d have to later translate this script into Windows and I could enter user inputs in that format, I figured I’d try to find something similar for Mac/Linux. So I came across these two commands that helped me achieve the results I wanted: ‘read’ will (with options ‘-e’ and ‘-p’) prompt the user for the variables I need (date, title, category, text), and ‘tr’ helps replacing spaces with hiphens to create a short title for the filename. The improved script can be found here.
Found a less tedious way of updating this blog. Since it’s published with Jekyll, which is a static site generator, manually adding new posts is a little labour-intensive. So I did a bit of googling and came up with a bash script to automatically generate post files from the command line.