Skip to content

Instantly share code, notes, and snippets.

@berinle
berinle / config.log
Created June 17, 2011 14:06
Error encountered while using brew to install wget
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by wget configure 1.12, which was
generated by GNU Autoconf 2.63. Invocation command line was
$ ./configure --disable-debug --prefix=/usr/local/Cellar/wget/1.12 --disable-iri
## --------- ##
## Platform. ##
@berinle
berinle / brewdoctor.log
Created June 17, 2011 14:22
brew doctor for wget error
We couldn't detect gcc 4.2.x. Some formulae require this compiler.
We couldn't detect gcc 4.0.x. Some formulae require this compiler.
/usr/bin is in your PATH before Homebrew's bin. This means that system-
provided programs will be used before Homebrew-provided ones. This is an
issue if you install, for instance, Python.
Consider editing your .bashrc to put:
/usr/local/bin
@berinle
berinle / .gitignore_global
Created June 22, 2011 14:10
Global .gitignore to apply for all projects
# Add the contents of this file to ~/.gitignore_global
# Also, run 'git config --global core.excludesfile ~/.gitignore_global' on the machine or else it wouldn't be picked up!
# Reference http://help.github.com/ignore-files/
# Compiled source #
###################
*.com
*.class
@berinle
berinle / gist:1487328
Created December 16, 2011 18:38
Textmate 2 (custom bundles)
cd ~/Library/Application\ Support
mkdir -p Avian/"Pristine Copy"/Bundles
cd Avian/Pristine\ Copy/Bundles
#clone groovy bundle
git clone https://github.com/textmate/groovy.tmbundle.git
#clone grails bundle
git clone https://github.com/textmate/groovy-grails.tmbundle.git
@berinle
berinle / gist:1561991
Created January 4, 2012 20:33
GeDA flattened transformation (limitation)
class A {
String name;
List<B> bees;
}
class B {
String name;
Integer foo;
}
@berinle
berinle / gist:1587991
Created January 10, 2012 09:09
ehcache warnings
03:50:52,314 WARN [net.sf.ehcache.distribution.RMIAsynchronousCacheReplicator] Unable to send message to remote peer. Message was: java.io.EOFException
net.sf.ehcache.CacheException: java.io.EOFException
at net.sf.ehcache.store.disk.DiskStorageFactory.retrieve(DiskStorageFactory.java:938)
at net.sf.ehcache.store.disk.Segment.decode(Segment.java:167)
at net.sf.ehcache.store.disk.Segment.put(Segment.java:444)
at net.sf.ehcache.store.disk.DiskStore.put(DiskStore.java:475)
at net.sf.ehcache.store.FrontEndCacheTier.put(FrontEndCacheTier.java:221)
at net.sf.ehcache.Cache.putInternal(Cache.java:1492)
at net.sf.ehcache.Cache.put(Cache.java:1417)
at net.sf.ehcache.distribution.RMICachePeer.put(RMICachePeer.java:177)
@berinle
berinle / gist:1588037
Created January 10, 2012 09:21
ehcache (disk overflow turned off)
"Thread-3" prio=6 tid=0x04858c00 nid=0x19bc waiting on condition [0x081cf000]
java.lang.Thread.State: WAITING (parking)
at sun.misc.Unsafe.park(Native Method)
- parking to wait for <0x15fe9cd0> (a java.util.concurrent.locks.ReentrantReadWriteLock$NonfairSync)
at java.util.concurrent.locks.LockSupport.park(LockSupport.java:156)
at java.util.concurrent.locks.AbstractQueuedSynchronizer.parkAndCheckInterrupt(AbstractQueuedSynchronizer.java:811)
at java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireQueued(AbstractQueuedSynchronizer.java:842)
at java.util.concurrent.locks.AbstractQueuedSynchronizer.acquire(AbstractQueuedSynchronizer.java:1178)
at java.util.concurrent.locks.ReentrantReadWriteLock$WriteLock.lock(ReentrantReadWriteLock.java:807)
at net.sf.ehcache.store.chm.SelectableConcurrentHashMap$MemoryStoreSegment.remove(SelectableConcurrentHashMap.java:370)
@berinle
berinle / gist:1760796
Created February 7, 2012 17:16
Git tips: creating and applying a patch avoiding white space issues
#create a commit patch, ignoring all white space issues
g format-patch -w -b --ignore-space-at-eol -o /my/patch/destination -1
#apply a patch, ignoring all white space issues
g am --ignore-space-change --ignore-whitespace --whitespace=nowarn
@berinle
berinle / gist:2815968
Created May 27, 2012 21:30
git aliases
## custom aliases
alias gll="git log --graph --pretty=format':%C(yellow)%h%Cblue%d%Creset %s %C(white) %an, %ar%Creset'"
alias glol="git log --pretty=oneline --abbrev-commit --graph --decorate"
alias s="git status --short"
alias d="git diff"
alias gup="git smart-pull"
alias gm="git smart-merge"
alias gsl="git smart-log"
@berinle
berinle / gist:3048073
Created July 4, 2012 16:07
Grails error
2012-07-04 12:04:33,544 ERROR org.apache.catalina.core.ContainerBase.[Tomcat].[localhost].[/spring-social-showcase].[gsp]:271 Servlet.service() for servlet [gsp] in context with path [/spring-social-showcase] threw exception
java.lang.IllegalStateException: No thread-bound request found: Are you referring to request attributes outside of an actual web request, or processing a request outside of the originally receiving thread? If you are actually operating within a web request and still receive this message, your code is probably running outside of DispatcherServlet/DispatcherPortlet: In this case, use RequestContextListener or RequestContextFilter to expose the current request.
at org.springframework.web.context.request.RequestContextHolder.currentRequestAttributes(RequestContextHolder.java:131)
at org.codehaus.groovy.grails.web.util.WebUtils.retrieveGrailsWebRequest(WebUtils.java:651)
at org.codehaus.groovy.grails.plugins.springsecurity.AnnotationFilterInvocationDefinition.determineUrl(AnnotationFilterIn