Linux vi tricks for converting vertical lists to horizontal comma separated lists

:: Linux vi tricks for converting vertical lists to horizontal comma separated lists ::

I have recently found that I need to do this almost every day. Here’s my little note on how I can do this quickly in vi.

First take your list of files vertically sorted and open them in vi.

#> vi myfile.txt
Bob
Joe
Jim
Seth
Sam
Sarah
Bill
Amy
Anne
Beth

—-
Next, tack on a comma to the end of each line with this vi command:

%s/$/,/g

Which gives you this:

Bob,
Joe,
Jim,
Seth,
Sam,
Sarah,
Bill,
Amy,
Anne,
Beth,
—-
Once you have all your lines ending in a comma, remove all the line breaks from the end of each line with this vi command:

%s/\n//

Which gives you this:

Bob,Joe,Jim,Seth,Sam,Sarah,Bill,Amy,Anne,Beth,

—-
Done.

I have been using this mostly for converting lists of IP addresses to comma separated for use in Linux Fabric scripts.

Enjoy!
K-Dog

:wq

Yay! Kingdom Builder for #GameNight !

Yay! Kingdom Builder for GameNight!
Tonight the fnlinux.com crew plays a new game. Naucum picked up a copy at Salt lake Gaming Con last week.

image

 
Game Night Begins!
 

 
image
 
Hot in the action!
 

 

FalseFlag for the win!

FalseFlag for the win!


FalseFlag (Orange) for the win!

 

Yay Linux! Using tar to pull and compress a directory from a remote server

#### Using tar to pull and compress a directory on a remote server. ####

I have a remote server which has /u01 and /u02 mount points on it. This server keeps dying before the night DBA can get into it to grab files for a rebuild.

I wanted to pull down both the /u01 and /u02 directories, to preserve them. I initially used rsync for it’s “restartable” characteristics. This didn’t do what I wanted as far as preserving permissions, so I decided to use the tar utility. The remote server does not have enough free space on it to create the tar and then copy it off. So I used tar and ssh to compress, pull down and create the tar.gz on my local machine.

After looking around and finding a bunch of to complicated solutions, I came upon a simpler command string.

So this is what I did.
(Kev, remember this as it is useful!)

—-

ssh root@srv03 ‘tar cvfz – /u01’ > /kftmp/srv03_u01/srv03_u01.tgz

—-

Since the was a directory that my regular use does not have full access to I did have to enable root ssh. This was disabled right after the transfer.

I ended up with a tar gz file on my local system which, while owned by me, had preserved the file ownership and permissions of the original /u01 file system.

—-
root@SoftKitty:/kftmp# ls -lh srv03_u01/
total 396M
-rw-rw-r– 1 kfitzgerald kfitzgerald 395M Aug 3 17:38 srv03_u01.tgz
root@SoftKitty:/kftmp#
—-

Yay Linux!
K-Dog. The_Kev
:wq

DM, we love thee: A Po-ehem

Oh DM, we love thee!

 

 

 

Dungeons

 

DM how do we love thee?

Do we love thee like a pretty kitty?

Do we love thee like an attack of Opportunity?

Do we love thee like an undead Zombie?

Do we love thee like a river side shanty?

Do we love thee like a busty tavern lassie?

Do we love thee like a pug that’s Classy?

 

No! We love thee like a Natural 20!

 

Much Lerv,

K-Dog

(this post brought to you through the combined efforts of Coors, Left Hand Brewing’s Milk Stout and O’Dell’s 90 Shilling Ale) oh and a healthy dose of Optimus Rhyme.

:wq

Resize of LUN presented to OVS Hypervisor Host and VM

K-Dog’s notes on this wonderful procedure:

This is what I had to deal with earlier this week.

—-

INTRO:

BRAINDUMP
1- ovs
2- NFSserver
3- guest

[Read more…]

15mm dwarf minis from CopplestoneCastings.co.uk

So I’ve been adding more 15mm minis to my collection. One of these days I’ll actually get them organized into armies or squads and play some battles with other people.

I have been hesitant to order minis from “across the pond”. Part of this hesitation was the cost for shipping and the other concern was the time it would take for shipping to the USA. I finally decided to try some Dwarves from CopplesoneCastings.co.uk. I was pleasantly surprised on both accounts. At least with Copplestone. The order was processed in a day or two and the shipping was very reasonable. I received my order to my doorstep within about 2 weeks.

I ordered up a batch of 12 Dwarf Spearmen and a batch of 3 Snow Trolls. So far I am really impressed with the detail of the minis. I especially like the detail on the faces of the 15mm dwarves. It seems that faces seem to get basically ignored by some sculpters when creating 15mm minis.

CopplesoneCastings.co.uk

15mm Dwarves from CopplestoneCastings

 

CopplesoneCastings.co.uk

15mm Dwarves from CopplestoneCastings – based

 

 

So far I have only cleaned them and based them. In the future I will be base prepping them with Gesso and then letting my creative side take over from there. Since I got the Snow Trolls I am thinking of painting the Dwarves in a “northern/snow” theme also. I know that dwarves hate Goblins, and dwarves hate Orcs… but do they hate Trolls? I’ll think on it now and then paint on it later.

—-

Here are the Snow Trolls that have inspired me to do a snow type Dwarf.

Copplestone Castings Snow Trolls

Copplestone Castings Snow Trolls

My thoughts are to do a blue-sliver chain mail with brown trousers. I think I’ll try some white fur on dwarf pants and cuffs. I’m also thinking of a pure white shield with a simple light blue stripe.

So with most all of my minis I usually prep them with a watered down Gesso base.

Here are the Ice Dwarfs behind the legion of Wolfen Swordsmen

Here are the Ice Dwarfs behind a squad of Wolfen Swordsmen

First stage of paint.

First stage of paint.

 

Ice Dwarfs - Eight

Ice Dwarfs – Eight

For the helmets and spear points I’m going to use a cool technique that I found with Chaos Warriors.  That is a base of metallic silver, coated with a wash of Army Painter Quickshades Blue.

Ice Dwarfs - Bottom wash with Quickshade Dark Tone

Ice Dwarfs – Bottom wash with Quickshade Dark Tone

Ice Dwarfs - Bottom wash 2

Ice Dwarfs – Bottom wash with Quickshade Dark Tone

 

 

 

 

 

 

 

 

 

—-

K-Dog

 

:wq

Is it to early to be thinking about FantasyCon 2015 ?

So I was in the comicbook shop the other day (surprise, surprise) and I ran into a flyer for Salt Lake FantasyCon 2015.

FantasyConNow, I am excited to know that FantasyCon will be returning to Salt Lake. I think it is a great Con. It is just the right size (for now) and Medieval fantasy is my favorite genre. I am really looking forward to seeing which minor celebs show up for this next event. I thought that one of the most special things about FantasyCon was how genuinely interested the actors and celebs were to interact with the fans.  I suppose that I did attend more panels at FantasyCon than I did at Salt Lake ComicCon. This might have influence my perspective on this, as I know that naucum had some really great interactions with celebs at SLC ComicCon.

I suppose that it is good to know that FantasyCon will be back. I will definitely be attending all 3 days.

 

Bring me the Dragons, bring me the Metal, and bring me the Ale!

K-Dog

:wq

 

 

Comment by Naucum: Comments don’t seem to be enabled here, so I’m hijacking your post to say: No!! Never too early!! We’re attending FanX later this month too. I’m making Annie a costume for it and likely will for FantasyCon as well. Bring on all the cons!!!

Wee Ones for the Weekend from LoneGunmanGames.com

I know what I’m doing this weekend. I had hoped to have a batch of goblins to paint up.
That’s not happening, but thanks to the speedy service of James at LoneGunmanGames.com [Read more…]

Issue #1 of ToeTagRiot.com is out this Wednesday!

So excited! I picked up the Issue #0 at Salt Lake Comic Con 2014 this year and had it signed by Matt Miner (mattminer.net). Now Issue #1 is out. I’ll be dropping by  my favorite comic shop (BlackCat) to pick it up. Not worried, though… It’s already on my pull list!

K-Dog

:wq

Cheap lead bases for 15mm minis

So I’m cheap. If you don’t know this, well I am. Most of my clothes come from the thrift store. Not that being a Linux SysAdmin is a bad gig or anything, I just like to save money. And NO I am NOT a hipster.

So I have been playing around with 15mm miniatures lately.
I usually work with 25mm minis. I have mostly used the plastic Reaper Bones figures ( I’m cheap, right?). I have heard and read much about how people love their lead figures ( some of whom would Never by plastic).
The other week I picked up some 15mm lead figures off the internet. I opted to get a group of female warriors. I find that female table top gamers prefer to play with minis which are also female. Imagine that!  So I like these little gals, they are fun to paint, easy to clean and will work nicely with some game boards I am building.

Ok then, to the point (and the pictures). I noticed that these little minis had [Read more…]