If you have a directory that you want to keep clean, tmpreaper is a great way
to remove files based on how old they are. The other day, I had a directory that
looked like this:
x@x:~/dump$ ls -l
-rw-r--r-- 1 x x 212268169 Mar 15 01:02 …Posted on in System Administration
If you have a directory that you want to keep clean, tmpreaper is a great way
to remove files based on how old they are. The other day, I had a directory that
looked like this:
x@x:~/dump$ ls -l
-rw-r--r-- 1 x x 212268169 Mar 15 01:02 …Posted on in Programming
The other night I was working on some Python code that interacts with the zKillboard API. The API call returns kill information via JSON for EVE Online. While making the request, I was getting an error that I was using "non-acceptable encoding." It turns out that the zKillboard guys require …
Posted on in System Administration
We run several (read: hundreds) of servers that are still running Debian 6 (Squeeze).
A few months ago, we started seeing the following errors coming from the daily
apt cronjob: "WARNING: The following packages cannot be authenticated!" When
running apt-get update the following errors dump out:
$ apt-get update
W: GPG …Posted on in System Administration
It seems
this problem
has resurfaced again with the new version of Mac OS X. More specifically, this
problem seems to affect appending search domains when the hostname contains a
dot. In Yosemite (10.10), mDNSResponder has been replaced with discoveryd.
Fortunately, all we need to do here is add …
Posted on in System Administration
Every time I restart my OS X Mountain Lion (10.9) laptop, it stops using the DNS search domains I've added via the Network preferences pane. I have found that restarting mDNSResponder fixes this issue. There are two ways to do this.
The first is a simple restart by sending …
Posted on in Software
I tend to clear out large chunks of email all at once. The most common thing I do is clear out all mail older than 30 days.
In mutt do the following:
Shift-D to delete messages matching a pattern. This will return a prompt
that says Delete messages matching:.~d …Posted on in System Administration
Posted on in System Administration
I stumbled across this problem when a daily cronjob on one of our Debian servers complained about this. A lot. If you run across this on one of your systems, there is a quick fix.
In our case, it turned out that /usr/bin/mandb could not read /etc/passwd …
Posted on in System Administration
Thanks to an error report from one of my backup jobs, I noticed that
/Users/slap/Library/Logs/DiagnosticReports was filling up with Finder crash
reports (files of the type *.crash). These files were being created once a
minute. Additionally, icons on my Desktop were blinking once a minute.
Upon …
Posted on in System Administration
I decided the other night to begin doing some testing using my headless Mac Mini. I use VirtualBox for all my testing on my Mac OS X systems. Since the Mini is headless, I decided now was as a good a time as any to start using VirtualBox via the …
Posted on in Software
I recently spent six weeks in Sydney working for my new job. Naturally, while I was there, I let Google Chrome's omnibox redirect my searches to Google Australia. Fast forward a few weeks, and I'm back in the States, but Chrome is living in the past. After trying just about …
Posted on in voice
It seems the maximum length for variables (at least those in extensions.conf) in Asterisk 1.2 is 255 characters. Running into this problem has to be uncommon, but it can really bite you if aren't aware.
Although I am only aware of this limitation in Asterisk 1.2, it …
Posted on in System Administration
On your Mac, the Brother ControlCenter software that let's you scan an image from your Brother MFC to your computer is started at boot by launchd. Therefore, it can be restarted from the command line.
For example, here is a list of processes controlled by launchd:
$ launchctl list | grep brother …Posted on in System Administration
I have a fairly lightly loaded MySQL server with a few tables that are updated every five minutes. Other than these updates, there are very few queries run against the database. The data is queried just a few times per month. Ever so often, one of the more complicated queries …
Posted on in Networking
Here are a few tips that might be helpful if you are having trouble accessing your Cisco router or switch via the web server.
aaa new-model, you will …