whird.jpope.org cover image

Podwrapper v1.5.1 (...errr make that v1.5.2)

EDIT: I found a bug and fixed it with v1.5.2, the links below have been changed to point to the new version. I released v1.5.1 v1.5.2 of my podwrapper script and until the WIP D* API is further along, I think this is where the script will be for a bit. Since my last post concerning the script, I've done a little refactoring and streamlining along with adding a few more options. If you have multiple D* accounts, you can now specify a config file with the -c flag. Also, when initially setting up the script, you choose a default aspect that your posts will go. You can now override this with the -a flag. If when setting up the script you choose to post privately (i.e. 'All aspects') and you'd like to make a public post, you can add -a public when running the script. You can also override the default with a specific aspect however, at the moment, the API doesn't provide a way to pull your aspect names. You can still post to an aspect with the aspect id number. To get the number, navigate to your contacts page wit…

Posting to Diaspora* via API

In the land if Diaspora*, the news of the work being done on the API yesterday was huge. The lack of a proper API has been a thorn in the side of many people. But, it's finally happening, the API is on it's way. Still, it's a ways off from being complete but, just posting a simple text post is currently doable, at least with cURL. Of course, it's quite a handful of commands to type but, that's easily fixed with a shell script. So, I set about on writing that script. The following was initially posted on D*: Ok, I think this is all working pretty well. Here is my bash script that is basically a wrapper for the steps outlined here. You can check it out at https://code.jpope.org/jpope/podwrapper. Be sure to look over the README. And yes, this post was posted via the script. :D podwrapper A bash script to post to Diaspora* via the WIP API. The API will need to be enabled on the pod you are attempting to post to. See these posts: https://kentshikama.com/posts/6c4b0ff01c090133da7b04015765ae01 https://kentshikam…

Crossposting to all the places

Seeing that I'm currently hosting three social networks, and trying to be active on all three, I needed a way to post to all three simultaneously. This is the script that I use to cross post to all the places. ;) StatusNet posting is simply using curl, Pump.io uses the CLI scripts in my pump install and Diaspora is using cliaspora. The script can optionally post to all three at once, a single network or any combination of just two. For pump.io posting, if you haven't ever used the CLI scripts, you'll need to run the pump-register-app and pump-authorize in order for my script to post (as it uses the pump-post-note script). Also, I am using a version of the pump-post-note script that has a post to Public option as well as a Quiet option (it doesn't return "OK" after posting). You can also see my previous posts regarding posting via the command line here and here for more. Posting to Diaspora is done with cliaspora. My script will test for an open cliaspora session and will open one if the test fails. I am als…

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…

Writing Blog Posts from the Commandline

I ran across a program that will allow you to manage your wordpress posts and pages from the commandline. Enter blogpost. I’m not sure just how often I may need or want to write blog posts from the commandline but, it’s nice to have the option. I can really see it being useful for scripting. Also, this post is more or less me just playing around since this simple test didn’t really let me experience it much. Blogpost uses AsciiDoc as it’s backend for the html formatting for the text that gets sent to WordPress. AsciiDoc has a specific markup syntax that I currently have no experience with but, cheat sheets such as this should be quite helpful. At least I’ve figured out how to emphasize and bold and even monospace as needed. The following image was even uploaded through blogpost. Pretty sweet, eh? The following artist list was added via a script and piped to this post. This list is the top five artists that I’ve listened to in the past seven days. The Walkmen,Bob Marle…

CLI Test post

This is a test using the cli program blogpost. I can only imagine what sort of scripting fun can be had with this. Still, I’m not sure if I will use it much but, you never know. Anyway, enough of this blah, blah. Let me test actually posting it. EDIT: # notetojpope: To properly insert links with asciidoc, format it as such url[linked text] and you should be good to go……