Skip to content

Instantly share code, notes, and snippets.

Jon Skarpeteig Yuav

  • Norway
Block or report user

Report or block Yuav

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@Yuav
Yuav / build.xml
Last active Jun 22, 2016
Puppet module testing with acceptance tests in parallel using Apache Ant. Simplifies integration with Jenkins
View build.xml
<?xml version="1.0" encoding="UTF-8"?>
<project name="project" default="build">
<target name="build" depends="clean,bundle-install,syntax,lint">
<antcall target="spec" />
<antcall target="acceptance" />
</target>
<target name="clean">
<delete includeemptydirs="true" removeNotFollowedSymlinks="true" failonerror="false">
@gnutix
gnutix / DoctrineDbalStatementInterface.php
Created Dec 2, 2013
Mock Builder for Doctrine EntityManager / Connection mock objects.
View DoctrineDbalStatementInterface.php
<?php
namespace Mocks;
use Doctrine\DBAL\Driver\Statement;
/**
* Doctrine DBAL Statement implementing \Iterator.
*
* This class has been created because of a bug in PHPUnit Mock Objects.
@ollyg
ollyg / logstash.conf
Created Jun 20, 2012
logstash config and filter to fully parse a syslog message (PRI, timestamp, host)
View logstash.conf
filter {
# strip the syslog PRI part and create facility and severity fields.
# the original syslog message is saved in field %{syslog_raw_message}.
# the extracted PRI is available in the %{syslog_pri} field.
#
# You get %{syslog_facility_code} and %{syslog_severity_code} fields.
# You also get %{syslog_facility} and %{syslog_severity} fields if the
# use_labels option is set True (the default) on syslog_pri filter.
grok {
type => "syslog-relay"
You can’t perform that action at this time.