Category Archives: Scripting

Unity3D components and code snippets

Last update: Feb 25, 2016 I've been using Unity3D a lot these days for business and pleasure. I've been posting some of my code to gists on GitHub to serve as examples or as open-source components. I thought that I should collect them in one place to make the good stuff easier to browse. I […]

Also posted in Game Development, Programming | Tagged , | Leave a comment

wp-upgrade: (nearly) automatic wordpress updating via git

For several years now, I have been using git as a means to manage migration of my website from one version of wordpress to the next. I initially was maintaining documentation for myself on how to do this manually, but later I migrated the documentation into an automatic script. I've decided to clean this up […]

Also posted in Tools | Tagged , , , , | 1 Response

Unispawn

I've been working a lot with Unity3D recently, and sometimes it can come in handy to have multiple instances of the editor open at once. On Mac, this works fine, but due to how the dock works, it's awkward to launch more than one instance, requiring you to root around in the app bundle and […]

Also posted in Game Development, Tools | Tagged , , , , | Leave a comment

Tool tips: Find

The find utility is so useful for automation that it deserves a special mention on its own. I will not attempt to cover all of its features, only the ones that I use on a daily basis. I typically use find for two purposes: To create a list of files matching some search terms. To […]

Also posted in Tools | Tagged , , , , , | Leave a comment

Tool tips: Tee (and standard streams)

Tee is a wonderful but often-overlooked core utility. It's purpose is to intercept a pipeline, write the output to a file, and pass the output along the pipe. It can be used to easily add output logging to any command pipeline or script. To get the most out of tee, it pays to read up […]

Also posted in Tools | Tagged , , , | Leave a comment

Tool tips: File

Today, I would like to highlight the usefulness of the file utility. It is a command-line utility that is common on Unix systems. File will take one or more files and try to determine what type of file they are by examining their contents. It's the most accurate general-purpose tool of its type that I […]

Also posted in Tools | Tagged , , , | 1 Response

Better living through automation, pt. 3: Shell Scripting: Becoming a Wizard

Using just the shell and the coreutils, it is possible to write commands which wrangle massive amounts of files, translate data into the format you want, etc. But what if you want to take things to the next level? This is where scripting comes in. You can write scripts which are capable of performing a […]

Also posted in Programming | Tagged , , , | 5 Responses

Better living through automation, pt. 2: The Shell and Coreutils

From here on out, I'm going to assume that you have access to a Unix environment. If you use Windows, I suggest that you install Cygwin to get a Unix environment on your machine if you want to follow along. The default Windows terminal is also pretty crappy so I¬†recommend¬†installing the rxvt-native terminal from within […]

Posted in Scripting | Tagged , , | 1 Response

Better living through automation, pt. 1

Anything that's tedious is repeatable; anything that's repeatable should be done by a computer. -Robert Muller I spend a lot of time working on my computer every day. Many of the tasks that I need to perform on a computer can be incredibly tedious. Copying and pasting text from a website into a spreadsheet. Renaming […]

Posted in Scripting | Tagged | 1 Response