Bash on Ubuntu on Windows

This is a quick intro to – and some personal notes on working with – Bash in Windows 10 (Anniversary Update or Insider build requred). This will be updated on a sporadic basis. Information on Bash What is Bash on Ubuntu on Windows? Bash on Ubuntu on Windows is part of the “Windows Subsystem for Linux” (WSL). Read more over at the WSL MSDN page. This page also covers installation guide, command reference, account permissions, interoperability, FAQ and release notes....

November 21, 2016 · 3 min

Installing PySide into a virtualenv

I’ve been struggling to install a portable/relocatable virtualenv with PySide 1.2.2 for Python 2.7. On Windows, this works out of the box but it’s more difficult on Linux and OS X, although I came up with a patch for OS X. This guide will not go into detail on portability/relocatability and will merely touch upon how to get started with PySide in a virtualenv. It looks like PySide 1.2.3 will have substantial changes which will allow for easier portability/relocatability and I will make a post on that as soon as it is generally available....

September 11, 2015 · 3 min

Getting quick access to new Google Cloud SDK features

There is a two-week delay before gsutil gets updated with the latest and greatest. If you want to try the new stuff out, pip install the SDK! sudo yum install gcc openssl-devel python-devel python-setuptools libffi-devel sudo yum install python-pip sudo pip install -U gsutil Then execute gsutil like this: /usr/bin/gsutil To access beta (or even alpha) features of gcloud, execute gcloud like this: gcloud beta compute instances ...

May 19, 2015 · 1 min

Kill process by search string

In Linux, you can kill all processes by name (or by username etc) using something like this: kill -9 $(ps aux | grep 'some_process_name' | awk '{print $2}')

May 6, 2015 · 1 min
Illustration

3D rendering in the Google Cloud

Guest blogging for Google! As a small design and visualization studio, we focus on creating beautiful 3D imagery – be it high-resolution product images or TV commercials. To successfully do this, we need to ensure we have access to enough rendering power, and at times, we find ourselves in a situation where our in-house render farm’s capacity isn’t cutting it. That’s where Google Compute Engine comes in. Read more over at the Google Cloud Platform blog....

May 1, 2015 · 1 min

Copying Maya to network share

If you would like to run a thin client installation of Maya, which means you run it off a network share rather from a local installation, you need to make sure to copy symlinks on Linux. If you just perform a simple copy, you’ll probably get something like this: error: unpacking of archive failed on file /my_mount/maya_installation/lib/libGLEW.so;544612b1: cpio: symlink failed - Operation not supported The solution is to copy the files which are symlinked:...

April 15, 2015 · 1 min

Find file or folder in Linux

Ever needed to do a simple search for an application, a file or a folder in Linux and when whereis doesn’t return anything useful? sudo find / -name "some_folder"

April 15, 2015 · 1 min

Run gsutil from crontab

Setting up gsutil to sync files over to Google Cloud Storage (on CentOS 6) requires some environment variables to be set, which seems oddly undocumented at the moment. Turning to Stackoverflow was the solution, and here’s a summary from that. Also, the -d flag is required to truly catch all errors/warnings, but on very large data volumes you may want to omit this flag as it generates quite a large log file....

December 15, 2014 · 2 min

What's hogging that folder?

Well, at least in Linux you might find out using this command: lsof <folder name>

December 2, 2014 · 1 min

How to create large temp files quickly (for testing purposes)

Quick and dirty way to just create a 10GB temp file for testing e.g. network transfer speeds. Linux fallocate -l 10G temp_10GB_file Windows The file size is defined in bytes. Use Google to do the conversion if you’re unsure. fsutil file createnew temp_10GB_file 10000000000 Mac OS X mkfile -n 10g temp_10GB_file

November 7, 2014 · 1 min