Fork me on GitHub

Tag: line

Tag Archives: line

Bash snippet to remove a line from a file

A while back I was working on a project that involved spooling up and shutting down a lot of Amazon EC2 instances while testing and I was constantly running in to an issue where my ~/.ssh/known_hosts file was out of sync with the server that I was connecting to. Despite how simple it is, I […]

May 5, 2011 | Computers | Comments Off on Bash snippet to remove a line from a file

SSH Connect Script, Hax, Whatever…

I work with many different servers at work. Most tedious part is that I need to ssh in to them on a regular basis. Not all of them can I, nor do I feel should I, be adding SSH keys on to. So I finally got around to writing a little script to hold onto […]

June 26, 2008 | Computers | Comments Off on SSH Connect Script, Hax, Whatever…

“su” to root on OS X without enabling the root user

I guess this is an old unix trick, but I didn’t know it: sudo su – You must have sudo rights (ie: be an administrator). Thanks, Jeremy!

June 4, 2008 | Computers | Comments Off on “su” to root on OS X without enabling the root user

tmbundle update

I’ve been making incremental updates to my TextMate bundle updater for a while now and can finally publish the updated script. It now properly handles updating installed bundles and adds the ability to update only a single bundle and to list installed bundles. Read on for the nitty gritty.

January 17, 2008 | Computers | Comments Off on tmbundle update

Easily install and update TextMate bundles from SVN

This script has been updated This script was updated on 2008/01/17. Since the version released here had a fatal flaw I have replaced the file linked below. Click here to see the details on the latest version of this script. I’m lazy. I’ll admit it. It comes at weird expenses though. I’m too lazy to […]

May 31, 2007 | Computers | 2 comments

Tasty VIM Morsel

I just learned a nice little bit on using VIM and feel the need to share. When using vim you can insert the contents of command line output by using the :r! command. For example: :r! ls /etc/httpd would insert the directory list of the /etc/httpd directory. :r! cat file.txt would insert the contents of file.txt and insert it […]

September 26, 2006 | Computers | Comments Off on Tasty VIM Morsel