MySQL/MariaDB tuning

Connect to UNIX socket in PHP: When the host name is set to „localhost“, then the connection to the server is made thru a domain socket by default. Check following parameters in /etc/mysql/my.cnf: max_connections table_open_cache thread_stack read_buffer_size join_buffer_size sort_buffer_size key_buffer_size Weiterlesen…

Nginx Server tuning

test page: https://gtmetrix.com/ CACHE!!! https://www.digitalocean.com/community/tutorials/how-to-implement-browser-caching-with-nginx-s-header-module-on-ubuntu-16-04 https://codex.wordpress.org/Nginx let google host jquery https://www.nginx.com/blog/9-tips-for-improving-wordpress-performance-with-nginx/ https://docs.nextcloud.com/server/12/admin_manual/configuration_server/server_tuning.html#enable-php-opcache Add those options somewhere in /etc/php/7.0/cli/php.ini and /etc/php/7.0/fpm/php.ini   Nginx and PHP-FPM Configuration and Optimizing Tips and Tricks http2 server push: https://www.nginx.com/blog/nginx-1-13-9-http2-server-push/ use unix sockets where possible: http://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_pass unix Weiterlesen…

Run launchd script at login (macOS)

First of all create your bash script and place it somewhere. Next think of a name in the following reverse domain notation com.mycompanyname.mydepartment.mytaskname.plist and create the property list file (.plist) with the following content: Now place com.mycompanyname.mydepartment.mytaskname.plist in ~/Library/LaunchAgents and Weiterlesen…