Category Archives: tips

adding macruby to multiruby versions

Modified from Rob Seaman’s post. multiruby is a great way to make sure your ruby code runs on the multitude of ruby versions (it’s part of ZenTest). It doesn’t install macruby by default. Here are instructions on how to set it up. Since I installed macruby from the package installer my macruby files are in /Library/Frameworks/MacRuby.framework/Versions/0.4/. If [...]
Also posted in ruby | 1 Comment

tweet twitter util – cli feedback on tweet length

One of the nice things about the Twitter web-interface is that it gives you feedback on the number of characters you’ve typed so far. Since I use the command-line twitter gem (by John Nunemaker) I miss out on this feature and find myself using echo and wc to make sure I’m not over the limit. To [...]
Also posted in ruby, shell | Leave a comment

cp a symlink to multiple directories

Today I wanted to copy a symlink to many different directories. So I tried the following: for f in `find . -regex ''.*cp.*snippets''` ; do cp bbb.html $f/ ; done Which returned: cp: cannot stat `bbb.html': No such file or directory bbb.html is a symlink and the default behavior of cp (I think) is to try and copy the [...]
Also posted in osx, shell, sysadmin | Leave a comment