Skip to content

Instantly share code, notes, and snippets.

@SpOOnman
SpOOnman / output
Created December 19, 2013 13:12
Sonar debug output
This file has been truncated, but you can view the full file.
Started by user anonymous
[EnvInject] - Loading node environment variables.
Building in workspace /var/lib/jenkins/jobs/sonar-gerrit-plugin/workspace
Fetching changes from the remote Git repository
Fetching upstream changes from https://github.com/TouK/sonar-gerrit-plugin.git
Checking out Revision 170de847ed8830c77091df09c1ddf53423aabdf9 (origin/master)
Cleaning workspace
Resetting working tree
Parsing POMs
envs: _:/usr/bin/daemon, BUILD_CAUSE:MANUALTRIGGER, BUILD_CAUSE_MANUALTRIGGER:true, BUILD_DISPLAY_NAME:#10, BUILD_ID:2013-12-19_14-04-55, BUILD_NUMBER:10, BUILD_TAG:jenkins-sonar-gerrit-plugin-10, BUILD_URL:http://touk.touk.pl:8081/jenkins/job/sonar-gerrit-plugin/10/, CLASSPATH:, EXECUTOR_NUMBER:1, GIT_BRANCH:origin/master, GIT_COMMIT:170de847ed8830c77091df09c1ddf53423aabdf9, GIT_PREVIOUS_COMMIT:170de847ed8830c77091df09c1ddf53423aabdf9, GIT_URL:https://github.com/TouK/sonar-gerrit-plugin.git, HOME:/var/lib/jenkins, HUDSON_HOME:/var/lib/jenkins, HUDSON_SERVER_COOKIE:75f83a15a6d8a7e1, HUDSON_URL:http://touk.
@SpOOnman
SpOOnman / graphite-local-install.sh
Created July 9, 2013 14:02
How to install Graphite as a user on CentOS 5.5
#!/bin/bash
# How to install Graphite as a user on CentOS 5.5 (with neither internet access and root account)
# --------------------------------------------------------------------------------
# Tomasz Kalkosiński - refaktor.blogspot.com
#
# Graphite is a Scalable Realtime Graphing (http://graphite.wikidot.com/)
# This script is based on two excellent tutorials:
# http://community.webfaction.com/questions/10038/how-to-install-pycairo-in-python27-thanks
@SpOOnman
SpOOnman / RestChartSpec.groovy
Last active July 24, 2017 05:14
Howto keep session in HttBuilder with cookies
package eu.spoonman.specs.rest
import groovyx.net.http.ContentType
import groovyx.net.http.Method
import eu.spoonman.connectors.RestConnector
import spock.lang.Specification
import spock.lang.Shared
import spock.lang.Stepwise
@Stepwise
@SpOOnman
SpOOnman / Config.groovy
Created November 28, 2012 13:42
Use XMLs not groovy scripts with db migration plugin!
grails.plugin.databasemigration.updateOnStart = true
grails.plugin.databasemigration.updateOnStartFileNames = ["changelog.groovy"]
// grails.plugin.databasemigration.updateOnStartFileNames = ["changelog.xml"]
@SpOOnman
SpOOnman / RestJsonCatchController.groovy
Created November 21, 2012 14:15
Grails render as JSON catch
class RestJsonCatchController {
def grailsJson() {
render([first: 'foo', second: 5] as grails.converters.JSON)
}
def netSfJson() {
render([first: 'foo', second: 5] as net.sf.json.JSON)
}
}
@SpOOnman
SpOOnman / Book.groovy
Created October 18, 2012 10:40
Inconsistent Dependency Injection to domain classes with Grails
class Book {
def libraryService
String author
String title
int pageCount
Book() {
println("Finished constructor Book()")
}
@SpOOnman
SpOOnman / Signature.groovy
Created August 16, 2012 13:22
How to user mocks in controller tests
Tweet readTweet(String id) throws TwitterError
@SpOOnman
SpOOnman / BuildConfig.groovy
Last active October 7, 2015 13:57
Hibernate Envers with Grails 2.1.0
plugins {
// add this if you've packaged a plugin by yourself
runtime ":envers:0.3-SNAPSHOT"
// add this if you want to use plugin from Grails central repository
runtime ":envers:2.1.0"
}
@SpOOnman
SpOOnman / Person.groovy
Created July 12, 2012 08:12
Groovy private fields and methods are not private
class Person {
private String name
public String surname
private Person() {}
private String signature() { "${name?.substring(0, 1)}. $surname"}
public String toString() { "I am $name $surname"}
}
@SpOOnman
SpOOnman / spoonman.xml
Created September 8, 2011 09:41
My IntelliJ IDEA color scheme
<?xml version="1.0" encoding="UTF-8"?>
<scheme name="spoonman" version="1" parent_scheme="Default">
<option name="LINE_SPACING" value="1.0" />
<option name="EDITOR_FONT_SIZE" value="12" />
<option name="EDITOR_FONT_NAME" value="DejaVu Sans Mono" />
<colors />
<attributes>
<option name="ABSTRACT_CLASS_NAME_ATTRIBUTES">
<value>
<option name="FOREGROUND" value="141496" />