Skip to content

Instantly share code, notes, and snippets.

View allardhoeve's full-sized avatar

Allard Hoeve allardhoeve

View GitHub Profile
@allardhoeve
allardhoeve / README.md
Last active December 28, 2015 07:29
Populate PERL5LIB when you have a directory full of Perl package repo's.

Usage

  1. put your libbyte-star-perl packages into ~/devel/byte/perl/;
  2. put this script in the same directory;
  3. then add the bash snippet to your ~/.bashrc: export PERL5LIB=$(~/devel/byte/perl/perl5lib)

I get autosplit errors

When you get Cannot find blaap/auto/Byte/Blaap/autosplit.ix errors, go to the library it is complaining about and run perl Makefile.PL && make.

@allardhoeve
allardhoeve / docker
Created September 4, 2013 11:08 — forked from onjin/docker
#!/bin/sh
# https://launchpad.net/~dotcloud/+archive/lxc-docker/+packages
### BEGIN INIT INFO
# Provides: docker
# Required-Start: $local_fs $remote_fs
# Required-Stop: $local_fs $remote_fs
# Should-Start: autofs $network $named alsa-utils pulseaudio
# Should-Stop: autofs $network $named alsa-utils pulseaudio
# Default-Start: 2 3 4 5
diff --git app/code/core/Enterprise/Search/Model/Adapter/Abstract.php app/code/core/Enterprise/Search/Model/Adapter/Abstract.php
index dbaa51c..3e2afd2 100644
--- app/code/core/Enterprise/Search/Model/Adapter/Abstract.php
+++ app/code/core/Enterprise/Search/Model/Adapter/Abstract.php
@@ -89,7 +89,7 @@ abstract class Enterprise_Search_Model_Adapter_Abstract
*/
protected $_defaultQueryParams = array(
'offset' => 0,
- 'limit' => 100,
+ 'limit' => Enterprise_Search_Model_Adapter_Solr_Abstract::DEFAULT_ROWS_LIMIT,
[user]
name = Allard Hoeve
email = [email protected]
[color]
ui = auto
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "diff"]
@allardhoeve
allardhoeve / check_shorewall
Last active December 18, 2015 21:59
check_shorewall
#!/bin/bash
# nagios check for shorewall
# checks the state file by getting the status of shorewall and checking the return output
# flip hess <[email protected]> - May 14 - 2013
STATE_OK=0
STATE_WARNING=1
STATE_CRITICAL=2
STATE_UNKNOWN=3
@allardhoeve
allardhoeve / local.xml
Created January 2, 2013 17:00
Sample Hypernode Magento XML config
<?xml version="1.0"?>
<config>
<admin>
<routers>
<adminhtml>
<args>
<frontName>admin</frontName>
</args>
</adminhtml>
</routers>
@allardhoeve
allardhoeve / summon-devils.html
Created September 4, 2012 16:08
All devils that can be summoned currently in Pathfinder Bestiaries I, II and II, Adventure Paths and the Book of the Damned series.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style type="text/css">
<!--
@media print {
.noPrint {
display:none;
}