rsync is great, but one thing it doesn’t necessarily excel at is speed. Don’t get me wrong, it plenty fast in most cases, but there are plenty of opportunities to parallelize transfers and help saturate your pipe, but rsync is ultimately just one-file-at-a-time. There are tons of articles on how […]

Quick and easy parallel rsync

Sometimes I need to download big ISOs or other large files onto my work laptop, but GlobalProtect forces me to do so via the VPN. In order to speed things up and use my local network connection, I need to disable the VPN, but I cannot do so due to […]

Disable/Enable GlobalProtect on OS X

I’m a big user of Chef, but was bummed when I couldn’t find any resolver information in Ohai data. I needed to make some changes to an nginx config to use resolver, but wanted to use the resolver that’s already on the host (since nginx doesn’t inherit that for dynamic […]

Get nameservers from resolv.conf with Ruby

Every true sysadmin has been in this predicament — “I need to run this command on a bunch of machines.” The typical approach is to create a for loop, and run the command serially. This works well, but if a) you have tons of hosts, or b) the command takes […]

Run multiple ssh commands in parallel with GNU Parallel

If a replica shard is in an INITIALIZATION state and the primary shard is healthy, then the shard is being replicated from the primary to the replica. You can use the cat API to get this state: [crayon-58fd1d92022b9622327457/] Now, we have no clue from this view what progress has been […]

Elasticsearch cluster administration notes

Promox has built-in support for installing templates, but they’re pretty outdated and not well-maintained., on the other hand, regularly updates their templates, and has a wide selection to choose from. In order to make these templates available for use in Proxmox, it’s simple.  Get the links for the templates […]

Installing OpenVZ templates in Proxmox

The Cyrus IMAP server (which is used by FastMail, FYI), is pretty picky when it comes to enforcing RFCs.  When performing a recent email migration (from Zoho, which is less picky), I got a boatload of errors along the way. With each of my messages as individual files (downloaded as […]

IMAP Append – Message contains bare newlines

There are times when I need to create a number of OpenVZ containers in Proxmox at once, which would take way too long via the user interface.  There are a number of ways to accomplish this programmatically, but the most straightforward (assuming you have root access) is via [crayon-58fd1d9202b58968106874-i/] . Below is […]

Create multiple Proxmox containers via script

  [crayon-58fd1d9203221390719179/] You’ll now need to have this module loaded in PHP; this varies depending on which handler you use: [crayon-58fd1d9203229170084366/] cd into wp-content/plugins [crayon-58fd1d920322e550215549/] In wp-config.php: [crayon-58fd1d9203232035153118/] In your admin dashboard, enable “WP XHProf Profiler” from the plugins section. You will have “Profiler output” links at the very bottom […]

Enable XHProf for WordPress