Polls

Are you ready to abandon ship?

View Results

Loading ... Loading ...

Recent Posts

Archives

Categories

Recent Comments

Utility

« Previous Entries

Introduction to Subversion

Tuesday, November 20th, 2007

I was planning on simply republishing my previous svn article, but realized that it sucked compared to what I know now.
Prerequisites
I’ll presume you have the following things.
- a Linux machine
- subversion already installed
Terminology to Know
There are a few terms that get mangled if you’re coming from other types of source control. This is [...]

Intro to Vim Tip #5 (Recording)

Sunday, October 7th, 2007

Search and replace is a great feature in most text editors, but what happens when you want to do more? Vim has a solution- recording macros. Suppose you have the following output from some ancient program that needs to be tweaked:

X1222 22323 2A22 3303 0000 3334esss test 123
X2222 22353 2A22 3303 0001 3334esss tacd 456
X3222 [...]

Giving Back

Friday, June 8th, 2007

I’ve been using and promoting open source for about 7 years now- it started back in 2000 when I began writing php and playing with apache. In 2003 I made the full switch to Linux. Since then I’ve produced several small little projects and put them under the GPL in hopes that it would [...]

Useful Utility: diff

Thursday, March 29th, 2007

Diff is a handy little command used to compare two text files- useful if trying to determine what’s changed in different versions of files, used by subversion to show what files have been changed, and can even create patch files for updating sourcecode. So what are some of the more useful flags?
* -i lets [...]

Useful Utility: route

Saturday, March 24th, 2007

Route is one of these hate-inspiring, jaw droppingly obtuse programs that you always get the syntax wrong on. The purpose is simple enough- show and/or change the routing table. The most common uses are:

route – shows the current entries
route add – adds a new entry
route del – removes an entry
route flush- removes [...]

ldapifying an ubuntu server

Monday, March 19th, 2007

I recently wrote a nice little script in ruby for ldapifying new ubuntu servers- all the server needs is a ssh key set up for root, the rest is cake…

jmorg@util3:~/base_configs# ./ldapify -h
Usage: ldapify –install hostname [$options]
ldapify –check hostname
ldapify –uninstall hostname
[...]

Useful Utility: tee

Tuesday, November 21st, 2006

I have two requirements for a program being on this list: the first one is it has to be a utility- something scriptable or usable on the command line. The second is it also needs to have multiple arcane flags that I can write about, or just be so unknown that it’ll bring it [...]

Intro to Vim Tip #4 (Pasting)

Friday, July 14th, 2006

If you need to paste into vim from somewhere else, and your code has tabs or spaces in it, you’ll notice that vim may add extra tabs. see, vim doesn’t see it as a paste event, it sees it as “you typing really fast”- and one thing vim does will is auto-indent. The [...]

Intro to Vim Tip #3 (Visual Mode)

Monday, July 10th, 2006

Another well used mode is Visual Mode, which turns your cursor into a hilighter.
open a textfile with several lines of text ad move the cursor to the middle
switch from command mode to visual mode:
v
You’ll notice as you move the cursor around, you highlight different sections from the point you started to the point you left. [...]

Intro to Vim Tip #2 (deleting)

Monday, July 10th, 2006

Deleting in vim can be done several ways- in insert mode, the delete key and backspace key perform as you’d expect them to, but what if you want more?
delete the character to the left of the cursor:
[esc]d[left arrow]
delete the character to the right of the cursor:
[esc]d[right arrow]
deleting the current line from insert mode:
[esc]dd
deleting the current [...]

« Previous Entries