I just spent thirty minutes writing and testing a shell script. This shell script searches a folder, analyzes a photograph’s geometry using mogrify, and then, if the image is square, move it to another folder. I’ve eyeballed the folder, and found three matching images. This script will take approximately twenty minutes to execute. I’m not [...]
Despite (or perhaps because of) the fact I’ve been using Linux for more than a decade, I’ve done a great job of avoiding sed. I have done my best to make up for it in the recent past by learning how to at least find and replace, either within a file or in a filename. [...]
I did an in-place do-release-upgrade yesterday. The laptop was not completely plugged in, and the battery went out when the upgrade process was about 75% complete. Since then, things have been…very interesting due to the lack of 64-bit recovery media in the hackerspace.
I use a fairly basic script that formats pictures, uploads them via Dropbox, and inserts paste-ready HTML code into my clipboard. With some minor modifications this script can be used on Linux, Windows (Cygwin), or OS X. Taking a break from animating sprites, I wanted to improve this script, in order to reduce my work. [...]
I’ve consulted Imgur’s API and asked around: There does not seem to be any download limits in place. That said, my script does place nice, and you can throttle requests if you wish. Imgur’s API does include a way to just fetch a list of a user’s albums and their respective images, but I’ve spent [...]
If I see one more rectangle this morning, I will scream. Instead I am writing a very simple Imgur gallery downloader for a friend, using extant Bash utilities. #!/bin/bash wget $1 LIST=files.list mv $(ls -1 .) $LIST # Strip the file down to the actual image links. cat $LIST | grep href | grep jpg [...]