Posts Tagged: bash

A Script A Day – Corner Cut – Day 05/05

I decided to do something with ImageMagick for my 5th day’s script. My original idea for day 5 proved to be too much for one night. A script to cut triangular corners into images. Pretty simple, but this may come in handy one day while designing something.

Continue reading

A Script A Day – WhatIs – Day 03/05

Day 3’s script: `whatis`: A wikipedia summary lookup.  It’s operation is pretty straightforward, you give it a search to do and it’ll perform the lookup for you.  If you hit a redirect it should follow it, at least as of time of writing this. (Edit whatis_extract.xsl in the resources directory if it breaks.) Continue reading

A Script A Day – Day 02/05

Continuing along, day 2’s task was to get stock quotes.  Usually a pretty simple task once you find a data source to use.  I settled on using YQL to query Yahoo Finance.  This one has a few requirements (wget, hexdump, xsltproc) as bash is a bit limited.

Continue reading

Script Encrypt

Have you ever wanted to encrypt a script so that it could only be run with the correct password?  Chances are… probably not.  However, in the off chance that you have, and your script is perfectly happy being piped through it’s interpreter (* See note below), then this script might work for you.  I make no guarantees or claims about how secure it might be, and it requires openssl to be installed to work. You can view the code or download it yourself at my BitBucket repo for Script Encrypt. Continue reading