Michael’s Interesting Stuff One person’s drama is another’s laughter

January 22, 2015

Ansible!

Filed under: Geek — Tags: — ecogeek @ 3:12 pm

I am a recent convert to Ansible and I get the feeling I’ll be using it a lot in my day to day work as a system admin.

Here is an example of what Ansible can do for you:

ansible group1 --sudo -m shell -a "lvresize --resizefs --size 60GB /dev/mapper/vgroup1-var"

This resizes a partition on multiple servers all at once. Which is very handy. And this is just the tip of the iceberg on what Ansible can do!

February 1, 2014

Games with friends.

Filed under: Geek,Life — Tags: , — ecogeek @ 1:44 am

I just got home from playing Caverna with two friends. This game is a lot of fun, even when you lose! (which I did)

image

This is set up.

image

This is my board at the end.

image

And finally, an above shot of the whole game (yes, I am that tall)

I just noticed that we all had laptops. We’re geeks 🙂 Mainly we were teasing Internet friends that couldn’t be there.

Fun times, for sure. Knackered now. Bed.

November 3, 2013

The day the Internet returned!

Filed under: Columbia,Geek,Life — Tags: , , — ecogeek @ 11:55 pm

Well, returned to normal speed.
I decided at the beginning of October that I wanted to go to a breaking bad party. Having only seen a few episodes, I had a lot of catching up to do.
So I watched episodes to and from work and managed to go through my whole 5gig allotment. (luckily it happened October 30th)
Now I’m back on 4G, and I much prefer it over 2G.

Today we played xbox in an senior living apartment building, played civ and watched sports and rocked a baby to sleep.

Good day.

March 23, 2012

Useful Script

Filed under: Geek — Tags: — ecogeek @ 2:27 pm

Here is a script that one of my co-workers wrote.  It goes and does something remotely to a set of servers very quick like using children.  This script has inspired me to build children into any script where I am going to do things to a LOT of servers because it will go much crazy fast. Yes, I’m so excited about this script, that it makes me lose my grammar. 😉

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#!/usr/bin/perl
 
use Parallel::ForkManager;
$start = time();
use Getopt::Long;
$time=0;
$delimiter=0;
$child=30;
$multiline=0;
$delimiter=' ';
$result=GetOptions ('command=s' => \$command,"time" => \$time,"delimiter=s" => \$delimiter,"child=s" => \$child,"multiline" => \$multiline);
 
 
while (defined($line = <STDIN>)) {
chomp($line);
push @all_data,$line
}
 
$pm = new Parallel::ForkManager($child);
for $data (@all_data) {
# Forks and returns the pid for the child:
my $pid = $pm->start and next;
chomp($data);
$test=`ssh -q -o ConnectTimeout=5 $data '$command'`;
chomp($test);
#$test =~ s/\n/ /g;
 
if ($multiline ne '0')
{
my @lines = split /\n/, $test;
foreach my $line (@lines) {
print "$data$delimiter$line\n";
}
}else
{
print "$data$delimiter$test\n";
}
 
 
 
 
$pm->finish; # Terminates the child process
}
 $pm->wait_all_children;
$end = time();
if ($time eq '1')
{
print "\nTime taken was ", ($end - $start), " seconds\n\n" ;
#print "\n\n\n\ndone\n\n\n\n";
}

January 10, 2012

Ah. Clients.

Filed under: Geek,Humor — Tags: , — ecogeek @ 1:17 pm

A friend got this at work:

“THERE’S A PROBLEM WITH THE DATA!”

“Which data?”

“LOOK AT IT, IT’S WRONG”

“There’s a very large amount of data, is there something specific?”

“WHY ARE YOU BEING SO OBSTINATE”

November 3, 2011

Link for later

Filed under: Geek,Links — Tags: , — ecogeek @ 8:32 am

http://confreaks.net/videos/696-rubyconf2011-be-a-minecraft-modman-with-purugin

August 25, 2011

Useful Item

Filed under: Geek — Tags: — ecogeek @ 5:28 pm

Found this handy way to delete everything but a file or bunch of files with the same extension:

rm -r `find . -not -name "*.txt"`

May 21, 2011

Filed under: Geek,Home — Tags: , — ecogeek @ 6:08 pm
walnuts

Walnuts

August 2, 2010

New Camera Setting!

Filed under: Geek,Home — Tags: , — ecogeek @ 10:12 pm

So, I found a new setting on my camera that makes it easier to take HDR pics.  So without further ado, HDR Katy!

Katy HDR

July 15, 2010

New phone!

Filed under: Geek — Tags: — ecogeek @ 3:35 pm

Here is the first post from my new phone. It’s awesome and pics should come soon. I’m really digging swype. More to come!

Older Posts »

Powered by WordPress