misfoc.us

  • Archive
  • RSS
  • Ask me anything

Sick-Beard & Notify My Android

Sometime in the past, I discovered Notify My Android while configuring CouchPotato. It’s essentially a Growl type application for Android phones. I eagerly ported the code from CouchPotato to Sick-Beard so I could get alerted when a new TV show downloaded.

Unfortunately, despite the support for this feature, it’s taken Midgetspy some time to accept my pull request. In the meantime, I’ve spun up a fork that is using the latest Sick-Beard code along with the Notify My Android update. If you itching for some NMA alerting, but don’t want to give up the latest cool Sick-Beard features, check out my repository.

Feel free to throw feedback here or over at Github.

    • #sickbeard
    • #notify my android
    • #github
    • #opensource
    • #python
  • 1 year ago
  • 14
  • Comments
  • Permalink
Share

Short URL

TwitterFacebookPinterestGoogle+

BigCouch 0.4 and FreeBSD

With great excitement, Cloudant announced the release of BigCouch 0.4 yesterday. One of the exciting features for me is FreeBSD support. For a complete list of new features, click here for the changelog. I didn’t find any good sources for installation help in FreeBSD, so I thought I would throw something up. Here goes:

Let’s start with the dependencies:
# pkg_add -r gmake libtool help2man erlang-lite icu spidermonkey curl git
# rehash
We’re going to grab the latest from Github for our setup:

(The source is available as a package here)

# git clone git://github.com/cloudant/bigcouch.git
# cd bigcouch
If you have bash installed in your environment, you can skip this next step:

(there was a push that changed the configure script from requiring bash, but was changed back after some issues with Solaris)

# grep -rl '/bin/bash' * | xargs sed -i "" 's/bash/sh/g'
If you’d like to change what ip the single-node port (5986) listens on, run this command:

(this is used for some admin functions)

# sed -i '' 's/127.0.0.1/<Desired IP>/g' rel/overlay/etc/default.ini
Next, we need to create a directory were we will be installing BigCouch:
# mkdir /usr/local/bigcouch
We’ll finish up with a quick config change and then the standard make stuff:
# ./configure -p /usr/local/bigcouch
# make
# make install
If all goes well, you should be able to fire up BigCouch:
# /usr/local/bigcouch/bin/bigcouch

There currently isn’t a port for FreeBSD that I’ve been able to find aside from this dated one on Github. After some more testing, I’ll most likely end up getting a port put together so I can get this build out puppetized easier, but that’s another project for another day.

    • #bigcouch
    • #couchdb
    • #freebsd
    • #opensource
  • 1 year ago
  • 14
  • Comments
  • Permalink
Share

Short URL

TwitterFacebookPinterestGoogle+

Goodbye OpenIndiana

I’ve reached the point where I am completely frustrated using OpenIndiana. As great of an OS it might be with it’s fantastic implementation of ZFS and all the other amazing components, it is a completely foreign OS. This wouldn’t be so bad if the documentation wasn’t so horrible.

When I return home, I’ll be spending some time setting up FreeBSD 9.0 and puppetizing my entire downloading system. At least I know how to use FreeBSD and if I don’t, the documentation is amazing!

    • #freebsd
    • #opensource
    • #rant
  • 1 year ago
  • 7
  • Comments
  • Permalink
Share

Short URL

TwitterFacebookPinterestGoogle+

Cookie Cleaning with Nginx

A few days ago, we discovered that there was some odd behavior with some traffic hitting our sites due to a cookie with a null name. It was causing some weirdness with our application and causing our alerting software to freak out. I was tasked with coming up with a solution to handling this. I dabble in the load balancing space and decided to solve this by stripping out the cookie in Nginx.

set $cookies $http_COOKIE;
if ($http_COOKIE ~* "(.*;)\s=deleted;(.*)") {
    set $cookies $1$2;
}
proxy_set_header cookie $cookies;
    • #nginx
    • #opensource
    • #tips
  • 1 year ago
  • 5
  • Comments
  • Permalink
Share

Short URL

TwitterFacebookPinterestGoogle+

Installing SABnzbd, Sick-Beard & CouchPotato on OpenIndiana

I’ve been a Freebsd user for several years now and I’m quite comfortable on that platform. Recently, however, a guy I work with has spoken really highly of OpenIndiana and I decided to spin it up on a new server and see how it goes. So far, it’s been an uphill battle. Solaris is very different than what I’m use to. After a few hours, I was able to get the first couple apps running. I’m going to give a quick run down of what I did to get them running and configured.

Dependencies

GCC

One of the dependencies for SABnzbd requires a compiler.

# pfexec pkg install SUNWgcc

We also need a math header

# pfexec pkg install math/header-math

Unrar

# pfexec pkg install archiver/unrar

Par2

# wget http://downloads.sourceforge.net/project/parchive/par2cmdline/0.4/par2cmdline-0.4.tar.gz
# gunzip < par2cmdline-0.4.tar.gz | tar xvf -
# cd par2cmdline-0.4/
# ./configure
# make
# pfexec make install
# pfexec mv /usr/local/bin/par* /usr/bin/

Cheetah

# wget http://pypi.python.org/packages/source/C/Cheetah/Cheetah-2.4.4.tar.gz#md5=853917116e731afbc8c8a43c37e6ddba
# gunzip < Cheetah-2.4.4.tar.gz  | tar xvf -
# cd Cheetah-2.4.4/
# pfexec python setup.py install

PyOpenSSL

# wget http://launchpad.net/pyopenssl/main/0.11/+download/pyOpenSSL-0.11.tar.gz
# gunzip < pyOpenSSL-0.11.tar.gz | tar xvf -
# cd pyOpenSSL-0.11
# pfexec python setup.py install

yEnc

# wget https://bitbucket.org/dual75/yenc/get/default.tar.gz
# gunzip default.tar.gz | tar xvf - 
# cd default/
# pfexec python setup.py install

SABnzbd / Sick-Beard / CouchPotato

Once you’ve got all the dependencies installed, it’s really simple to get the three apps fired up. I used git repositories for all my installs for simplicity sake.

# cd /usr
# pfexec git clone git://github.com/sabnzbd/sabnzbd.git
# pfexec git clone git://github.com/midgetspy/Sick-Beard.git sick-beard
# pfexec git clone git://github.com/RuudBurger/CouchPotato.git couchpotato

At this point, all you need to do is fire up each application and configure the settings.

    • #openindiana
    • #opensource
    • #sabnzbd
    • #sickbeard
    • #couchpotato
  • 1 year ago
  • 6
  • Comments
  • Permalink
Share

Short URL

TwitterFacebookPinterestGoogle+

Comcast Bandwidth Script

I just made an update / addition to a script I found on asktherelic.com. I added Notify My Android and rewrote the command line argument support. My code has been combined, you can get it here.

Another Update: After I accidently committed my username and password to Git, I added the support for a config.ini file to prevent others from doing the same thing.

    • #opensource
    • #nma
    • #github
  • 1 year ago
  • 4
  • Comments
  • Permalink
Share

Short URL

TwitterFacebookPinterestGoogle+

About

A place for me to post about things that interest me. If you stick around, you might find something interesting!

Me, Elsewhere

  • @landrysplace on Twitter
  • adalan420 on Youtube
  • adalan on github

Twitter

loading tweets…

  • RSS
  • Random
  • Archive
  • Ask me anything
  • Mobile
Effector Theme by Pixel Union