Skip to content

Instantly share code, notes, and snippets.

markri markri

  • Netvlies
  • Breda (Netherlands)
Block or report user

Report or block markri

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
View metadata.json
{
"issues_url": null,
"name": "mycompany-composer",
"license": "MIT",
"author": "markri",
"project_page": null,
"summary": "Dependency management for puppet modules",
"source": "",
"version": "0.1.0",
"dependencies": [
View metadata.json
{
"issues_url": null,
"name": "mycompany-composer",
"license": "MIT",
"author": "markri",
"project_page": null,
"summary": "Dependency management for puppet modules",
"source": "",
"version": "0.1.0",
"dependencies": [
View puppet_modulel
#!/usr/bin/env python
import json
import argparse
import sys
import os
import subprocess
parser = argparse.ArgumentParser(description='Add puppet module to metadata.json')
parser.add_argument('--version', nargs="?", default="latest")
@markri
markri / check_rabbitmq_consumption.php
Created Sep 22, 2015
Nagios RabbitMQ consumption check
View check_rabbitmq_consumption.php
#!/bin/env php
<?php
array_shift($argv);
function printUsage() {
echo "\n";
echo 'Nagios consumer check for RabbitMQ on localhost'."\n";
echo '-----------------------------------------------'."\n";
echo "\n";
View app.php
<?php
require_once __DIR__.'/../app/bootstrap.php.cache';
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
$request = Request::createFromGlobals();
// Socket to talk to server
View 0mq.php
<?php
require_once __DIR__.'/../app/bootstrap.php.cache';
require_once __DIR__.'/../app/AppKernel.php';
require_once __DIR__.'/../app/AppCache.php';
use Symfony\Component\HttpFoundation\Request;
// Boot Kernel
$kernel = new AppKernel('prod', false);
$kernel->loadClassCache();
You can’t perform that action at this time.