View DeltaStateMapDecorator.java
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; |
View PatchedHibernatePluginSupport.groovy
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 | |
* |
View add_modes_to_screen.sh
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'` |
View JsonWorkaroundBootStrap.groovy
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) | |
} |
View SyncSql.groovy
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
/* | |
* Copyright 2013 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 | |
* | |
* Unless required by applicable law or agreed to in writing, software |
View pre-push
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 | |
remote="$1" | |
url="$2" | |
z40=0000000000000000000000000000000000000000 | |
IFS=' ' | |
while read local_ref local_sha remote_ref remote_sha | |
do | |
if [ "$local_sha" = $z40 ] |
View manifest.yml
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
--- | |
applications: | |
- name: grailsorg-dev | |
memory: 2G | |
instances: 1 | |
path: site-2.3.0.war | |
timeout: 120 | |
buildpack: https://github.com/cloudfoundry/java-buildpack.git | |
env: | |
JAVA_OPTS: -Dinitial.admin.password=verysecure -Dload.fixtures=true -Dfile.encoding=UTF-8 -Duser.language=en -Duser.country=US |
View Test3Controller_jdk7.java
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
15:13:23.848 INFO jd.cli.Main - Decompiling ./build/classes/test/org/codehaus/groovy/grails/web/servlet/mvc/Test3Controller.class | |
package org.codehaus.groovy.grails.web.servlet.mvc; | |
import grails.artefact.Artefact; | |
import grails.artefact.Enhanced; | |
import grails.web.Action; | |
import grails.web.controllers.ControllerMethod; | |
import groovy.lang.Closure; | |
import groovy.lang.GroovyObject; | |
import groovy.lang.MetaClass; |
View jira_spam_cleaner.groovy
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 com.atlassian.jira.component.ComponentAccessor | |
import com.atlassian.jira.issue.IssueManager | |
import com.atlassian.jira.issue.MutableIssue | |
import com.atlassian.jira.issue.Issue | |
import com.atlassian.jira.issue.comments.Comment | |
import com.atlassian.jira.issue.comments.CommentManager | |
import com.atlassian.jira.issue.search.SearchException | |
import com.atlassian.jira.bc.issue.search.SearchService | |
import com.atlassian.jira.web.bean.PagerFilter | |
import com.atlassian.jira.user.ApplicationUser |
View delete_remote_issue_links.groovy
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 com.atlassian.jira.component.ComponentAccessor | |
import com.atlassian.jira.issue.IssueManager | |
import com.atlassian.jira.issue.Issue | |
import com.atlassian.jira.user.ApplicationUser | |
import com.atlassian.jira.user.ApplicationUsers | |
import com.atlassian.crowd.embedded.api.User | |
import com.atlassian.jira.issue.link.RemoteIssueLinkManager | |
def deleteRemoteIssueLinks(Issue issue) { | |
def applicationUser = ComponentAccessor.jiraAuthenticationContext.user |
OlderNewer