wesley tanaka

quilt cheat sheet / quick reference

quilt is a command line tool that allows you to push and pop a given list of patch files onto a source tree, as if there were a stack of patches.

The list of patches is represented by a directory containing individual patch files. The directory also contains a file called series with one patch filename per line (first to be applied at the top of the file).

The state of the patch stack is maintained in a directory called .pc/

LXC command cheat sheet / quick reference

lxc-create -t download -n mycontainer -- -d ubuntu -r trusty -a amd64
Create an (unstarted) container. Other architectures include: i386
lxc-start -n mycontainer -d
Boot up a container -- excluding -d will also run lxc-console
lxc-attach -n mycontainer
Execute a root shell inside of a started container
lxc-console -n mycontainer
Open a login screen inside of a started container
lxc-stop -n mycontainer
Shut down a started container

Long boring physics lecture #17


During dinner, my son asks me why I'm shaking the ice around in my glass.

So I launch into an explanation about how 100 degrees is very very super super duper duper hot, 0 degrees is ice, 25 degrees is something warm, like his ham.

"But my ham is cold."

Okay, maybe your ham is 15 degrees.

And for good measure, one more example is that Ryan is 37 degrees.

"I'm 37???"

Nobody expects a velociraptor for breakfast


W> You ready for breakfast?

R> Yes. . . . . . . Velociraptor.

[UPDATE: . . . on the following school day]

W> What do you want for breakfast?

R> Mmmm . . .

W> Cereal with milk?

R> . . .

W> Prunes??

R> . . . . . . . Diplodocus!

Changing Synology default SSH $PATH

By default, my Synology DiskStation NAS gives non-interactive shells a path of:


/opt/bin is not included so rsync, git and other programs installed with ipkg don't work.

One way to add /opt/bin to the default path to fix git and rsync is:

Progress Bar Project Management


To an outsider looking in, commercial software projects* should look like a well designed progress bar.

Dockerfile library


I've created some scripts and Dockerfiles to build docker images. There are images for:

Ways to download a file via HTTP from the command line


Current Ubuntu distributions do not come with either wget or curl installed, but they do include Python and Perl. Here are some alternative ways to download a file and print it on stdout without wget or curl:

Shaing your home directory between Mac OSX and a VMware Fusion 7 Linux Virtual machine


First, give your virtual machine a fixed IP address.  VMWare Fusion's dhcpd server will often change the IP address assigned to your virtual machine -- even while it's still running.  While you can give the entire IP address range block access to your home directory over NFS, that can disrupt some other tools like Vagrant.

% cat /etc/exports
/Users/wtanaka -maproot=root:wheel

Restart nfsd in Mac OS:

% sudo nfsd stop
% sudo nfsd start

Assigning a fixed IP address to a virtual machine in VMware Fusion 7


1. Find the dhcpd.conf corresponding to the network that your virtual machine is on.  By default the NAT network uses /Library/Preferences/VMware Fusion/vmnet8/dhcpd.conf. You can find the right one by running ifconfig (or ipconfig in Windows) inside your virtual machine to find its IP address, and look for a range containing that IP address in all of the dhcpd.conf files.

2. Edit the file to add the portions in green.  Be careful not to use a number in the dynamically allocated range, the host computer's IP, or the DNS IP:

Syndicate content
by Wesley Tanaka