Getting non-Apple (AX88772) USB Ethernet to work on Mavericks 28

UPDATE 11/29: Seems Asix’s latest drivers work right after install, so you no longer need to do the steps below. Just download the Mac OS X 10.9 drivers from here and install as normal. I just upgraded my Macbook Air to OS X Mavericks and found out that my trusty (non-Apple and super cheap) USB ...

Converting a mercurial repository to a git repo 2

Prereqs Make sure mercurial and git are both installed. On OS X you can first install homebrew and then just do brew install mercurial git prep Clone hg-fast-export from here to some directory: git clone https://github.com/frej/fast-export.git /tmp/ Go to that directory, make a folder for your hg repo and clone it using hg cd /tmp/fast-export ...

Shink/Compact VirtualBox vdi or vmdk images to save disk space 3

First, we need to zero out the free space so that the compact tool can work. apt-get install zerofree Then restart into recovery mode. To do this: While restarting the VM hold shift Select Advanced Options Select Recovery mode Once it boots type `mount` and note down where / is mounted at (almost certainly /dev/sda1) ...

Testing RESTful APis with Simple REST Client and JSON 1

More just so I remember: Simple REST Client is a simple Chrome extension that allows you to easily test REST apis from within your browser. Unfortunately, I always forget important details. When testing Posts, to do anything meaningful you need to set up a way to pass in the data, so set the header to: ...

Using ls -l to print octal permissions for use with chmod 2

All credit goes to this Stack Overflow posting by Jon Winstanley for his awk genius. Changing file permissions on *nix systems can be a pain, and it’s not helped by the fact that the format the chmod command uses (octal representations of the relevant bits) is not very human readable, while the format ls -l ...

Setting up Source maps for Iced Coffee Script 2

The easy way (updated): No need to do all the stuff below anymore, the latest versions of coffeescript and iced-coffee-script both support -m options now. Might still be useful if you want to get this stuff working with Grunt, but if you just want to do a basic version just do this: npm install source-map-support ...

Making UTF-8 work properly in bash 19

The really short and foolproof way to get locale’s to work with full Unicode and UTF-8 If you just want it solved temporarily, type these things: sudo locale-gen export LC_ALL=en_US.UTF-8 To make it stick toss that export LC_ALL=en_US.UTF-8 into your .bashrc file. relogin (or resource your .bashrc), type locale and make sure that everything shows ...

Things I wish I’d known aboute Node.js before I started 4

I’ve been learning Node.js lately. As you may have heard, it does things a bit differently from how they’re done in other programming languages. I’ve found that I’ve wasted quite a bit of time trying to do things the “non-node way.” So, without further ado, here’s a list of everything I wish I’d known about ...

Double SSH forwarding: Exposing your local machine via a double SSh tunnel to your web server 17

This is more for me to remember it than for it’s actual usefulness. I had a very strange situation where I wanted to give a friend (temporary) access to a local web server running on my machine. But my machine was running behind multiple NATSs, so I decided I’d use an SSH tunnel into my ...

Hackintosh / Customac: Getting a GA H77-DS3H with intel i7-3770 working (not as easy as one would expect) 7

Despite the fact that this was supposed to be one of the easier ones to set up (according to tonyosxmac86) this was a serious pain. I may be having all these difficulties beacuse I’m using a rev 1.1 of the board, but I can’t find any reliable way to determine which rev I have. Basic ...