/etc/mysql/mysql.conf.d/mysqld.cnf
skip_log_bin = 1
innodb_buffer_pool_size = 6G
innodb_log_buffer_size = 1G
innodb_log_file_size = 2G
| #! /bin/sh | |
| # /etc/init.d/mailhog | |
| ### BEGIN INIT INFO | |
| # Provides: mailhog | |
| # Required-Start: $remote_fs $syslog | |
| # Required-Stop: $remote_fs $syslog | |
| # Default-Start: 2 3 4 5 | |
| # Default-Stop: 0 1 6 | |
| # Short-Description: Start MailHog at boot time. | |
| # Description: Enable MailHog. |
| #! /bin/sh | |
| # /etc/init.d/mailhog | |
| ### BEGIN INIT INFO | |
| # Provides: mailhog | |
| # Required-Start: $remote_fs $syslog | |
| # Required-Stop: $remote_fs $syslog | |
| # Default-Start: 2 3 4 5 | |
| # Default-Stop: 0 1 6 | |
| # Short-Description: Start MailHog at boot time. | |
| # Description: Enable MailHog. |
| <?php | |
| declare(strict_types=1); | |
| namespace Tests\Core; | |
| use PHPUnit\Framework\Test; | |
| use PHPUnit\Framework\TestListener; | |
| use PHPUnit\Framework\TestListenerDefaultImplementation; | |
| use Symfony\Bundle\FrameworkBundle\Test\WebTestCase; |
| #https://www.vagrantup.com/docs/synced-folders/nfs.html | |
| ``` | |
| $enable_serial_logging = false | |
| config.vm.provider "virtualbox" do |v| | |
| v.customize [ | |
| "storagectl", :id, | |
| "--name", "SATA Controller", | |
| "--hostiocache", "on" | |
| ] |
// IMPORTANT - Disable the Doctrine SQL Logger
$manager->getConnection()->getConfiguration()->setSQLLogger(null);
while (($data = getData()) {
$iteration++;
$obj = new EntityObject();
$obj->setName('henry');
// Fill object...https://github.com/lebinh/ngxtop
ngxtop -l shared/some-access.log --no-follow
{% for label, flashes in app.session.flashbag.all %}
{% for flash in flashes %}
<div class="alert alert-{{ label }}">
{{ flash }}
</div>
{% endfor %}
{% endfor %}Wide open nginx CORS configuration CORS is a W3C working standard that currently has decent (but inconsistent) implementions in Firefox, Chrome and Safari. I use it primarily to test PhoneGap apps in regular browsers instead of testing the code in simulators. PhoneGap apps can skip the usual origin checks via configuration, but running a PhoneGap app takes more setup - which make it harder for designers to work with the app. Running apps in simulators or on actual devices also takes al lot more time that just reloading a browser and this annoys me.
To fix it, on your mac do:
emacs (or vim/vi/nano/etc) ~/.ssh/config
And then, write this: