Skip to content

Instantly share code, notes, and snippets.

View zipkid's full-sized avatar
💭
Eating 🍪

Stefan Goethals zipkid

💭
Eating 🍪
View GitHub Profile
@zipkid
zipkid / gist:2215319
Created March 27, 2012 12:02
Vagrant - postinstall.sh
#http://chrisadams.me.uk/2010/05/10/setting-up-a-centos-base-box-for-development-and-testing-with-vagrant/
date > /etc/vagrant_box_build_time
cat > /etc/yum.repos.d/puppetlabs.repo << EOM
[puppetlabs]
name=puppetlabs
baseurl=http://stahnma.fedorapeople.org/puppetlabs/6/products/\$basearch
enabled=1
gpgcheck=0
@zipkid
zipkid / gist:1779338
Created February 9, 2012 11:11
Jolokia 5 Minute Quickstart error when getting /jolokia/version
Feb 9, 2012 11:50:44 a.m. org.apache.catalina.core.ApplicationContext log
INFO: jolokia-agent: No access restrictor found at classpath:/jolokia-access.xml, access to all MBeans is allowed
Feb 9, 2012 11:50:44 a.m. org.apache.catalina.core.ApplicationContext log
SEVERE: StandardWrapper.Throwable
java.lang.ExceptionInInitializerError
at java.lang.Class.initializeClass(libgcj.so.10)
at java.lang.Class.newInstance(libgcj.so.10)
at org.jolokia.util.ServiceObjectFactory.createOrRemoveService(ServiceObjectFactory.java:137)
at org.jolokia.util.ServiceObjectFactory.readServiceDefinitionFromUrl(ServiceObjectFactory.java:96)
at org.jolokia.util.ServiceObjectFactory.readServiceDefinitions(ServiceObjectFactory.java:81)
@zipkid
zipkid / gist:764547
Created January 4, 2011 08:45
Mojolicious - redirect_to - flash issue...
Where does the flash disapear to!!!???
# Routes
my $r = $self->routes;
$r->namespace("Ds::Controllers");
# Normal route to controller
$r->route('/')->to('index#welcome' )->name('index');
$r->route('/login')->to('auth#index' )->name('login');
@zipkid
zipkid / gist:763885
Created January 3, 2011 20:09
Mojolicious test
calling /customers (a protected path)
-> login
-> Use of uninitialized value in warn at script/../lib/Ds/Controllers/Auth.pm line 18.
(line 18 is the warn in the sub index)
#routes
$r->route('/')->to('index#welcome' )->name('index');
$r->route('/login')->to('auth#index' )->name('login');
$r->route('/logout')->to('auth#logout' )->name('logout');