Tag unix

Git branch, status and colour in your prompt guide

I use git via the terminal and not through UI tools (though I do use Sourcetree to understands the flow of commits), and I recently found a very helpful change for my prompt: It's turned out to be really helpful and not difficult to set...

Gerrit survival guide

At work, we use gerrit. It's different to git and to github, and we didn't get the right kind of training on howto use it. This is a self-assembled survival guide. If you can articulate the differences between a merge and a rebase then...

Finding a server in a datacentre

At work, we're in the process of moving datacentres and some of my (extensive) monitoring needs to be updated. In particular, I have a monitor on Hadoop jobs which looks for job names of a specific pattern and posts them to a TeamUp...

Tidying up build server workspaces

You're not going to want to do this - but if you have to do it ... I have a job that needs 200+ GB of disk to run. I have build servers which do have that kind of space, but as they are shared servers, other jobs can take some ...

Gawking out

I've been processing log files recently to see how a live system is being used. When you have millions of hits daily, you need these processors to be fast. Today the best way is to have your log files shipped over onto a Hadoop cluster...

"grep -o" - really quite useful

One really quite useful command is “grep -o” - it allows you to fire off something like this: grep -o "Location supplier=\"\w*\"" locations.xml And the output will be the phrases matching the regular expressions that start with...

Piping content through SSH

Thanks to http://www.contentwithstyle.co.uk/content/4-ssh-config-tips-for-faster-remote-working/ I can avoid creating files which need to be scp’d: I can pipe the content directly: local$ cat localfile.txt | ssh remote "cat - >>...

Colloquy demystifying JIRA references

The BBC’s Forge engineering team uses an IRC channel to hold meetings. It allows our team to not bother about exactly where everyone is - some folks work from home, people are (mostly) in the office, but can be in different parts of our...

Running stunnel at startup

You might want your stunnels to be running all the time - and to start automatically when you log in. Here’s how: get your stunnel working. You’ll need to fix your certs, choose the correct ports, and all that yourself. write a script...