Github Account


Check out my github account at https://github.com/bahamas10.  Right now I don’t have much code on there, only a single repository for my various dot files.  As I write more code I’ll be pushing it up to github, in the works right now is a script to automatically rename mp3/flac files based on their artist/album/song tags.


Tags:

Puppet Management


Puppet from Puppet Labs is a utility for controlling multiple machines from a single point.  It allows for easy server roll outs, as well as keeping multiple servers in the same state.  I have a server dedicated for Linux KVM virtualization, and because of this I have spun up about 10 VM’s, so 10 individual Linux installations.  I use puppet to make sure that they all have the packages installed that I use on a daily basis, as well as a to make sure that anytime I make a change to my bash or zsh rc it gets populated out to all my servers. Also I store my public key in puppet, so any new server I provision will automatically be populated with it so I can easily SSH into it in a more secure manner.

My virtual servers:

dave@[nexus]:~/$ virsh list --all
 Id Name                 State
----------------------------------
 46 b-puppet             running
 47 b-ssh01              running
 48 codemaster           running
 49 frontend             running
 50 gradius              running
 51 gvoice               running
 52 ldap                 running
 53 ns1                  running
 54 overmind             running
 55 porthose             running
 56 redbull              running
 57 zfs-test             running
 58 skyevm               running
  - template_ubuntu-server-11.04-amd64 shut off

Using puppet I am able to control all of these virtual servers, as well as the virtual host itself, and the storage server that backs it. When I spin up a VM now, all I need to do is install the puppet client and point it to my puppet server and it pulls in the necessary configs to make that VM ready to use.

Puppet Modules:

dave@[overmind]:/etc/puppet/modules/$ ls -1
bwm_ng/
htop/
mini_httpd/
motd/
ntp/
puppet/
users/
vim/

When a new server is provisioned, puppet will insure that some of my favorite packages like htop, bwm-ng, and vim is installed. I also have a module called ‘motd’ that will allow me to easily control the /etc/motd.tail file using the power of puppet templates. NTP is also a good package that I install to make sure that all new servers are synced on the time, so there are no discrepancies in that. Another thing that is key here is I push out the puppet client configs, which will take the puppet client from a default installation, to one that is set to work with puppet in my environment.


Nginx + Apache


This update was in the works for a couple of weeks now, but just a couple of minutes ago I finally pulled the switch, and switched my webserver over to nginx as a reverse proxy for Apache.  Nginx can serve up static content faster than you can blink, so that is why it is the first responder to all web requests on 80 and 443.  I have a regex line that looks for static content and tells nginx to deliver it without hitting Apache.  If the request does not match this regex it will simply be forwarded to Apache to handle it like a normal request.

This update has allowed me to move my webserver from a physical host with 8GB of ram and 2 Intel Xeon processors to a Virtual Machine with only 2 virt cores and 2GB of ram.  Putting my server under a stress test I see that I can’t max out the 2 cores, or get the ram to go above 500mb, whereas with the old machine I could max out all 4 cores and get the ram up to 4-5GB’s used.

Static Content Regex

location ~* ^.+\.(png|jpeg|jpg|gif|css|js|ico|txt|swf|zip|rar|html|htm|pdf|flv|mov|mp3|m4a|woff|eoff)$

Atlas Shrugged Part 1 — See it!


I went to see Atlas Shrugged on the Friday it came out and the Saturday after! The movie itself was absolutely amazing, completely faithful to the book and produced exceptionally well for being an independent film.

The casting was done very well, all of the characters in the movie matched up with how I pictured them from reading the book. The acting was great, and the John Galt line making its first run was an amazing scene paralleling the accomplishment of getting Atlas Shrugged on the big screen!

Definitely go see the movie if you haven’t already!


Tags: , ,

CR48

I think about how my macs battery can’t last a whole day at school… and all i really use it for is terminal for ssh, and full screen chrome.. i really wish i got a cr-48 netbook.. it would have fit my needs perfectly!


Tags: , ,

Sed 1-liners

Check out this text document of sed one liners, i’m mirroring it on this website. (thanks for alex levinson for sitting on my couch… where all sed wizardry happens).

http://www.daveeddy.com/sed1line.txt


Tags: , ,

New Business Cards

This is the design I have made for my new business cards.  I made them using Apple’s Pages, and am getting them printed from http://vistaprint.com.  The cards cost me a grand total of (after shipping and tax) $60.00 for 1,000 business cards… which is a LOT of business cards!  I orded them a week ago, and according to UPS should be arriving this weekend!  Click on the designs to see a high resolution version.


Ampache iPhone App

For an iPhone development class I took in the fall I began developing an iPhone Ampache Client. It was for my final project, so what you have here is the result of me learning objective-c and cocoa touch, and in 10 weeks coming up with this app from scratch.

You can check out a page with all of the details of this application and the source code at http://www.daveeddy.com/iphone.  I have released this project under the GNU GPLv2 in hopes that somebody might pick this project up, as I have ceased development on it after my class was over.  If nobody decides to pick it up, I still hope that someone can at least benefit/learn from my code.


Tags: , ,

HTML5 Canvas

I just updated daveeddy.com to include some basic particle effects in the header using the HTML5 canvas! Right now, I have the canvas sitting below the header (a lower z-index) and have it generate three random particles to just float around the screen. This will gracefully degrade if the users browser does not support canvas, as nothing will show in its place.


Tags: , ,

DNA by BEING

Check out this video from the band BEING! I just found them a couple days ago and they are creeping their way up to my top played on last.fm!


© Copyright 2012 Dave Eddy
Design by: styleshout | Colourise by: Theme Lab and Best Linux Web Hosting
Heavily modified by Dave Eddy

Powered by WordPress | Valid CSS | XHTML