Apr
24
2014
Working with several Vagrant boxes in parallel can be tricky. So today I wrote a small shell script to help me here. It will
- start the VM (if not already running),
- Login into the VM via SSH,
- suspend the VM after exiting the VM (if you want)
Shell script:
#/bin/bash
if [ -f ./Vagrantfile ]
then
if vagrant status | grep -q "running ("
then
echo Box is already running
else
echo Starting box ...
vagrant up
fi
echo Login in ...
vagrant ssh
read -n1 -p "Suspend box ? [y,N]" doit
case $doit in
y|Y) vagrant suspend ;;
n|N) echo OK ;;
*) echo OK ;;
esac
else
echo No Vagrantfile found!
fi
no comments | posted in code, vagrant
Mar
12
2014
no comments | posted in code
Mar
10
2014
In the modern era, software is commonly delivered as a service: called web apps, or software-as-a-service. The twelve-factor app is a methodology for building software-as-a-service:
The Twelve-Factor App.
no comments | posted in code
Feb
28
2014
There are a lot of places (>5)to set the UTF-8 encoding for your maven project. But only one is important! So don't forget to set this in your maven parent pom:
<properties>
<project.build.sourceEncoding> UTF-8 </project.build.sourceEncoding>
</properties>
no comments | posted in code
Feb
24
2014
Git-Flow as a branching strategy for your Git Repositories:
Git-Flow.
I like !
no comments | posted in code
Feb
24
2014
static code analysis would have prevented this nightmare: Apple’s SSL/TLS bug.
no comments | tags: apple, code, QA, SSL, TLS | posted in code