Preventing a server melt-down and saving resources: Block all Shit bot

Oct 11th, 2012 | By

Alright, I woke up today to a load average of 75.. Seventy-fucking-FIVE.  I didn’t even know that shit was possible and I’m pretty sure the guys at the DC were probably roasting marshmellows over my glowing box.  I couldn’t believe it so into my server I went, waiting 5 minuets for every command I typed
[continue reading…]



Cannot remove nvidia package because of No diversion ‘diversion ?

Oct 1st, 2012 | By

Got this error today: Fetched 1,845 kB in 2s (853 kB/s) (Reading database … 213548 files and directories currently installed.) Removing libgl1-nvidia-alternatives … No diversion ‘diversion of /usr/lib/libGL.so.1.2 to /usr/lib/nvidia/diversions/libGL.so.1.2 by libgl1-nvidia-alternatives’, none removed. Removing ‘diversion of /usr/lib/libGL.so.1 to /usr/lib/nvidia/diversions/libGL.so.1 by libgl1-nvidia-alternatives’ dpkg-divert: rename involves overwriting `/usr/lib/libGL.so.1′ with different file `/usr/lib/nvidia/diversions/libGL.so.1′, not allowed dpkg: error
[continue reading…]



Problems mounting shared folders in a Debian Virtual OS running in a Windows Host

Sep 30th, 2012 | By

So this was a silly problem I ran into today and it’s really only the lack of very specifically labeled help available online about that caused me to write this.  Basically what I did was to install Debian 6 64 with vmware inside of a windows 7 machine.  I cringe to think I am doing
[continue reading…]



Need to get a bunch of pgp keys for your 3rd party linux repos fast?

Aug 31st, 2012 | By

Are you reinstalling your OS and having mroe than a few 3rd party repos that need to have pgp keys installed to access?  Are you dreading the processing of googling them all and wgetting the keys and then importing them? dread no more because there’s an easier way!  Just use the MIT keyserver to grab
[continue reading…]



A few words about custom partitions and /var

Aug 30th, 2012 | By

So I just installed Debian onto my new laptop, this time through vmware with a windows 7 host because I for once have enough ram and cpu to handle virtualization, and this time I felt I was ready to custom configure a more complex partition schema based on my experience.  Not the recommended BS that
[continue reading…]



Database wide search and replace script

Aug 21st, 2012 | By

Just something I thought that I would post as I needed a quick solution to do a search and replace of an entire Mysql Database.  It’s actually dumping the DB, searching and replacing the dump file and then re-importing it.  But it does the trick   #!/bin/bash if (($# >= 1)) ; then if (($#
[continue reading…]



Drupal users – Get Views Bulk Operations

Aug 16th, 2012 | By

This isn’t an installation guide or anything like that, it’s just a piece of advice seroquel price.  Go out and get the get the Views bulk operations module.. It will save you more time than I can imagine changing taxonomy terms in bulk and doing other batch operations on your content nodes.



Speeding up PHP with APC (NOT eAccelerator) in Debian Squeeze running php 5 and apache 2

Jul 27th, 2012 | By

Well today my server was being killed by something or other and after 30 minutes of trying to track down what it was I decided to spend my time optimizing my server and implementing a proper caching mechanism (finally!).  I come from a BSD background and we ran eAccelerator on all of our servers so
[continue reading…]



Setup your swap partition a flash card in Debian linux

Jul 20th, 2012 | By

*A WORD TO THE WISE – DO NOT ATTEMPT THIS* Flash cards are not designed to handle heavy loads of tiny read/writes all the time and will fail sooner rather than later.. I just had my system go into the shitty with a syslog filled with 1000’s of messages like this:  [59443.104957] Write-error on swap-device
[continue reading…]



Attrociously high pings to router with wifi in Debian 64 with Atheros 9k

Jul 18th, 2012 | By

Simple little solution that has been plaguing me all week.  We just upgraded our router and after scanning the local networks I found that channel 11 was completely unused so I switched it to that and man oh man that was nothing but a bad idea.  Even though channel 11 was the emptiest channel I’ve
[continue reading…]