Skip to content

Instantly share code, notes, and snippets.

@berinle
berinle / cheats
Created March 5, 2014 16:30
Digital Ocean + Dokku Cheats
== Deploying on digital ocean with the dokku image
### Read this great article
https://www.andrewmunsell.com/blog/dokku-tutorial-digital-ocean
### Make sure you update the buildstep *on the remote box* by doing this:
See https://github.com/progrium/dokku#upgrading[Uprading dokku set up]
====
@berinle
berinle / troubleshooting-deis
Created July 20, 2014 22:04
Troubleshooting deis
❯ fleetctl --version
fleetctl version 0.5.0
❯ make run
Job deis-router.1.service loaded on ece0269d.../172.17.8.100
Job deis-builder-data.service loaded on ece0269d.../172.17.8.100
Job deis-database-data.service loaded on ece0269d.../172.17.8.100
Job deis-logger-data.service loaded on ece0269d.../172.17.8.100
Job deis-registry-data.service loaded on ece0269d.../172.17.8.100
fleetctl --strict-host-key-checking=false load registry/systemd/deis-registry.service logger/systemd/deis-logger.service cache/systemd/deis-cache.service database/systemd/deis-database.service
@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