This file contains 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.codehaus.groovy.grails.web.json.JSONObject | |
class JsonWorkaroundBootStrap { | |
def init = { servletContext -> | |
// activate workaround for GRAILS-10823 | |
println("activating workaround for GRAILS-10823 - use this only for Grails 2.3.3") | |
org.springframework.util.ReflectionUtils.findField(JSONObject, "useStreamingJavascriptEncoder").with { | |
accessible = true | |
set(null, false) | |
} |
This file contains 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/bash | |
# script for adding standard modes to beamer for presenting on linux | |
# use xrandr to find out screen name of external output port | |
# xrandr is in x11-xserver-utils package on debian/ubuntu | |
SCREENNAME=$1 | |
if [ -z "$SCREENNAME" ]; then | |
SCREENNAME=VGA-0 | |
fi | |
function addmode() { | |
xrandr --newmode `cvt $1 $2 |grep Modeline | sed -e 's/^Modeline //' | sed -e 's/\"//g'` |
This file contains 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
// src/groovy/grailspatch/PatchedHibernatePluginSupport.groovy | |
/* | |
* Copyright 2004-2005 the original author or authors. | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* |
This file contains 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 java.io.Serializable; | |
import java.util.ArrayList; | |
import java.util.Collection; | |
import java.util.HashMap; | |
import java.util.HashSet; | |
import java.util.LinkedHashMap; | |
import java.util.LinkedHashSet; | |
import java.util.Map; | |
import java.util.Set; |
NewerOlder