Skip to content

Instantly share code, notes, and snippets.

View lhotari's full-sized avatar

Lari Hotari lhotari

View GitHub Profile
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;
---
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
@lhotari
lhotari / pre-push
Created April 14, 2014 12:28
git pre-push hook script to prevent unintentional force pushs
#!/bin/bash
remote="$1"
url="$2"
z40=0000000000000000000000000000000000000000
IFS=' '
while read local_ref local_sha remote_ref remote_sha
do
if [ "$local_sha" = $z40 ]