Technical information on this site may be out of date : no updates since 2015

Ubuntu Mysql Root password reset (init file not found)

October 9, 2015 , posted under mysql

If you don’t use the mysql root account very often and change passwords reasonably frequently you may (like me) find that you no longer know the mysql root password on a dev box.

The mysql site has a reasonable guide here https://dev.mysql.com/doc/refman/5.0/en/resetting-permissions.html#resetting-permissions-unix

But there always seems to be something additional, this time for me it was apparmor preventing mysql from reading my reset file

Read More…

git stash save message

March 18, 2015 , posted under git

git stash is a great way to save work switch branch and then get back your half completed work from earlier

But I work on many projects, am often playing around with something, get pulled onto the next thing - and I often have stashed work kicking around

By default git stash saves the work but the git list just gives some id for each stash like

Read More…

Puppet vs Ansible

March 13, 2015 , posted under puppet ansible

Some thoughts - I’ve used puppet for a while and ansible more recently.

Ansible is easier to get started with

Puppet sequencing can be hard - and occasionally you get bugs appearing in odd places where there was a dependency that you hadn’t noticed - but things happened to work OK until some change

Read More…

SSL problems in Jmeter and Java 1.7

March 11, 2015 , posted under jmeter java testing

When using jmeter on an ssl enabled site I was seeing an error

SSL handshake alert: unrecognized_name error

But I’d read that since jmeter version 2.4 ssl should work fine

It turns out that Java 7 introduced a feature (SNI support) and can trigger this error in some circumstances.

As workaround you can disable this feature by setting the property jsse.enableSNIExtension to false.

and run jmeter like

Read More…

Local yum cache repo

March 3, 2015 , posted under yum offline

When I’m working on ansible or docker with machine images that get rebuilt regularly it’s a pain waiting for slow downloads

Also if I want to work on teh train

I’m working on a process to setup a local repo with the stuff that I need

This script downloads the rpms I have installed

Read More…

First Steps with Ansible and Docker

February 18, 2015 , posted under Ansible Docker devops

I’ve been using puppet and vagrant for a while, due to client choices we’re switching to ansible which I’m less familiar with - and Docker has been on my to learn list for a while.

I love vagrant - being able to bring up a VM locally that matches the production servers to a good degree is just brilliant, and being able to repeat deploys is invaluable in testing process.

Read More…

Git Integration branch based workflow

February 16, 2015 , posted under git Version Control

The branching strategy I’ve found most effective and flexible is to use one branch per release version that is used for integration and feature branches off these for everything else.

It’s hard to visualise and I’ve tried drawing graphs but once I build in enough features to make the graph meaningful it is no longer easy to interpret.

Read More…