Skip to content

Instantly share code, notes, and snippets.

https://gist.githubusercontent.com/strarsis/bc73301306416a569cdcf4a9649ea97b/raw/9f6b6f113df2bff53a5fe28989401513f5f22d54/mask-middle-border-variable-radius-scaling.svg
@strarsis
strarsis / PHP Fatal error stack trace
Created January 29, 2022 16:26
`PublishPress Authors Pro` + `WP Activity Log` PHP Fatal error stack trace
( ! ) Fatal error: Uncaught Error: Xdebug has detected a possible infinite loop, and aborted your script with a stack depth of '9000' frames in /srv/www/web/wp/wp-includes/option.php on line 80
( ! ) Error: Xdebug has detected a possible infinite loop, and aborted your script with a stack depth of '9000' frames in /srv/www/web/wp/wp-includes/option.php on line 80
Call Stack
# Time Memory Function Location
1 0.0001 378304 {main}( ) .../edit.php:0
2 0.4161 8432504 WP_Posts_List_Table->display( ) .../edit.php:477
3 0.4208 8441288 WP_Posts_List_Table->display_rows_or_placeholder( ) .../class-wp-list-table.php:1289
4 0.4208 8441288 WP_Posts_List_Table->display_rows( $posts = ???, $level = ??? ) .../class-wp-list-table.php:1362
5 0.4208 8441664 WP_Posts_List_Table->_display_rows_hierarchical( $pages = [0 => class stdClass { public $ID = 229; public $post_parent = 0 }, 1 => class stdClass { public $ID = 1264; public $post_parent = 0 }, 2 => class stdClass { public $ID = 232; public $post_parent = 0 }, 3 => class std
@strarsis
strarsis / iframe-content.html
Created July 28, 2021 17:11
Disappearing element with perspective/transform: perspective issue (Chrome) (iframe content)
<!DOCTYPE html>
<html lang="en">
<head>
<style>
/* Pannellum hotspot element */
.hotspot {
width: 24px;
height: 24px;
background: red;
transform: translate(100px, 150px) translateZ(9999px);
@strarsis
strarsis / note-disabled-pmkid-wifi-issue.md
Last active July 13, 2021 21:22
Windows 10 WiFi disconnection after about a minute (disabled PMKID)

If the WiFi connection disconnects after about a minute (or less) on Windows 10, one reason can be disabled PMKID. This WiFi feature can be disabled to improve security (as it can be exploited in some WiFi attacks in some specific scenarios), but it can also cause issues with some clients.

In this case a HP 250 G7 notebook disconnected after about or less than a minute from a Mikrotik RouterBOARD mAP 2n. The Disable PMKID feature was enabled in the security profile used by the wireless interface in question and disabling it fixed the issue immediately.

Note: (Wireless (sidebar) → Security Profile (tab) → open the used security profile (default) → disable the Disable PMKID checkbox at the bottom → OK)

Silberpferdchen
Lied verfügbar auf YouTube:
https://www.youtube.com/watch?v=7esF2c_IGGk
Liedtext:
1. Strophe: Auf silbernen Pferdchen
reiten die Träume so leis' wie der Wind
durch die Nacht.
Die Engelein haben Zügel und Zäune aus all deinen Wünschen gemacht.
@strarsis
strarsis / file.yml
Created June 5, 2021 15:45
ansible variable interpolation issue
vault_redis_password: "some-password"
vault_wordpress_env_defaults:
# Redis password used on all sites
redis_password: "{{ vault_redis_password }}"
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@strarsis
strarsis / guide.md
Last active February 19, 2023 00:29
Object caching with Bedrock (and Trellis) using Redis

Object caching with Bedrock (and Trellis) using Redis

What is object caching

While nginx microcaching already solves page caching (as of static, rarely changing WordPress pages), the performance for dynamically generated pages (like WooCommerce shop pages and admin backend in general) can benefit greatly from additionally using an object cache. Object caching allows an application (in this case WordPress with its plugins, theme, etc.) to store prepared objects (mostly database queries) in a database and quickly retrieve them, therefore improving the performance of dynamic page generation. Object caching is (usually) transparent, which means that it shouldn't be noticeable by users and developers (except for the performance improvements of course).

Implementations

Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Note: There is a new library as successor to TCPDF, but not everyone already uses it or migrated to it.
Clone the TCPD repository (https://github.com/tecnickcom/TCPDF)
Invoke the PHP command line script `./tools/tcpdf_addfont.php` to convert fonts.