Instantly share code, notes, and snippets.

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")
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();