whird.jpope.org cover image

Plugging the pumps - BashScriptVille Part III

Crossposted from my soon-not-to-be-existing pump: link I think the time has just about come for me to shut my personal pump down (io.jpope.org). I'll likely migrate back to my pump.jpope.org account for a bit (jpope@pump.jpope.org). But, to be honest, I've been considering shutting that pump down as well. After that, maybe I'll pop into my old identi.ca account from time to time. So, if you start seeing some mass un-following from this account, this will be why. As far as why? These days, Diaspora* does everything I need/want in a distributed social network. The privacy features work properly (unlike StatusNet err... GNUSocial), both the web and mobile UIs work properly (unlike pump.io). Plus, the API is finally on it's way. Also, with having the bulk of my stuff running on various VPSs, I need to trim the fat some to cut costs. Considering my interest in pump.io has been waning for quite some time, it definitely falls into the fat category for me. And I won't even get into my feelings…

BashScriptVille Part II

I've now added a new pumpio (and statusnet) bot that pulls comics from XKCD. Why? Why the hell not? Don't we all love XKCD? The "bots" are located at XKCD@pump.jpope.org and xkcd@sn.jpope.org if you want to follow. The script I wrote for these two can be found here. For pumpio, it does use a custom script based on one of the scripts included in a standard pumpio install, My scipt allows for titles to be added to a regular note and can be found in my Github Gogs repo for pump.jpope.org. The pumpio script also has a small mod to post the notes publicly instead of only to Followers (thanks @jrobb!). The bot script also captures the newest posted comic and stores the comic id in a small file so the next time the script is run, I don't end up posting the newest one multiple times. Well, hopefully I don't. ;) The script also formats the pumpio version in html and in textile for use with the Textile plugin on statusnet. I now have 11 pumpio bots that live in BashScriptVille: apod@pump.jpope.org bofh@pump.jpope.org f…

BashScriptVille

I have had my matrix StatusNet instance up for quite some time. This instance consists of six accounts that mostly spit out random notices that are pulled via various bash scripts. I decided it was time to recreate some of this for pump.io. After installing pump.io, there is a handful of cli tools in /pump.io/bin. With these scripts, you can register a user, post a note, follow another user, etc... Using the scripts, I've created a few (at the time of this writing, there are 10) accounts to post random posts of useful (or is it useless...) tidbits. Off to the commandline... The first step for me after deciding on what crap to pull, is to write a bash script to pull the said (sed?) crap. Using the good ol' tools curl, cat, grep, sed, awk, etc... I'll parse whatever page down to the actual message that will be sent. For the rest of this, I am assuming that: the /pump.io/bin directory is in my $PATH. That registration is open for the target pump. Also, since pump.io is currently being heavily de…