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
| CREATE TABLE large_test (num1 bigint, num2 double precision, num3 double precision); | |
| INSERT INTO large_test (num1, num2, num3) | |
| SELECT round(random()*10), random(), random()*142 | |
| FROM generate_series(1, 20000000) s(i); | |
| EXPLAIN (analyse, buffers) | |
| SELECT num1, avg(num3) as num3_avg, sum(num2) as num2_sum | |
| FROM large_test | |
| GROUP BY num1; |
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
| #user nobody; | |
| #Defines which Linux system user will own and run the Nginx server | |
| worker_processes 1; | |
| #Referes to single threaded process. Generally set to be equal to the number of CPUs or cores. | |
| #error_log logs/error.log; #error_log logs/error.log notice; | |
| #Specifies the file where server logs. |
If you want to run it on phantomjs (a headless browser) you can add this profile to your behat.yml and you need phantomjs >= 1.8.0
phantomjs:
extensions:
Behat\MinkExtension\Extension:
base_url: http://dev.local
goutte: ~
selenium2:
wd_host: "http://localhost:8643/wd/hub"
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 | |
| use Doctrine\ORM\Mapping as ORM; | |
| use Doctrine\Common\Collections\ArrayCollection; | |
| /** | |
| * @ORM\Entity() | |
| * @ORM\Table(name="user") | |
| */ | |
| class User |
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 Widop\Mink\Extension; | |
| /** | |
| * Dictionary to manage popups. | |
| * | |
| * @author Benjamin Lazarecki <benjamin.lazarecki@gmail.com> | |
| */ | |
| trait PopupDictionary |
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 | |
| $str = str_repeat('*!', 10); | |
| $start = microtime(true); | |
| for ($i = 0; $i < 100000; $i++) { | |
| substr($str, 0, 1); | |
| } |
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/bash | |
| # Put this in ~/.kde/Autostart/ssh-agent.sh | |
| export SSH_ASKPASS=/usr/bin/ksshaskpass | |
| /usr/bin/ssh-add |