This file contains hidden or 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 | |
/** | |
* PHPUnit test suite available at: | |
* https://gist.github.com/mylk/33e3d0e49152cf6b74362dc8a09b9d39 | |
*/ | |
/* | |
* Installation (Symfony): | |
* ======================= | |
* # services.yml |
This file contains hidden or 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 | |
/** | |
* Test suite for the UrlCampaignBuilderService at: | |
* https://gist.github.com/mylk/9a6fe3eaacb605b31aaa7808ac6e6dab | |
*/ | |
namespace Acme\AcmeBundle\Tests\Service; | |
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase; |
This file contains hidden or 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 | |
/* | |
* Installation (Symfony): | |
* ======================= | |
* # services.yml | |
* services: | |
* # ... | |
* acme.geoip: | |
* class: Acme\AcmeBundle\Service\GeoIpService |
This file contains hidden or 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 | |
/** | |
* Basic Intercom API wrapper, in case you don't want to use the official, | |
* or you don't meet the requirements (ex. your PHP is < 5.6) | |
* | |
* Official: | |
* https://packagist.org/packages/intercom/intercom-php | |
*/ | |
/* |
This file contains hidden or 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 | |
/* | |
* Installation (Symfony): | |
* ======================= | |
* # services.yml | |
* services: | |
* # ... | |
* acme.vat_checker: | |
* class: Acme\AcmeBundle\Service\VatCheckerService |
This file contains hidden or 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 Acme\AcmeBundle\Service; | |
class FileExtensionGuesserService | |
{ | |
/** | |
* Guesses the mime type of a file by raw binary or base64 encoded content | |
* and returns its file type. | |
* |
This file contains hidden or 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
# /etc/systemd/system/xvfb.service | |
[Unit] | |
Description=X virtual framebuffer | |
[Service] | |
Type=simple | |
User=root | |
ExecStart=/usr/bin/Xvfb :99 -ac |
This file contains hidden or 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
# /etc/systemd/system/selenium.service | |
# assumes selenium server and chromedriver exist in the following paths: | |
# /var/selenium/selenium-server-standalone-2.45.0.jar | |
# /var/selenium/chromedriver | |
[Unit] | |
Description=Selenium Standalone Server | |
Requires=xvfb.service | |
After=xvfb.service |
This file contains hidden or 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/sh | |
# /etc/init.d/Xvfb | |
# Do NOT "set -e" | |
# PATH should only include /usr/* if it runs after the mountnfs.sh script | |
PATH=/sbin:/usr/sbin:/bin:/usr/bin | |
DESC="X virtual framebuffer" | |
NAME=Xvfb | |
DAEMON=/usr/bin/$NAME |
This file contains hidden or 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/sh | |
# /etc/init.d/selenium | |
# assumes that selenium server and chromedriver exist in: | |
# /var/selenium/selenium-server-standalone-2.45.0.jar | |
# /var/selenium/chromedriver | |
# Do NOT "set -e" | |
# PATH should only include /usr/* if it runs after the mountnfs.sh script |