Quickly Encode Audio Files For Asterisk Music On Hold Using Sox

To quickly encode audio files for asterisk music on hold using sox, switch to the directory containing your original audio files and encode to 16-bit 16KHz mono, like so: ls -1 | while read LINE; do echo "${LINE}"; sox "${LINE}" -b 16 -r 16000 -c 1 "${LINE}.wav"; done;

FreeNAS on VMware Expand Single Disk ZFS

First, turn off CIFS and any other sharing services to prevent users from attaching to shares during this operation, in order to freeze the data for backup. Back up the entire ZFS pool and child pools by adding a second hard disk and using ZFS send/receive (or using the backup of your choice). Unmount and ...

Logitech Media Server Scanner Stops Finding New iTunes Playlists

My Logitech Media Server (aka Squeezebox Server or LMS) stopped finding new iTunes playlists at some point and I couldn’t figure out why.  After updating, rescanning, resetting, etc., I was still in the dark.  It would find and add new songs, but not new playlists. Here’s what happened: iTunes switched at some point from using the ...

Save a Web Page as PDF on Blackberry 10

First of all, this won’t work for a page that extends beyond the fold. That said, if you need to save a web page as a PDF on your BlackBerry 10, just follow these simple steps: Navigate your browser to the page you want to save. Take a screenshot: press the volume-up and volume-down keys ...

pfSense: Throttle Bandwidth by Host and Time of Day with Limiter

pfSense: Throttle Bandwidth by Host and Time of Day with Limiter
Today I was setting up a two Synnology NAS units to sync using CloudStation over a WAN link. This was pretty easy to set up using Synnology’s QuickConnect feature. But the problem was that we didn’t want the syncing NAS units to bog down the WAN links during working hours, because those WAN links are ...

ZFS Send/Receive Large Snapshot in the Cloud

Today I needed to migrate a ZFS pool from one server to another in the cloud.  It was about 20GB, and the standard method using zfs send/receive was not working because the ssh connection kept getting dropped.  No surprise on the connection drop for a single block of data that large, especially between competing cloud ...

AsteriskNow: Block Incoming Numbers By Area Code 1

AsteriskNow: Block Incoming Numbers By Area Code
I use AsteriskNow for my work phone system.  One annoyance I ran into was repeated fax spam.  I don’t use the fax features on AsterskNow, but every time my voicemail picked up a call from these numbers, I would receive a voicemail full of fax beeps.  I started adding the numbers to my blacklist, but ...

png2icns

This is a script to easily convert a png image to an icns in the terminal in osx, using built-in tools. Features Compatible with retina displays. Requirements You will need a source image that is 1024 by 1024 pixels. One is provided for testing. Usage Simply run the script and either specify the path to ...

FreeBSD ARM Tools 1

Static pkg Tool: pkg-static Built according to instructions noted by David Quattlebaum’s comment on Gonzos post Packages(*) for Rasberry Pi(**). This handy tool will allow you to bootstrap the pkg system for FreeBSD as in the example below, even though the original original pkg package is not currently available via FreeBSD servers. Use it to install your first ...

My Oh My ZSH

My Oh My ZSH
Lately I have been using the Oh My ZSH framework by Robby Russell in my shells on various machines.  I wanted a way to separately add themes, and also to be able to have various color palettes for a single theme. This developed slowly across all my machines into a system that I have now shared on github, which ...