Dotfiles madness
I've been doing alot of machine setup recently, both VM's and a new Mac. This has lead me to think about dotfiles once again, and also to consider using VIM much more. One other thing I've been thinking about doing for a while is using ZSH.
Github has a number of dotfile projects which should make doing this stuff a little bit easier. The idea being that you can clone a repository run a command or two and end up with a kick-ass ninja environment that will instantly make you more productive.
Of course the reality is somewhat different. For starters:
- which dotfile project do you choose
- how do you test out this environment
- how do you roll-back to your productive environment, when blingo-environment-0.2.7 kills you.
My answer to this - and its not pretty - is to use separate accounts to test the environments. However I still have to be able to migrate the environment I like to my main account when I'm finished, so its just not as simple as that.
VirtualBoxing
Been doing alot of this lately, some notes
Chmod files and directories
Find this really useful and always forget it.
find -type f -exec chmod 666 '{}' \; # change files
find -type d -exec chmod 777 '{}' \; # change directories
Working with Yum
As payment for my many sins, I have been forced to work with Centos and Yum recently. For development this is a fantastically sub-optimal combination with Centos repositories being years out of date and Yum being a slight pain. In addition I'm working in a heavily proxy'd environment.
Most of my problems are a result of my ignorance, so I'll stop moaning and document what I've learnt
New ruby project, with Git, RVM, Bundler and Ruby-Debug
Recently I've got into a nice groove using these tools on new ruby projects. I think of the following as a Koan, which I've practiced quite alot recently and which gives a nice environment to start working in.
The following is the a reasonably verbose version of this Koan.
Service Providers for Cucumber
Currently I am working on acceptance tests for front end applications that depend on back end services which don't exist ... yet? This means that I have a problem, I need my Cucumber features to create the data that the application will later retrieve. Later I need to test that the UI has retrieved the data and is displaying it.
RVM, Adding documentation to installed ruby
One challenge when running a number of rvm rubies and gemsets, is having access to the documentation for the gems in your current gemset.
New Rails Project using RVM
This is my approach for creating a new rails projects using rvm (and git). What I'm trying to do here is ensure that the repository contains everything required for a developer to work and has minimal environmental pre-conditions.
LVM Post Configuration
After manually setting up LVM I forgot to update /etc/fstab. This meant my drives weren't mounted on rebooting, which caused some worry!
Make Me Smile - Steve Harley and Cockney Rebel
[v1] [chorus] [v2] [chorus] [solo] [v3] [fill] [chorus] {Repeat from Fill to fade}
[Verse 1] || [Verse 2] || [Verse 3] ||
|| || ||
N.C. F C G F || N.C. F C G F || N.C. F C G F ||
You've done it all, you've broken every code || There's nothing left, all gone and run away || There ain't no more, you've taken everything ||
|| || ||
C G || C G || C G ||
And pulled the Rebel to the floor || Maybe you'll tarry for a while? || From my belief in Mother Earth ||
|| || ||
F C G F || F C G F || F C G F ||
You've spoilt the game, no matter what you say || It's just a test, a game for us to play || Can you ignore my faith in everything ||
|| || ||
C G || C G || C G ||
For only metal, what a bore || Win or lose, it's hard to smile || Cos I know what faith is and what it's worth ||
|| || ||
F C || F C || F C ||
Blue eyes, blue eyes || Resist, resist, || Away, away ||
|| || ||
F C G || F C G || F C G ||
How can you tell so many lies? || It's from yourself you have to hide || And don't say maybe you'll try ||
|| || ||
[Chorus] || [Chorus] || [Chorus] ||
=================================================================================================================================================================||
[Chorus} || [Fill] ||
|| ||
Dm F C G || F C ||
Come up and see me, make me smile || ooh-ooh la-la-la ||
|| F C ||
Dm F C G || ooh-ooh la-la-la ||
I'll do what you want, running wild || G ||
|| Oooooooooaaaaaah ||
[Guitar Solo :] || ||
(The Chords are F /Em/F /Am/ Em/Em/G /G / Dm/F /C /G / Dm/F /C /G / || ||
|| ||
=================================================================================================================================================================||
[SOLO]
(No Chord) F Em F Am Em Em G G
E|----------------|----------------|--------------|-----------------|--------|-----------|--------------|------------12-12-12-|--12-13-15--|
B|----------------|----------------|--------------|-----------------|--------|-----------|------8-10-10-|-10-8/10\8-----------|------------|
G|----------------|----------------|--------------|-----------------|--------|-----------|--7-9---------|---------------------|------------|
D|----------7-5-7-|-7-5-7-7--5-7-5-|-5--5-3-2-3-5-|-3-2-0-3---2-0-0-|0-------|-------5-7-|-9------------|---------------------|------------|
A|----------------|----------------|--------------|-----------------|--3-3---|---5/7-----|--------------|---------------------|------------|
E|----------------|----------------|--------------|-----------------|--------|-----------|--------------|---------------------|------------|
Dm F C G Dm F C G G (Stop dead)
E|-15...13-12-|-13-12-------------|--------------------|--------------------|-13-12-----------------|------------------|-----------|---------------|-----------|
B|------------|-------13-13-12----|--------------------|--------------------|-------14-13-12/13\12--|------------------|-----------|---------------|-----------|
G|------------|----------------14-|-12--12-10-9-10-12--|-12-10-9------------|-----------------------|-14-12-10-9-10-12-|-12...10-9-|-7-5\4/5-5-4-0-|-0---------|
D|------------|-------------------|--------------------|---------12-10-9-12-|-----------------------|------------------|-----------|---------------|-----------|
A|------------|-------------------|--------------------|--------------------|-----------------------|------------------|-----------|---------------|-----------|
E|------------|-------------------|--------------------|--------------------|-----------------------|------------------|-----------|---------------|-----------|