Skip to content

Instantly share code, notes, and snippets.

View markri's full-sized avatar

markri markri

  • Marco de Krijger web development
  • Dongen (Netherlands)
View GitHub Profile
### Keybase proof
I hereby claim:
* I am markri on github.
* I am mdekrijger (https://keybase.io/mdekrijger) on keybase.
* I have a public key ASD55fEoa6ZBEhsrVgh6D4HEE6iXjRJ05r1X9UMw6fyDfwo
To claim this, I am signing this object:
{
"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": [
{
"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": [
#!/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 September 22, 2015 14:36
Nagios RabbitMQ consumption check
#!/bin/env php
<?php
array_shift($argv);
function printUsage() {
echo "\n";
echo 'Nagios consumer check for RabbitMQ on localhost'."\n";
echo '-----------------------------------------------'."\n";
echo "\n";
<?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
<?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();