Slaptijack Title

Socket Timeouts in urllib2

by Scott Hebert
One of my scripts that makes an API call has been failing silently lately. It appears that the connection is timing out, but I am not catching that particular error. So, I fixed that. @@ -8,6 +8,7 @@ import os import random import shelve +import socket import sys import time import urllib2 ...

Read More →

Cache has broken packages, exiting

by Scott Hebert
I've been getting the following error from cron.daily in my inbox lately: /etc/cron.daily/apt: Cache has broken packages, exiting That's an annoying email to get everyday. I decided I would apt-get clean and that would probably fix the problem: This is an older Ubuntu server running 12.04.5 ...

Read More →

MySQL OOM'ed, But Pelican Lives

by Scott Hebert
I use Pingdom's free service to monitor slaptijack.com. Apparently, late Friday night, oom-killer decided that the server needed more memory and took out the MySQL server. To make matters worse, I missed the alarm from Pingdom, and slaptijack.com was down for pretty much all of Saturday. The fac...

Read More →

Removing a Single Line from known_hosts With sed

by Scott Hebert
Ever so often, something changes on the network, and you find that your .ssh/known_hosts file has gotten out of date. Usually this happens after an upgrade or device change. You'll get the rather ominous warning that REMOTE HOST IDENTIFICATION HAS CHANGED! If you are confident that someone isn't...

Read More →

Changes to OS X TCP Performance Tuning

by Scott Hebert
While updating the TCP tuning parameters on one of my OS X 10.11 servers, I noticed that my existing OS X TCP Performance Tuning page had gotten out of date. The page was nearly eight years old, so it is no surprise that happened. I updated the page in place since that is the definitive page loca...

Read More →