associate files with steam app (linux)
Thu 29 December 2016 linux steam , 0 comments

Steam powered Fig. 01. steam powered!

This is for linux users (tested with Ubuntu) as the title implies.

Alright, so some days ago I discovered that Blender can also be installed through steam, yeah… I know, I’m late to the party but oh well.

Anyway, let’s cut to the chase. When installing the app I selected the option to create a shortcut in the start menu (dash in my case since I’m using Ubuntu).

Now what this does under the hood is to create a .desktop file under $HOME/.local/share/applications, in my case it was $HOME/.local/share/applications/Blender 2.78.desktop since I’m using Blender v2.78. Blender is a pretty well known software by now and I thought, hey, why not have it open up files when double-clicking on them?… hm, but how to do it exactly? I mean Blender opens through steam …

terminal batch rename (Linux)
Wed 15 July 2015 bash batch Linux , 0 comments
Mon 27 July 2015

My laptop is running Ubuntu 15.04 and lately I had to do some batch file renaming. No sweat, I searched online for a bit and found what I was looking for: the rename program written in Perl. Pretty cool (I said to my self), now I can do a bunch of renames super easily. But little did I know that on the machine (doesn’t run Ubuntu) I’m working at the office most of the time… there is no rename Perl program, there is a rudimentary rename program, but not satisfactory enough (and ancient as well for this era: written in 2000 as per it’s man page). Now the problems start…

Searching online, I found this nifty trick you can use with another (super Linux) program: sed. You can easily rename programs with the following (piped) commands:

ls {f_pattern} | sed 'p;s/{s_patternN}/{r_patternN}' | xargs -n2 mv …