"Software" category

Quick Tip: Copy files from lxc host to lxc container

Today, I wanted to copy some files (specifically my .ssh/id_rsa* files) to the container filesystem of an lxc container I was spinning up. There are a number of different approaches to achieve this, and they’re all great, but I wanted the simplest thing I could do, rather than grepping through fstab records, and copying into arcane folders, etc. I’m using lxc / lxd on Ubuntu Xenial, so it’s a little different than a lot of the advice I found for earlier versions of lxc.

Quick Tip: Remove Query Param from URL in Go

Spent a few too many minutes today figuring out how to easily remove query string parameters from a url.URL in Go.

Today’s short post shows how simple it is.

Powershell Scripts - from the Archives

Way back in the day - circa 2007 or 2008 I had a website that included some sample code and snippets that demonstrated things I’d learned at the time. The content isn’t really that valuable any longer, but there are some nifty things. Reproduced below (thanks to the Internet Archive, wayback machine is the content from two different versions of this page. 2009 and Earlier Powershell Scripts Some fun/interesting powershell scripts.

Mail Queue Dispatcher

When writing web applications, one often has to send email as a part of the notification or registration process.

Sending email through an SMTP server directly from your main web application thread can block for an unreasonable amount of time while serving a response page that is waiting for the email to be delivered.