This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
if [ "`git --git-dir="/path/to/your/repo/.git" log --pretty=%H ...refs/heads/master^ | head -n 1`" = "`git --git-dir="/path/to/your/repo/.git" ls-remote origin -h refs/heads/master |cut -f1`" ] | |
then | |
echo "Repo up to date" | |
else | |
echo "Updates available .. pull changes and do magic here" | |
fi | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* A Sitemap controller that automatically generates sitemap.xml for a grails website. | |
* | |
* Be sure to notice the controllerNamesToExclude and actionsToExclude lists | |
* | |
* References: | |
* http://stackoverflow.com/questions/3748125/xml-sitemap-in-grails | |
* http://stackoverflow.com/questions/2956294/reading-out-all-actions-in-a-grails-controller | |
* | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.vertx.java.core.Vertx | |
import org.vertx.java.core.http.HttpServer | |
class HttpServerTest { | |
Vertx vertx | |
HttpServer httpServer | |
HttpServerTest() { | |
vertx = Vertx.newVertx() |