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
wget --no-cache -O- https://gist.githubusercontent.com/borestad/ddab79ed5d3412248eed/raw/f7050315505df4287bd54ca514b0a94c7f1848ff/install.sh | /bin/bash |
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
import time | |
import socket | |
import base64 | |
src = '192.168.1.2' # ip of remote | |
mac = '00-AB-11-11-11-11' # mac of remote | |
remote = 'python remote' # remote name | |
dst = '192.168.1.3' # ip of tv | |
app = 'python' # iphone..iapp.samsung |
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
/** | |
* Take screenshot when step fails. | |
* Works only with Selenium2Driver. | |
* | |
* @AfterStep | |
*/ | |
public function takeScreenshotAfterFailedStep($event) | |
{ | |
if (4 === $event->getResult()) { | |
$driver = $this->getSession()->getDriver(); |
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 | |
// ... | |
use Behat\MinkExtension\Context\MinkContext; | |
use Behat\Symfony2Extension\Context\KernelAwareInterface; | |
use Symfony\Component\HttpKernel\KernelInterface; | |
class FeatureContext extends MinkContext implements KernelAwareInterface | |
{ | |
private $kernel; |
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 | |
DOCKER_VERSION=1.9.0 | |
DOCKER_COMPOSE_VERSION=1.5.0 | |
# Console colors | |
red='\033[0;31m' | |
green='\033[0;32m' | |
yellow='\033[1;33m' | |
NC='\033[0m' |
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
fos_js_routing: | |
routes_to_expose: | |
- "^api_.*" # expose all routes with a name starting with api_ |
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 | |
/** | |
* @Author: Nathan Daly | |
* @Date: 17/04/15 | |
*/ | |
namespace AppBundle\Security; | |
use Doctrine\ORM\EntityManager; | |
use Symfony\Component\DependencyInjection\Container; |
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
Symfony/Component/OptionsResolver/Exception/MissingOptionsException.php | |
Symfony/Component/OptionsResolver/Exception/OptionDefinitionException.php | |
Symfony/Component/OptionsResolver/Exception/InvalidOptionsException.php | |
Symfony/Component/Serializer/Exception/InvalidArgumentException.php | |
Symfony/Component/Serializer/Exception/UnsupportedException.php | |
Symfony/Component/Serializer/Exception/UnexpectedValueException.php | |
Symfony/Component/Serializer/Exception/LogicException.php | |
Symfony/Component/Serializer/Exception/Exception.php | |
Symfony/Component/Serializer/Exception/RuntimeException.php | |
Symfony/Component/HttpKernel/Exception/MethodNotAllowedHttpException.php |
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 AppBundle\Command; | |
use Doctrine\Bundle\DoctrineBundle\Command\Proxy\DoctrineCommandHelper; | |
use Gedmo\Mapping\ExtensionMetadataFactory; | |
use Symfony\Component\Console\Command\Command; | |
use Symfony\Component\Console\Input\InputInterface; | |
use Symfony\Component\Console\Input\InputOption; | |
use Symfony\Component\Console\Output\OutputInterface; |
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 AppBundle\Form\DataTransformer; | |
use Symfony\Component\Form\DataTransformerInterface; | |
use Symfony\Component\Form\Exception\TransformationFailedException; | |
class DurationTransformer implements DataTransformerInterface | |
{ | |
/** |
OlderNewer