Skip to content

Instantly share code, notes, and snippets.

View jeremyquinton's full-sized avatar

Jeremy Quinton jeremyquinton

View GitHub Profile
@jeremyquinton
jeremyquinton / gist:7598375
Created November 22, 2013 11:20
erl_crash_dump
=erl_crash_dump:0.1
Fri Nov 22 11:08:16 2013
Slogan: init terminating in do_boot ()
System version: Erlang R14B04 (erts-5.8.5) [source] [64-bit] [smp:4:4] [rq:4] [async-threads:30] [kernel-poll:true]
Compiled: Fri Dec 16 03:22:15 2011
Taints:
Atoms: 22020
=memory
total: 30735800
processes: 9097152
%%%
%% Generated by Chef
%%%
[
{rabbit, [
{tcp_listen_options, [binary, {packet,raw},
{reuseaddr,true},
{backlog,128},
{nodelay,true},
@jeremyquinton
jeremyquinton / replicatecacheissue
Last active December 19, 2015 02:49
Example to replicate issue 125
set_include_path(get_include_path() . PATH_SEPARATOR . '/vagrant/library');
include("/vagrant/library/Zend/Cache.php");
class Test
{
private function foobar($param1, $param2) {
return "foobar";
}
@jeremyquinton
jeremyquinton / gist:5884616
Last active December 19, 2015 02:39
Example which gives the correct out
$path = '/vagrant/library';
set_include_path(get_include_path() . PATH_SEPARATOR . $path);
include("/vagrant/library/Zend/Loader.php");
include("/vagrant/library/Zend/Db.php");
$db = Zend_Db::factory('Mysqli', array(
'host' => 'localhost',
'username' => 'root',