-
Open a browser
# start an instance of firefox with selenium-webdriver $browser_type = 'firefox' $host = 'http://localhost:4444/wd/hub'
$capabilities = array(\WebDriverCapabilityType::BROWSER_NAME => $browser_type);
| -- show running queries (pre 9.2) | |
| SELECT procpid, age(clock_timestamp(), query_start), usename, current_query | |
| FROM pg_stat_activity | |
| WHERE current_query != '<IDLE>' AND current_query NOT ILIKE '%pg_stat_activity%' | |
| ORDER BY query_start desc; | |
| -- show running queries (9.2) | |
| SELECT pid, age(clock_timestamp(), query_start), usename, query | |
| FROM pg_stat_activity | |
| WHERE query != '<IDLE>' AND query NOT ILIKE '%pg_stat_activity%' |
| <?php | |
| require __DIR__ . '/vendor/autoload.php'; | |
| use Symfony\Component\HttpFoundation\Session\Session; | |
| use Symfony\Component\HttpFoundation\Session\Storage\NativeSessionStorage; | |
| use Symfony\Component\HttpFoundation\Session\Attribute\NamespacedAttributeBag; | |
| $options = array( | |
| 'cookie_lifetime' => 123456, | |
| 'cookie_httponly' => true, |
| <?php | |
| use Doctrine\Common\DataFixtures\Executor\ORMExecutor; | |
| use Doctrine\Common\DataFixtures\Purger\ORMPurger; | |
| use Doctrine\DBAL\Migrations\AbstractMigration; | |
| use Symfony\Bridge\Doctrine\DataFixtures\ContainerAwareLoader as Loader; | |
| use Symfony\Component\Console\Output\ConsoleOutput; | |
| use Symfony\Component\DependencyInjection\ContainerAwareInterface; | |
| use Symfony\Component\DependencyInjection\ContainerInterface; |
| #!/bin/sh -e | |
| # This script will DESTROY /dev/xvdb and /dev/xvdc and remount them | |
| # for Docker temp and volume storage. | |
| # It is intended for EC2 instances with 2 ephemeral SSD instance stores | |
| # like the c3.xlarge instance type. | |
| service docker stop || true | |
| # Setup Instance Store 0 for Docker Temp | |
| # (set in /etc/default/docker) |
First of all, ensure you don't have any deprecated!
The Symfony documentation explains it well, but let's sum up:
$ composer require --dev symfony/phpunit-bridge)deprecation error handled| Run this command to install MG-CLI: | |
| sudo apt-get update && wget https://minergate.com/download/deb-cli -O minergate-cli.deb && sudo dpkg -i minergate-cli.deb | |
| to start miner (4 cores for BCN) use this command: | |
| minergate-cli -user <[email protected]> -bcn 4 | |
| Feel free to send some of your earnings to me: | |
| BTC (Don't attempt to send other coins to this address!): 17f77AYHsQbdsB1Q6BbqPahJ8ZrjFLYH2j |