collideoscope

addicted to the future
 

To Git or Not to Git

October 8, 2012

tldr; you should probably git

Since I started using git and now GitHub in September, I have to say it is quite life changing. I’ve created a few repositories that I use for some configuration items and I found that it really allows me to tinker with my system and other things much easier. Previously I used to have countless tabs open in gedit/geany and struggle to keep whatever I was breaking in some sort of order. Now I can check out whatever I’m working on, break it, discard the changes and I’m back to a known state or if by some stroke of luck I get expected results, I check it in and commit. While I can’t manage to find the time to read Pro Git – its on the to do list, I’m having a blast learning git the hard way. Also, I should point out that git-cola is really helpful as it allows me to visualize my changes (I love it for repos that are not pushed to GitHub) which is perfect for the way I work.

Code or something like it

September 14, 2012

I’ve been using PowerShell quite a bit in the past few months for various tasks, such as mass Storage vMotion, snapshot reporting as well as some other tasks and have found it to be invaluable and I learn more every day. It reminds me of AppleScript, but much more useful. Since nearly everything MS related has cmdlets, it is worth learning and sharing. Lately, I’ve been wanting to learn Git for version control so I figured theres no better time to learn. I’ve started a GitHub repository that I plan on using to share my scripts and bits. I’ll most likely move my other “projects” into GitHub too as I continue to learn how to manage it. So without further ado here is the vm-powershell script repository and you can follow me (rabbitofdeath) too!

#! Testing

August 29, 2012

I just installed the latest testing version of Crunchbang (crunchbang-11-20120806-amd64) and the first thing that came to mind is polished. On my Thinkpad T61, this is considerably faster than the previous version. As far as customizations, I had to move the tint2 bar down to the bottom, kill any compositing (just not for me) upgrade Iceweasel via mozilla.debian.net and copy some configs over. All in all 2 hours of work and I’m back /home. I am trying something new though; I’ve decided to redo my partition layout for easier backups and upgrades later on:


160gb SATA Disk
/	10gb
swap	4gb
/home	15gb
/data	131gb

My only quibble is that Banshee still doesn’t work right and I can’t figure it out. That’s really the only problem, but minor since I’ve really started to enjoy mpd and ncmpcpp plus Sonata when I’m feeling clicky clicky.

After a 3 year love affair with Nokia…

August 17, 2012

After a 3 year love affair with Nokia (read: Symbian and Maemo) I’m back to Android – more specifically Cyanogenmod 9. My much loved N900 and N8 are collecting dust.

Happy Birthday Debian!

August 16, 2012

Happy birthday Debian! I’ve been using Debian for nearly 5 years and haven’t looked back.

RE: app.net

August 13, 2012

RE: app.net
Have you heard of (insert blog engine here) and RSS? Seems pretty open to me…

There’s nothing as permanent as a temporary solution

August 12, 2012

There’s nothing as permanent as a temporary solution.

I forget

Your definition of Open is different

July 6, 2012

Cisco recently pushed an update to their routers that required users to sign up for a privacy-crushing “cloud service” or forfeit management abilities on the router. This caused all sorts of outrage. Cisco quickly changed their privacy statement and is trying to appease concerns as detailed on their blog.

But the simple fact is that your definition of “open” is different from Cisco’s (not to mention Google, Microsoft and Apple among countless other vendors). The internet was built on the premise of free communication and exchange of ideas. It is the wild-wild-west it was designed to be. Cisco just wants your network to be “open” and thinks you should be ok with that.

I can see where Cisco is coming from; they saw an opportunity for possible add-on services and vigilant citizens of the internet caught this greedy and reckless shift in policy. I imagine that Cisco is going by the notion that people have “nothing to hide” which is completely irresponsible and a dangerous way of thinking. Living with the 21st century internet, consumers have to be vigilant of what services they consume as well as countless devices that may be mishandling private data without their knowledge. Your privacy is valuable. Hopefully Cisco learned a lesson.

VMware Snapshot reports

April 27, 2012

I’ve come up with this Windows PowerShell script to help identify virtual machines that have snapshots older than 1 day. It generates a CSV file and emails specified recipients. This is particularly handy in large VMware environments where snapshots can cause major havoc on datastore utilization. Enjoy!


# ==============================================================================================
# NAME: vmwaresnapreport.ps1
# AUTHOR: Eric Kiel erickielcollideoscopeorg
# DATE  : 4/27/2012
# COMMENT: This script will connect to a VMware Virtual Center server and report on VMs with snapshots
# that are older than 1 day.
# VERSION: 1.0 - Original Code
# USAGE: .\vmwaresnapreport.ps1
# Variables: 
# $vcenter - vCenter host name
# $vcenterdomain - domain that vCenter resides in; yourdomain.com
# $mailserver - SMTP Mail relay
# $email1 - Distribution list or email address to send report to
# $email2 - 2nd distribution list or email address for reporting
# REQUIREMENTS: VMware vSphere PowerCLI
# ==============================================================================================

#Initialize Variables
$vcenter = "YOUR VCENTER HOST NAME"
$vcenterdomain = "VCENTER DOMAIN"
$mailserver = "YOUR SMTP SERVER"
$email1 = "YOUR DISTRIBUTION LIST OR EMAIL ADDRESS"
$email2 = "DISTRIBUTION LIST 2 OR ANOTHER EMAIL ADDRESS"

# Enable VMware Snap-in
add-pssnapin VMware.VimAutomation.Core

$date = get-date -format MM-dd-yyyy
connect-viserver $vcenter
Get-VM | Get-Snapshot | Where { $_.Created -lt (Get-Date).AddDays(-1)} | select VM, Name, Description, Created, PowerState, SizeMB | export-csv $date-$vcenter-snapshots.csv -notypeinformation
send-mailmessage -from "$vcenter@$vcenterdomain" -to "$email1", "$email2" -subject "$vcenter Snapshot Report for $date" -attachment "$date-$vcenter-snapshots.csv" -body "Snapshot report for $vcenter generated on $date" -smtpserver $mailserver

Download vmwaresnapreport and rename to .ps1 to run with PowerShell.

reboot

April 4, 2012

Just over a year. That is far too long to let this site sit and go to waste. I’m in the process of cooking up some articles so look forward to them as I’ve learned a lot in the past year. I’ve moved all of my projects to erickiel.com so go check them out. I’m also working on an update to the OpenNote theme – look forward to better code handling as well as a darker theme that is easier on the eyes and inspired by Crunchbang. See you soon!

 
Powered by WordPress | Written by Eric Kiel | BY-NC-SA 3 | <3