whird.jpope.org cover image

StartSSL SHA256 Certs

This is mostly a FYI (and for myself to remember) post. If you use StartSSL to provide your certs (the free certs, class1), you may want (at least eventually) to update your StartSSL intermediate certs from the sha1 certs to the sha256 certs. The sha1 certs are at: https://www.startssl.com/certs/ca.pem https://www.startssl.com/certs/sub.class1.server.ca.pem The sha256 certs are at: https://www.startssl.com/certs/ca-sha2.pem https://www.startssl.com/certs/class1/sha2/pem/sub.class1.server.sha2.ca.pem And then use these sha256 certs as you would with the sha1 certs. On the next round of cert updating that I do for my domains, I have created a new csr with the -sha256 flag so that when I request new certs, they will be sha256. The command I used to generate the new key and csr: openssl req -sha256 -new -newkey rsa:4096 -nodes -keyout <name>.key -out <name>.csr I set up a testing page for my SSLLabs testing. Aside from the OSCP errors due to putting the new certs in today (2014.11.17), everythin…

So does everyone else

I ran to the grocery store after work to grab a couple of things. My wife wanted a bag of ice so, that was on the list. I get the few items that I needed and paid for my stuff, ice included. Once I got home, I realized that I forgot to grab the ice on the way out of the door. So, after I eat dinner, I head back to the store. I walk in, receipt in hand, and head for the nearest associate that I see (who was in conversation with another store associate). As she turns to me, I nod at my receipt. "I've got a bad habit of buying ice and not grabbing it on my way out of the door." I said. She chuckles "Ha! So does everyone else..." as she turns back to her conversation. I was laughing as I grabbed that bag of ice and headed out the door...…

Now with Bitmessage

I'm (just now) checking out bitmessage. Seems pretty cool and really damn easy to use. As usual when installing new things, I consulted the Arch wiki first and installed the pybitmessage-git package from the AUR. After firing up the client and creating a few addresses, it was ready to go. The PyBitmessage client is so simple to use, I'm fairly sure that any ol' average Joe could figure it out somewhat quickly. It's not any more difficult than using an email client. This simplicity/familiarity is whats needed to get the mainstream web-user to give the encryption stuff a try. Nothing against PGP/GPG but, it's somewhat of a pain to use (not that it isn't worth the pain though). Anyway, my main bitmessage address is BM-2cX7HWdad2S33tXwUsDiC8h35tzWdtf526 and you can find out more about the project at bitmessage.org if you are interested. …

Script for mysql backups

Here is my quick mysql backup script that I have used for a couple of years. Posting it here for reference sake... #!/bin/bash ## if run daily (say, via cron) you will end up with a tar file that contains ## a mysqldump of each database on your server. ## the script will also delete backups that are older than two weeks ## ## jpope <jpope at jpope dot org> ## licensed under WTFPL http://www.wtfpl.net/ ## EDIT OPTIONS ## workingdir=/path/to/mysql/backups dte=$(date +%Y%m%d) dbuser=username dbpass=userpassword dbhost=localhost tmpfile=/tmp/databaselist ## END EDIT OPTIONS ## dblist=$(mysql -u$dbuser -p$dbpass -h$dbhost -e"select distinct t.TABLE_SCHEMA \ from information_schema.tables t WHERE t.TABLE_SCHEMA NOT IN ('information_schema','mysql','performance_schema');" \ | grep -v "^+" | sed "s,\t,.," | grep -v TABLE_SCHEMA > $tmpfile) cd $workingdir mkdir $dte cd $dte databases=$( cat $tmpfile | wc -l ) i=1 ## backup databases $dblist while [ $i -le $databases ] do db=$(cat $tmpfile | sed -…

Regions

I recently tried playing a DVD on my somewhat new laptop to no avail. Was the first time since I got this laptop that I even tried. Hell, the shitdows8 install that was on here when I bought the laptop was never even booted into. I had installed Arch on it as soon as I took it out of the box. So, I actually didn't even know if it worked at all, maybe I got a bad one and never realized it. I double checked that the libdvdcss, libdvdread, libdvdnav stuff was installed, tried the -git versions of each out of the AUR. Noting was working for me. VLC complained that it couldn't break the encryption, mplayer would only play the FBI warning at the beginning of any disk that I tried. I scoured the Arch wiki and forums. Eventually, I came across this mplayer page that held the key for my issue. So, off to the AUR I went to build the articles suggested regionset tool to hopefully fix my issue. Seems that there wasn't a region code set at all on the drive. After setting the region code to 1 (for North America), VLC, mpl…

Phone Stand

I was sitting here at my desk earlier, my phone was sitting on it's wireless charger and I got a text. While it's on the wireless charger, it's parallel to the desktop which makes it somewhat a pain in the ass to use it while not taking it off the charger. OK, so I could just pick it up and set it back on the charger when I was done but, why interrupt a good thing... So, I decided that I would make a stand to hold both the phone and charger. I grabbed my favorite jigsaw and some scrap wood I had leftover from another project and went to work. It certainly isn't the most attractive stand but, it works perfectly. Not too bad for a spur of the moment project honestly. I am also thinking of covering the front of it with some black felt. That way it'll completely hide the wireless charger. And as a bonus, it will hide some of my crappy, hacky craftsmanship. ;) Update 2014.06.11: And now it's complete. I raided the kid's craft supplies for some black felt but, there wasn't any like I though there was. …

Time

Another totally random post... I'm now attempting to wear a watch, which is something I've never really done. Except when I was eight (or so, probably older but, I can't really remember when that was) when I had a Dukes of Hazzard watch that had an alarm sound of "Dixieland" (the melody of the General Lee's horn...). So, whats my main reason for wearing a watch? Eventually, when smartwatches become a worthwhile purchase, I'd love to have one. If I can't stand wearing a normal watch now, I'll never properly enjoy a smartwatch if I ever get one. Speaking of smartwatches, so far, they are mostly disappointing. The Galaxy Gear 2 is pretty cool but, not anywhere cool enough to justify the price tag. Soon though, I think there will be a worthy device to wear on our wrists. ;)…

1217

This was the apartment that my Dad lived in for 13 years. As an odd coincidence, my godfather also lived here some 30ish years ago. We actually have a little history in this little crap hole. Years ago, I played with hot wheels on the front porch, my brother was chased by a chow in the bedroom. Years later, we all hung out, drank beer, BBQ'd. Had many laughs here, and most recently, shed many tears as well. In a way, I'll miss the place. Even with the nicotine stained walls... As posted on my Mediagobin Dad normally hung out in the kitchen. He had built a workbench out of some scrap wood, had his computer there, a tv next beside it with a tall stool with arms and back to take it all in. Fridge was a few feet away, coffee pot and microwave not much farther. In true bachelor fashion, why the hell would you spend much time in the living room if it only put you farther away from all that convenience? As an add-on to that workbench, there was pegboard set up. Hanging on that pegboard was …

Question of the (internet) ages...

Just when will the internet grow tired of cats? Soon? Meowing Comments: ghostdancer I think we'll have cats for a long time cause as i read somewhere in Internet no one knows you're a dog:-) 2014-04-27 11:44:04 jpope Well, damn. ;) 2014-04-28 00:17:32 …

Rotting Fruit In My Car

I recently have acquired an ipod classic (80gb) for use with the head unit in my car. Up until now, I had been my Rockbox powered Clip+ through an aux jack. And while this works decently well, it was kind of a pain to navigate to different songs/albums while driving due to the small screen size of the Clip+. I also have a Clip Zip with Rockbox installed but, while it does have a slightly larger screen and more storage, it hasn’t been very stable for me. Especially when using a microSD card with it whereas the Clip+ has been rock solid. So yeah, I now have a crApple product in my possession. :( The main reason I wanted the ipod was that the head unit in my car is ipod compatible, meaning you can plug it in and control it with the head unit. Plus, using the Clip+ through the aux jack on my stereo meant having a cord hanging off the front of it. And while I could mostly tuck the cord out of the way, it still got in the way at times. This particular stereo has a cable out of the back that you plug the ipod into, …

Sandy Seventies Speedboat MediaGoblin Theme

I have released my MediaGoblin theme that is based on the current theme in use on my instance. For this theme, I actually started with the Airy theme that comes with the default MediaGoblin install and added my base css that is in use on (jpope.org/whird.jpope.org/io.jpope.org/pump.jpope.org). I then worked on making it match the other subdomains. Once done, I thought that it'd be nice to strip out the jpope.org specific stuff and make it into a standalone theme. After a bit of cleanup and more, here it is. If you are brave enough to give it a spin, head over to the repo and check the README: sandyseventiesspeedboat-mg A theme for MediaGoblin based on the theme in use at https://media.jpope.org. This theme uses a few bits of Skeleton and the Font Awesome icon font. The name Sandy Seventies Speedboat is thanks to @aether's notice here: Link Usage Navigate to your MediaGoblin directory and if it isn't present, create the directory /user_dev/themes/ and navigate into the newly created…

PumpIO in the AUR

I have added a package for pump.io to the AUR: link. Hopefully, if someone attempts to use it, it actually works. At the time of this writing, I've been using Arch for about 2 years. During this time, I've downloaded and edited PKGBUILD's from the AUR quite a few times. Until recently, I haven't actually maintained any public PKGBUILD's. Time for that to change. I wrote the PKGBUILD from scratch, using a few others as a guide, along with the Arch wiki entry and my pump.io setup. Installing pump.io from the AUR will install it to /usr/share/webapps/pumpio, place a sample config file at /etc/webapps/pumpio/pump.io.json and a systemd file at /usr/lib/systemd/system/pumpio.service. The AUR package will install the node dependecies (along with databank-mongodb and databank-redis as they seem to be the most popular databank backends currently). With the sample config that is installed, you should be able to run a testing pump.io instance as soon as it's installed. Here would be me installing it and running it.…

Adding a Flattr button to Ghost

Adding a Flattr button isn't what it used to be. It's actually quite easy these days. Most major CMS/blogging platforms have modules or plugins that will add them where you want. Otherwise, the embed tool should give you the code you need for one time applications. At the moment, Ghost doesn't have plugins although, it is on the roadmap. But, adding an auto submitting Flattr button to your Ghost posts is pretty straight forward. After looking over the Flattr developer docs for the auto-submit api, the Ghost theming docs, the main page and post page for the default Ghost theme, Casper, I determined that this was going to be quite simple. The auto-submit parameters easily match up with some built-in Ghost properties. And adding a couple of other details, the submit URL can be populated like this: Properties: Flattr {{Ghost}} User Supplied user_id Flattr username url {{url absolute="true"}} title {{title}} description {{excerpt}} language en_GB tags {{tags separator=","}} hidden 0 category text And…

The EPIC first post - Re-re-revisited

In a string of epic first posts that are not really all that epic, here is another not-so-epic-post... There have been some changes around *.jpope.org lately. In a move to reduce the overhead of running php+mysql based web applications, I've migrated from both Drupal and Wordpress. The migrations also ended up bringing a more unified look to jpope.org and whird.jpope.org (also matching io.jpope.org and pump.jpope.org). And, as a bonus, both of these migrations bring a little more security since Drupal and Wordpress are highly targeted by spammers & (bad) bots. On with the migrations: Bitters For the most part, once I moved my blog to Wordpress, I was massively under using Drupal. In the migration, I was able to trim off the bulk of the pages that I had created. Hell, I still had a bunch of pages that were based on data gathered from my ex-StatusNet instances. Seems a migration was needed to trim the fat. So, why did I settle with Bitters? The README states Bitters is a simple-as-possible blogging pl…

Strong Hot Pot

The coffee is strong The coffee is hot I think I'll drink the whole damn pot. #coffee https://pod.jpope.org/posts/65303…

A Filter

Hmm... coffeezone Your body is a filter. https://pic.twitter.com/tPMCfVIgrD — coffeezone (@coffeezone) April 30, 2013 Yes, this is extremely true in my case.…

Simple Nodejs Express Server

Just for fun (and because I mentioned to @jonkulp that I would), here is a quick (plus slightly extended) write up on how to spin up a simple nodejs server with express.js. First, install nodejs and npm, it's bundled together in ArchLinux, not sure about other distros. In Debian, it looks like they are split. Also, in Debian, they have decided to rename the node executable to nodejs, which breaks some things. This is due to a package for a Ham Radio program being called node. If you don't have this node installed, you can "fix" nodejs by creating a symlink. $ sudo ln -s /usr/bin/nodejs /usr/bin/node At the time of this writing, here are the versions that I have installed: $ node -v v0.10.22 $ npm -v 1.3.14 Once these are installed, we'll install express globally with: $ sudo npm install -g express Next we need a directory where you would like to run the server so, create a directory where ever and navigate into it. $ mkdir express_server $ cd express_server Express has a built in function to set things up for…

No More StatusNet for Me

Due to an update to PHP 5.5 in the Arch repos and the fact that I haven't been able to get the queuedaemons to run for my StatusNet instance, I have closed my instance for good. Most likely, I will not be starting a fresh instance anytime, then again, who knows. I currently don't have the bandwidth (time or energy) for more than the pump.io and Diaspora instances running as it is. Maintaining three socialverses was getting overkill anyway, even with my crossposting. It was awesome while I had it but, it's time to move on. You can find me at jpope[at]io.jpope.org and jpope[at]pod.jpope.org. EDIT: I have re-joined the StatusNetiverse at jpope[at]micro.fragdev.com Saddened Comments: aqeeliz This is going to be the next annoying thing, we both use federated social networks (you using more than one) and we still can't communicate with each other :) See you when someone develops a Pump.io StatusNet bridge. 2013-09-09 01:16:08 jpope Yes, proper 'federation' sho…

Clip+ Rockbox

Quite some time ago, my wife wanted a mp3 player and ended up getting a 4GB Clip+. Mostly due to it being fairly inexpensive. Turns out, the "hacker" in me eventually fully approved of this decision. Every now and then, the player would freak out and just not work for my wife and/or daughter. I generally would just clear the storage off of it and put their music back on. I have a feeling that they have a habit of not dismounting it before unplugging it and would cause the storage to get corrupted. Aside from that, it's been a good little device. These dedicated mp3 players have never really had much appeal to me personally, mostly due to my addiction of "scrobbling" my plays (either to my personal GNU-FM install or to libre.fm, I closed my last.fm account some time back...). I mostly use MPD and various clients for my music listening anyway. Still, this little device has been sitting on my desk for about three months, completely ignored. And then, I came across this post by @dvdmrsdn that reminded me that I w…