See how a minor change to your commit message style can make you a better programmer.
Format: <type>(<scope>): <subject>
<scope> is optional
| version: '3' | |
| networks: | |
| mynetwork: | |
| ipam: | |
| config: | |
| - subnet: 172.20.0.0/24 | |
| services: | |
| nodered1: | |
| image: nodered/node-red-docker | |
| ports: |
| #!/bin/sh | |
| movefrom='micronssd' | |
| moveto='wdredpro' | |
| for vm in $(qm list | awk '{print $1}' | grep -Eo '[0-9]{1,3}'); | |
| do | |
| for storage in $(qm config $vm | grep $movefrom: | awk '{print $1}' | grep -Eo '[a-z0-9]+'); | |
| do | |
| echo Moving VM$vm Storage $storage |
| add_action( 'init', function(){ | |
| if ( ! is_admin()) { | |
| if( is_ssl() ){ | |
| $protocol = 'https'; | |
| }else { | |
| $protocol = 'http'; | |
| } | |
| /** @var WP_Scripts $wp_scripts */ | |
| global $wp_scripts; |
| #!/bin/sh | |
| # This script based on linux-vm-tools for Ubuntu 22.02. | |
| # Thanks to https://github.com/Hinara/linux-vm-tools/ to script | |
| # This script is for Ubuntu 22.04 Jammy Jellyfish to download and install XRDP+XORGXRDP via | |
| # source. | |
| # | |
| # Major thanks to: http://c-nergy.be/blog/?p=11336 for the tips. | |
| # |
| <?php | |
| /** | |
| * Link the FR translation and the EN translation | |
| * Called by API https://domain.com/wp-json/link_translation/post/ | |
| */ | |
| function custom_rest_link_translation($data) { | |
| //Source https://wpml.org/wpml-hook/wpml_set_element_language_details/ |
| <?php | |
| global $wp_query; | |
| echo "<pre>"; | |
| var_dump($wp_query->query_vars); | |
| var_dump($wp_query); | |
| echo "</pre>"; | |
| ?> |
| <?php | |
| /** | |
| * Automatically login a single WordPress user upon arrival to a specific page. | |
| * | |
| * Redirect to home page once logged in and prevent viewing of the login page. | |
| * Compatible with WordPress 3.9.1+ | |
| * Updated 2014-07-18 to resolve WP_DEBUG notice: "get_userdatabylogin is deprecated since version 3.3! Use get_user_by('login') instead." | |
| * Updated 2019-07-09 to reformat code, pass 2nd parameter to `do_action()`, and hook into priority 1. | |
| * |
For 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.
body_filter_by_lua documentation: https://github.com/openresty/lua-nginx-module#body_filter_by_luahttp {
proxy_cache_path /tmp/cache levels=1:2 keys_zone=cache:60m max_size=1G;
server {
listen 8080;
location /replace-body {