@Mike Zupan · Mar 7, 2011 · 1 min read
Tweet I’ve been a big fan of the fabric project for a long time now. It has made my life very easy in the past and gets better with each new release. Well a few weeks ago I got introduced to a fork of the project by Tav. It provides many new feature additions to fabric and makes fabric a little bit better. So …
Read More →
@Mike Zupan · Jan 14, 2011 · 2 min read
Tweet You can see all the questions I have compiled here.
Question You are already logged into a server and a user runs a fork bomb script. How can you stop the fork bomb without restarting the server or bringing any services offline that are currently running?
You also know the name of the running fork bomb script. …
Read More →
@Mike Zupan · Jan 13, 2011 · 2 min read
Tweet I use to hate this question. I was reading a post on Reddit about some guy that went through the programming interview at Facebook and it made me remember the simple interview question I always hated answering. It always went something like this
How many usable IPs in a /24
Ok that is an easy one.. 256-2=254 not …
Read More →
@Mike Zupan · Jan 13, 2011 · 2 min read
Tweet So I’m starting a bit of a series on my blog. I’ve found there are no good senior level Linux admin questions out there to ask. A lot of companies with a sys admin team have their default questions they ask but when you are hiring your first sys admin and want a senior guy there is no real way to …
Read More →
@Mike Zupan · Oct 20, 2010 · 1 min read
Tweet This isn’t really a straight forward task. From what I know in 1.7 there is a command but that is development only. So I’m running 1.6 and to see the config for my replica set I run
rs.conf();
I get the following output
> rs.conf(); { "_id" : "core", "version" : 3, "members" : [ { "_id" : 0, …
Read More →
@Mike Zupan · Oct 10, 2010 · 1 min read
Tweet This is an easy one
Create the following file
/etc/yum.repos.d/chromium.repo
With the following contents
[fedora-chromium] name=Chromium web browser and deps baseurl=http://repos.fedorapeople.org/repos/spot/chromium/fedora-$releasever/$basearch/ enabled=1 gpgcheck=0 Then run the following
yum update yum install …
Read More →
@Mike Zupan · Sep 24, 2010 · 2 min read
Tweet MongoDB is getting a lot of press recently. I stumbled across a pretty interesting project called Django-nonrel. This is an attempt to build non-relational databases right into mongodb. Before you could always use a 3rd party ORM or just use pymongo right in Django but then you were missing out on all the nice …
Read More →
@Mike Zupan · Sep 16, 2010 · 1 min read
Tweet I completely overlooked this in the docs. So if you are here you either didn’t look in the docs or overlooked it also.
I was doing something like this
return (user.get_absolute_url(), (), {})
Now that sends the user to
/user/username/
I wanted the user to go to
/u/username/
So in your settings.py file just …
Read More →
@Mike Zupan · Sep 9, 2010 · 1 min read
Tweet I just dumped my IPhone for an EVO. I wanted it to tether my laptop. I know i can tether using IPhone if I jailbroke it. Why tether on AT&T’s awful network.
So I wrote a simple script for the EVO (should work on most androup 2.x phones also)
The first thing you want to is enable usb debugging mode on your …
Read More →
@Mike Zupan · Sep 7, 2010 · 1 min read
Tweet One issue hosting providers have is the issue with clients needing to run different version of python. One client might need python 2.4 and others might need 2.5. So in comes uWSGI
So this blog post will go over how to install uWSGI on RedHat 5 and making a uWSGI server for both python 2.4 and 2.5 at the same …
Read More →