bash

Scrape All Text From a Domain

1 minute read

Here are some commands to download the most important pages of your site as plain text (determined by MAX_DEPTH), and save it into one big <DOMAIN>.txt...

Let's Make DNS Outage Suck Less

2 minute read

Unfortunately the Linux DNS resolver has no direct support for detecting and doing failovers for DNS servers. It keeps feeding requests to your primary resol...

Lock Your Cronjobs, Enjoy Your Sleep

3 minute read

If you use EC2 you may have heard of Tim Kay's aws commandline tool. It provides access to most of Amazon's API and is less cumbersome than Amazon's own CLI ...

Revisiting Spaces and Tabs

5 minute read

This article in 50 words: I used to prefer spaces vs tabs, now I don't care so much, think it's more important that you can easily switch on a per-project ba...

Optimize Your Synology NAS for Downloading

10 minute read

I recently bought a NAS so my data is safe & available, with the benefit of being low power / noise / heat. I've considered Netgear, QNAP, but decided to...

Analyze HTTP Requests With TShark

1 minute read

When you're debugging a tough problem you sometimes need to analyze the HTTP traffic flowing between your machine and a webserver or proxy. Sometimes you can...

Convert All Tables to InnoDB

2 minute read

Some time ago I was in the situation where I was looking at 200 MyISAM tables screaming to get converted to InnoDB for performance reasons. You probably know...

Flush Memcached Using Bash

less than 1 minute read

If you store application data in memcache, you may want to invalidate it once you deploy a new version to avoid corruption or weird results. There are severa...

Change the Default Editor

less than 1 minute read

Ever wanted to change the crontab of a server, but got an editor on screen that you're totally unfamiliar with? There are a lot of causes for this annoyance,...