This is inspired by A half-hour to learn Rust and Zig in 30 minutes.
Your first Go program as a classical "Hello World" is pretty simple:
First we create a workspace for our project:
This is inspired by A half-hour to learn Rust and Zig in 30 minutes.
Your first Go program as a classical "Hello World" is pretty simple:
First we create a workspace for our project:
| #!/bin/bash | |
| for commit in "$@" | |
| do | |
| echo "# git log --oneline $commit^!" | |
| log=`git log --oneline $commit^!` | |
| echo "# $log" | |
| echo "# git diff $commit^!" | |
| git diff $commit^! | |
| done | 
| sudo update-alternatives --install /usr/bin/java-home java-home /usr/lib/jvm/java-7-oracle 0 | |
| ... rinse and repeat with all jdks on machine | 
| !/bin/bash | |
| start=start | |
| stop=stop | |
| cli=cli | |
| echo Execute [$1] | |
| if [ $1 == $start ]; then | |
| <plugin> | |
| <groupId>org.apache.tomcat.maven</groupId> | |
| <artifactId>tomcat7-maven-plugin</artifactId> | |
| <version>2.0</version> | |
| <executions> | |
| <execution> | |
| <id>tomcat-run</id> | |
| <goals> | |
| <goal>run</goal> | |
| </goals> | 
| curl http://repo.varnish-cache.org/debian/GPG-key.txt | sudo apt-key add - | |
| echo "deb http://repo.varnish-cache.org/ubuntu/ lucid varnish-3.0" | sudo tee -a /etc/apt/sources.list | |
| sudo apt-get update | |
| sudo apt-get install varnish | 
| import org.apache.xml.serialize.Method | |
| import org.apache.xml.serialize.OutputFormat | |
| import org.apache.xml.serialize.XMLSerializer | |
| import spock.lang.Specification | |
| import javax.xml.parsers.DocumentBuilder | |
| import javax.xml.parsers.DocumentBuilderFactory | |
| import org.dom4j.io.SAXReader |