Latest posts

  • Learned how to get a document hash on Windows PowerShell

    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 WP Site (http://zachsjunkremoval.com/)

    Shipped a WordPress site for a friend: http://zachsjunkremoval.com/. It was built using Genesis Framework and a little CSS customization.

  • Learned about web scraping with Python

    Followed a tutorial by Data School on web scraping using Python (libraries ‘requests’ and ‘Beautiful Soup 4’).

  • Learned bash heredoc 'read' and 'tr' commands and improved my script to create new posts

    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.

  • Learned about Here Documents and created script to automate these posts templates

    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.

Subscribe