Monday, February 17, 2014

My Favorite Bash Line

My favorite bash line?

SCRIPT_DIR=$(cd "$(dirname "$0")"; pwd)

This little line gives you the abs path of the file the line resides in, regardless of whether a relative or absolute path was used to call the script.

Sunday, February 16, 2014

Things You Can Do With Amazon Web Services (AWS)


  • Host a server for a really cpu intense game (like Natural Selection 2). ($0.15/hr)
  • Run a minecraft server. ($1/day or free with a micro instance)
  • Set up a server to test ldap via active directory
  • Host a hardcore JEE setup ($1/day)
  • Run a webserver (pennies per day)
  • Clone your server, test out an upgrade, switch the public facing IP to the new instance with no downtime.
  • Prototype your puppet scripts on 6 flavors of server operating systems.
  • Ditch your custom webhosting in favor of your platform, your way, probably for less than you're currently paying.
  • Buy a reserved instance for pennies on the dollar. (The cost of a medium instance drops from $45/mo to as low as $16/mo using a reserved instance.) No way rackspace.com can keep up with that...

The beautiful part of all this is that you're doing it on Amazon's storage and network infrastructure. Your stuff is just plain going to be fast, and issues like the game being slow for your buddy in California (because you're in New York) just go away.

Thursday, February 13, 2014

Revamp

I'm going to get this rolling again. The new focus of this blog will be tips, tricks, tidbits and tools that make my life easier.

Kicking-off the new micro-blogging  experience, here are a couple items to get acquainted with. Each one has made my life a LOT easier, and I hope they can do the same for you!

  1. IntelliJ IDEA (So badass, eclipse grovels in shame)
  2. Apache Servicemix (The right serverstack for modern applications (big claim? yes... yes it is.))
  3. Sikuli & Selenium 2 (Now we've done it... there's literally nothing that you can't automate.)
  4. Apache DS Studio (LDAP woes? This is the one-stop shop for LDAP troubleshooting and administration.)
  5. EC2 (Ready to get a public server? This is the place to do it.)
  6. Groovy (Scala? Java? Ruby? C#? No... use Groovy.)
  7. ORM (Ha! Just kidding. Never use it. It's cheap up front but a major pain in 2yrs.)
  8. Angular and Twitter Bootstrap (You haven't done web til you've done it with these.)