Posts
-
Copying sourcefiles without .git folders with cpio
Sometimes you need to copy your local version of a project under subversion to a new location, without all the .git stuff. Here's a couple of ways of doing it.
-
Dealing with extended attributes on OS X
Extended attributes store extra information about files in OS X. They replaced resource forks. Sometimes those extra hidden files confuse peripherals (e.g. mp3 players) that were not setup to deal with them. Here are some terminal commands to handle them.
-
Making a simple voice recording on a Mac
To make a quick voice recording with OS X: open Quick Time Player, under the File menu there is a "New. Audio Recording" entry. It automatically saves .mov files in your Movies folder, which you can then open in Audacity or the editor of your choice.
-
Escaping $ in replace strings in Javascript
To have a $ in your replace strings in Javascript regular expressions, it needs to be escaped with another $
-
Changing title of CMD window
title some words
will change the title of your cmd shell in Window
The title will be `some words` instead of `C:\Windows\system32\cmd.exe`. Handy if you have a few of them open and can't tell them apart. -
A Google Apps Script boilerplate
I used to do a lot of Google Apps Script (GAS) programming, but Google's never seemed to interested in that product so I gave up. Here I document a simple boilerplate project so that I don't forget how to do it.
-
Advanced Evernote search
It isn't immediately obvious, but Evernote offers advanced search operators.
-
A good place for scripts in OSX
Where to put unix based scripts on a Mac without them getting in the way? Simple: create a bin folder in your home directory, and add it to the path:
export PATH=~/bin:$PATH