Category Archives: tips

copy files off my camera card to my pictures directory

=== Update 11/2013 == Sooo, I found that the below script didn’t do really what I wanted and I got a lot of files from 2012 in 2013 folders. So I’ve changed it around to use stat and maybe exif … Continue reading

Posted in software, tips | Tagged , , , | Leave a comment

how to replace newlines in linux using tr

I like to use sed for all my string replacements when I’m in bash or use the %s option in vim. Unfortunately, when I have to get rid of newlines, I always end up doing a macro that join lines … Continue reading

Posted in software, tips | Tagged , , , , | Leave a comment

AMS2300 upgrade to AMS2500 tip

Quick protip if you are going from an AMS2300 to an AMS2500, or even plan to in the future: Leave 3U of space above the AMS2300. The reason I say that is because the AMS2500 does not have any drive … Continue reading

Posted in hardware, tips | Tagged , , , | Leave a comment

variables and quotes in bash scripts

I created the following function the other day because I also forget how the quotes and variables works in my bash scripts: function printQuotes() { A=”ASTRING” echo echo without quotes $A echo echo without quotes ${A} curly braces echo “echo … Continue reading

Posted in software, tips | Tagged , , | Leave a comment

ssh idle keepalive timeouts

I’v had to solve this problem a few times and thought that I would post it up here. The problem is basically that when ssh’ing into a machine in a remote location, sometimes your session will log off because a … Continue reading

Posted in software, tips | Tagged , , | Leave a comment

Greening through IT inspired post

I’ve been reading Greening Through IT by Bill Tomlinson and has been a pretty good read so far. I’m halfway through so I can’t give a big review, but I can say that I found it very interesting and gives … Continue reading

Posted in tips | Tagged , , | Leave a comment

Thunderbird reply quick tip

Thunderbird tip my coworker told me. Usually when I reply to an e-mail, I hit the reply button and then delete out a bunch of the text that is now inline in my new e-mail. Now I can skip this … Continue reading

Posted in software, tips | Tagged , , | Leave a comment

Funny process kill with strace

Found out a weird thing where my process would hang when I tried to do a df and one of the nfs mounts would just hang there on our CentOS 5 machines. I found that if I killed the process … Continue reading

Posted in tips | Tagged , , | Leave a comment

ignore files in git

A common problem we have in our git directories are files that are generated automatically. You can do a simple thing to prep for things by creating a .gitignore file in the root of your git directory. For example here … Continue reading

Posted in software, tips | Tagged , , | 3 Comments

10 steps to opensolaris on laptop

Chris G over at sun has some great tips for some steps when you first install open solaris on a laptop. I don’t have a laptop to try it on but the list looks good: http://blogs.sun.com/chrisg/entry/10_steps_to_opensolaris_laptop

Posted in tips | Leave a comment