05/25/2018: tested with macOS Sierra High 10.12.6
08/04/2020: added @mayesa's suggestion to fix an exception with EventMachine 08/04/2020: tested with macOS Catalina 10.15.5
Install MailCatcher:
brew install ruby
sudo gem install mailcatcher
05/25/2018: tested with macOS Sierra High 10.12.6
08/04/2020: added @mayesa's suggestion to fix an exception with EventMachine 08/04/2020: tested with macOS Catalina 10.15.5
Install MailCatcher:
brew install ruby
sudo gem install mailcatcher
| /* | |
| |-------------------------------------------------------------------------- | |
| | Browser-sync config file | |
| |-------------------------------------------------------------------------- | |
| | | |
| | Please report any issues you encounter: | |
| | https://github.com/shakyShane/browser-sync/issues | |
| | | |
| | For up-to-date information about the options: | |
| | https://github.com/shakyShane/browser-sync/wiki/Working-with-a-Config-File | 
Example /etc/nginx/nginx.conf using FastCGI (e.g. to PHP-FPM) with FastCGI cache enabled. This will capture returned data and persist it to a disk based cache store for a configurable amount of time, great for robust full page caching.
Will need to create a directory to hold cache files, for the example given here that would be:
$ sudo mkdir -p /var/cache/nginxfastcgi
$ chown www-data: /var/cache/nginxfastcgiFor this configuration you can use web server you like, i decided, because i work mostly with it to use nginx.
Generally, properly configured nginx can handle up to 400K to 500K requests per second (clustered), most what i saw is 50K to 80K (non-clustered) requests per second and 30% CPU load, course, this was 2 x Intel Xeon with HyperThreading enabled, but it can work without problem on slower machines.
You must understand that this config is used in testing environment and not in production so you will need to find a way to implement most of those features best possible for your servers.
| function toJSON(node) { | |
| let propFix = { for: 'htmlFor', class: 'className' }; | |
| let specialGetters = { | |
| style: (node) => node.style.cssText, | |
| }; | |
| let attrDefaultValues = { style: '' }; | |
| let obj = { | |
| nodeType: node.nodeType, | |
| }; | |
| if (node.tagName) { | 
| server { | |
| listen 80; | |
| listen [::]:80; | |
| server_name domain.com; | |
| autoindex off; | |
| index index.php index.html; | |
| root /srv/www/domain.com/public; | 
| #!/bin/bash | |
| # No username or passwords in this script, you should use mysql_config_editor | |
| # to store it securely. The login-path in this script is set to "local-backup" so when you create | |
| # your .mylogin.cnf with the mysql-config-editor make sure it is set the same | |
| # See http://dev.mysql.com/doc/refman/5.6/en/mysql-config-editor.html | |
| # An example to create your config for a mysql user "backup": | |
| # shell> sudo mysql_config_editor set --login-path=local-backup --host=localhost --user=backup --password | |
| # The backup user in the mysql server needs these privileges: SELECT, RELOAD, SHOW DATABASES, REPLICATION CLIENT |