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…

Diaspora* Too many open files

For a little while, I have occasionally noticed that my pod will not send emails out when it's supposed to. If I navigated to the Sidekiq monitor in the admin area, and reprocessed all of the Dead jobs (or at least the email related jobs), the emails would come through. Upon further inspection, I found that it was due to a 'Too many open files' error. This post originally started as a post on my pod so, I'll quote that first: I kept finding ‘Too many open files’ in my Sidekiq dead jobs and in the logs. They were mostly related to getaddrinfo (169 entries) or sendmail (223 entries). Also, emails would fail to send somewhat often from my pod. Took a look at this wiki entry (and the linked article) and hoping I will stop seeing those ‘too many open files’ entries in the logs. Side note, I didn’t find any ‘…open files’ entries in sidekiq.log itself, I ended up running grep "Too many open files" log/*.log to find the entries. Wiki entry: Check for out of open files errors In the dias…

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…