Tiernan's Comms Closet

Geek, Programmer, Photographer, network egineer…

Monthly Archives August 2012

Understanding Storage Spaces in Windows 8 and Windows Server 2012

So, Windows Server 2012 and Windows 8 have both RTMed in the last couple of weeks and will be available to the public in the next month or so (September for Server, October for Client). If you are an MSDN Subscriber, you already have Client, and will (hopefully) get server in the next couple of weeks… Fingers crossed… Anyway, one of the interesting features i am waiting for is [Storage Spaces][2]. Tim Anderson’s Gadget Writing blog has some information on [how Storage Spaces works][1]. handy notes on what to do and what not to do.
[1]:http://gadgets.itwriting.com/1462-understanding-windows-8-storage-spaces-confusing-but-powerful.html
[2]:http://blogs.msdn.com/b/b8/archive/2012/01/05/virtualizing-storage-for-scale-resiliency-and-efficiency.aspx

Sublime Text 2 with Powershell

My new Favorite cross platform text editor is Sublime Text 2. It works on Windows, Mac OS and Linux, and i am very happy with it. My only problem is the path to start it is not exactly easy to type… So, with the help of PowerShell, my new favorite command line tool on Windows, i added an alias:

Set-Alias subl 'c:\program files\sublime text 2\sublime_text.exe'

I added this to my Microsoft.PowerShell_profile.ps1 file in Documents\WindowsPowerShell folder. If you don’t have one of these files, check out this Computer Performance.Co.UK post on Creating PowerShell profile files and then edit the file and add the line above… Now, I can edit files in PowerShell with Sublime Text 2 by typing:

subl filename

Happy days!

AutoScaling with Amazon

I have a few Amazon EC2 instances running on a project, and one of these instances was known as the Zombie Instance! Every time i killed it, it came back to life a few min later… I found out that i, at some point, set that instance to be in an AutoScaling group. Any time the instance died, Amazon would check and restart the instance. So, how did I kill this undead instance? Check out “Auto Scaling with Amazon EC2 II” on LLOVIZNA’s blog. They had the same issue i had (trying to kill the Auto Scaling group gives an error) and figured out how to do it. Handy stuff. Now the instance is dead, and hopefully it wont come back any time soon… Mind you, When AutoScaling works correctly, it can be very cool indeed!

My new Git Powered Site

So, this site is brought to you by GIT, Jekyll and Magic… here is how i did it…

  • I have a Linux VM running the site. Its an Ubuntu 12.04 server. On that i installed Jekyll.
  • I also have gitolite installed for personal git repos.
  • In the Git Repo for this site, under the hooks directory, I added a post-receive file which I got from here originally.
  • Apache is set to serve the directory that Jekyll produces… That’s what you are reading here.
  • If you are interested, you can find the code and config for this site on my github repo