Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env python
import salt.client
local = salt.client.LocalClient()
returns = local.cmd('web*.elcweb.ca', 'test.ping')
data = {}
data['services'] = {}
data['services']['webservers'] = returns
<?php
namespace Elcweb\LegacyBundle\Entity;
/**
* Class RawSQLTrait.
*/
trait RawSQLTrait
{
/**
<?php
namespace Elcweb\DoctrineExtensions\Loggable;
use Doctrine\Common\EventArgs;
use Doctrine\Common\EventSubscriber;
use Doctrine\Common\Persistence\ObjectManager;
use Elcweb\RabbitMqBundle\Producer\ProducerInterface;
use Elcweb\DoctrineExtensions\Entity\LogEntry;
use Gedmo\Exception\InvalidArgumentException;
@estheban
estheban / ELK.sh
Last active October 21, 2015 20:05 — forked from ricardo-rossi/ElasticSearch.sh
Installing ElasticSearch on Ubuntu 14.04
#!/bin/bash
### Java 8
sudo add-apt-repository -y ppa:webupd8team/java
sudo apt-get update
sudo apt-get -y install oracle-java8-installer
### USAGE
###
### ./ElasticSearch.sh 1.7 will install Elasticsearch 1.7
@estheban
estheban / gist:f5e057ac30b692bcbda2
Last active August 29, 2015 14:25
KeyValueStore Migration to Encrypted value
<?php
namespace Application\Migrations;
use Doctrine\DBAL\Migrations\AbstractMigration;
use Doctrine\DBAL\Schema\Schema;
use Symfony\Component\DependencyInjection\ContainerAwareInterface;
use Symfony\Component\DependencyInjection\ContainerInterface;
/**