Home Random Sh17cast Forums

Search and Replace using VIM

Sunday, November 1, 2009

I always forget little things like this.       Today I changed the dyndns hostname I’ve been using on a server, and needed to update my Apache vhost .conf file to reflect the new domain.      There’s only about 10-15 virtual hosts in this file, but I still didn’t want to manually edit it.    I’m lazy.

vim 90_bac.supercoolname.tld.conf

Once you’re in vim, it’s super-easy to do a find and replace.     This is the command I ran:

%s/bac.supercoolname.tld/bac.evenbettername.tld/g

%s tells vim to search through the entire file.

/g tells vim to replace every instance of bac.supercoolname.tld with bac.evenbettername.tld

There’s a ton of other useful stuff you can do with regular expressions, but this is something I forget a lot when I don’t use it frequently.

posted by johntash at 1:14 pm  

Hot Violin Girls – Toxicity

Thursday, September 24, 2009

People with Violins are cool. Hot girls covering System of a Down songs with violins.. are awesome.

See more funny videos and funny pictures at CollegeHumor.

posted by johntash at 11:46 pm  

International Talk Like A Pirate Day [ITLAPD]

Saturday, September 19, 2009

talk-like-a-pirate
It’s that time of the year again. International Talk Like a Pirate Day is upon us again. September 19th, every year.

There’s a lot going on again this year, so here’s a few links to get you started:

Also.  A Comic and video for you to enjoy:


Ye scurvy doggs have fun!

-Cap’n Guideon Leadblade

posted by johntash at 6:30 pm  

Rage – Game Trailer

Sunday, August 16, 2009

Haven’t heard a whole lot about this game yet, but Rage looks rather fallout 3-ish to me from the trailer. But that’s not a bad thing, Fallout’s awesome!


Head on over to the GameTrailers link for more videos about Rage.

posted by johntash at 12:27 am  

I Hope They Serve Beer in Hell – Trailer

Tuesday, August 4, 2009

There’s finally a trailer online for the movie I Hope They Serve Beer In Hell.      Based on Tucker Max’s book by the same name.       The book, and Tucker’s website are both hilarious(in a way) so if you haven’t read them yet, you should definitely!

Also go watch this movie when it comes out!

I HOPE THEY SERVE BEER IN HELL

posted by johntash at 9:17 pm  

In case of emergency…

Thursday, July 30, 2009

1611zombieOf course, everyone should be prepared.   Who doesn’t have a zombie emergency kit yet?

PS:  Real post coming soon.

posted by johntash at 1:05 am  

Stargate Universe – Trailer #1 (SDCC 2009)

Friday, July 24, 2009

YouTube – Stargate Universe – Trailer #1 (SDCC 2009).


posted by johntash at 11:52 pm  
Next Page »

21 queries. 2.032 seconds.
Copyright © 2007-2009 http://www.thesh17.com