This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Elcweb\LegacyBundle\Entity; | |
/** | |
* Class RawSQLTrait. | |
*/ | |
trait RawSQLTrait | |
{ | |
/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Application\Migrations; | |
use Doctrine\DBAL\Migrations\AbstractMigration; | |
use Doctrine\DBAL\Schema\Schema; | |
use Symfony\Component\DependencyInjection\ContainerAwareInterface; | |
use Symfony\Component\DependencyInjection\ContainerInterface; | |
/** |