Run this command in sail project folder:
docker-compose exec mysql bash
execute the mysql -u root -p command
provide the default password password
then executes
| This gist aims to show you how to use KV datastore using Cloudflare pages. The reason I created this quick guide is it took | |
| me almost 2 weeks to get it working, mainly because it is very new and the documentation is not up fully fleshed out yet | |
| https://developers.cloudflare.com/workers/runtime-apis/kv | |
| https://developers.cloudflare.com/pages/platform/functions | |
| https://blog.cloudflare.com/wrangler-v2-beta/ | |
| Steps: | |
| Install wrangler 2 |
Run this command in sail project folder:
docker-compose exec mysql bash
execute the mysql -u root -p command
provide the default password password
then executes
| <?php // Ignore this line if copying to child theme's functions.php | |
| /** Remove the unnecessary "type" attribute from MI script code by leaving it out of the filter. */ | |
| function remove_type_attr_1148073() { | |
| return array( | |
| 'data-cfasync' => 'false' // Ask CloudFlare Rocket Loader not to execute. | |
| ); | |
| } | |
| add_filter( 'monsterinsights_tracking_analytics_script_attributes', 'remove_type_attr_1148073' ); |
| <?php | |
| # source: https://docs.styleci.io/presets#laravel | |
| use PhpCsFixer\Config; | |
| use PhpCsFixer\Finder; | |
| $rules = [ | |
| 'align_multiline_comment' => true, | |
| 'ordered_imports' => ['sortAlgorithm' => 'alpha'], |
DNS queries on home network suddenly resolving hosts to 104.239.207.44.
You will see SPORADIC mis-resolutions of EVERYTHING to that 104.239.207.44 address if their crappy router happens to hear your PC's DHCP request - EVEN IF ANOTHER DHCP SERVER ON THE NETWORK assigns the ultimate address.
When setting these options consider the following:
sudo grep max_children /var/log/php?.?-fpm.log.1 /var/log/php?.?-fpm.logThe easiest way to "convert" MKV to MP4, is to copy the existing video and audio streams and place them into a new container. This avoids any encoding task and hence no quality will be lost, it is also a fairly quick process and requires very little CPU power. The main factor is disk read/write speed.
With ffmpeg this can be achieved with -c copy. Older examples may use -vcodec copy -acodec copy which does the same thing.
These examples assume ffmpeg is in your PATH. If not just substitute with the full path to your ffmpeg binary.
All of the below properties or methods, when requested/called in JavaScript, will trigger the browser to synchronously calculate the style and layout*. This is also called reflow or layout thrashing, and is common performance bottleneck.
Generally, all APIs that synchronously provide layout metrics will trigger forced reflow / layout. Read on for additional cases and details.
elem.offsetLeft, elem.offsetTop, elem.offsetWidth, elem.offsetHeight, elem.offsetParent| <?php | |
| /* From https://www.usps.com/send/official-abbreviations.htm */ | |
| $us_state_abbrevs_names = array( | |
| 'AL'=>'ALABAMA', | |
| 'AK'=>'ALASKA', | |
| 'AS'=>'AMERICAN SAMOA', | |
| 'AZ'=>'ARIZONA', | |
| 'AR'=>'ARKANSAS', |