Skip to content

Instantly share code, notes, and snippets.

View SirLouen's full-sized avatar
:dependabot:
Busy on my way to randomness...

SirLouen SirLouen

:dependabot:
Busy on my way to randomness...
View GitHub Profile
@SirLouen
SirLouen / debug.log
Created April 25, 2025 21:57
Mustache Log
Deprecated: WP_CLI\Runner::get_subcommand_suggestion(): Implicitly marking parameter $root_command as nullable is deprecated, the explicit nullable type must be used instead in phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php on line 1958
Call Stack:
0.0035 7442600 1. {main}() /usr/local/bin/wp:0
0.0127 8078008 2. include('phar:///usr/local/bin/wp/php/boot-phar.php') /usr/local/bin/wp:4
0.0128 8088544 3. include('phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/wp-cli.php') phar:///usr/local/bin/wp/php/boot-phar.php:20
0.0129 8100952 4. WP_CLI\bootstrap() phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/wp-cli.php:32
0.0157 8765624 5. WP_CLI\Bootstrap\ConfigureRunner->process($state = class WP_CLI\Bootstrap\BootstrapState { private $state = [] }) phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/bootstrap.php:83
0.0157 8768176 6. WP_CLI\Bootstrap\RunnerInstance->__invoke() phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Boots
@SirLouen
SirLouen / debug.log
Created April 22, 2025 23:46
Debug Log for #63316
[22-Apr-2025 23:33:39 UTC] PHP Warning: Undefined array key "host" in /var/www/src/wp-includes/canonical.php on line 717
[22-Apr-2025 23:33:39 UTC] PHP Stack trace:
[22-Apr-2025 23:33:39 UTC] PHP 1. {main}() /var/www/src/index.php:0
[22-Apr-2025 23:33:39 UTC] PHP 2. require_once() /var/www/src/index.php:19
[22-Apr-2025 23:33:39 UTC] PHP 3. require() /var/www/src/_index.php:17
[22-Apr-2025 23:33:39 UTC] PHP 4. require_once() /var/www/src/wp-blog-header.php:19
[22-Apr-2025 23:33:39 UTC] PHP 5. do_action($hook_name = 'template_redirect') /var/www/src/wp-includes/template-loader.php:13
[22-Apr-2025 23:33:39 UTC] PHP 6. WP_Hook->do_action($args = [0 => '']) /var/www/src/wp-includes/plugin.php:517
[22-Apr-2025 23:33:39 UTC] PHP 7. WP_Hook->apply_filters($value = '', $args = [0 => '']) /var/www/src/wp-includes/class-wp-hook.php:348
[22-Apr-2025 23:33:39 UTC] PHP 8. redirect_canonical($requested_url = '', $do_redirect = *uninitialized*) /var/www/src/wp-includes/class-wp-hook.php:324
<?php
error_reporting( E_ALL );
ini_set( 'display_errors', 1 );
require_once '../wp-load.php';
require_once ABSPATH . 'wp-admin/includes/file.php';
function debug_ftp_connection() {
global $wp_filesystem;
echo '<h2>WordPress Filesystem Configuration</h2>';
@SirLouen
SirLouen / caddy.log
Created January 31, 2025 11:03
caddy.log
caddy | {"level":"info","ts":1738321291.2513785,"msg":"using config from file","file":"/etc/caddy/Caddyfile"}
caddy | {"level":"info","ts":1738321291.2548294,"msg":"adapted config to JSON","adapter":"caddyfile"}
caddy | {"level":"warn","ts":1738321291.2549934,"msg":"Caddyfile input is not formatted; run 'caddy fmt --overwrite' to fix inconsistencies","adapter":"caddyfile","file":"/etc/caddy/Caddyfile","line":6}
caddy | {"level":"info","ts":1738321291.258292,"logger":"admin","msg":"admin endpoint started","address":"localhost:2019","enforce_origin":false,"origins":["//localhost:2019","//[::1]:2019","//127.0.0.1:2019"]}
caddy | {"level":"info","ts":1738321291.2588859,"logger":"http.auto_https","msg":"server is listening only on the HTTPS port but has no TLS connection policies; adding one to enable TLS","server_name":"srv0","https_port":443}
caddy | {"level":"info","ts":1738321291.2589095,"logger":"http.auto_https","msg":"enabling automatic HTTP->HTTPS redirects","server_name":"srv0"}
caddy | {"level":"i
@SirLouen
SirLouen / caddy.log
Created January 30, 2025 20:15
caddy.log
caddy | {"level":"info","ts":1738268046.497954,"msg":"using config from file","file":"/etc/caddy/Caddyfile"}
caddy | {"level":"info","ts":1738268046.5062964,"msg":"adapted config to JSON","adapter":"caddyfile"}
caddy | {"level":"warn","ts":1738268046.5064743,"msg":"Caddyfile input is not formatted; run 'caddy fmt --overwrite' to fix inconsistencies","adapter":"caddyfile","file":"/etc/caddy/Caddyfile","line":6}
caddy | {"level":"info","ts":1738268046.5089242,"logger":"admin","msg":"admin endpoint started","address":"localhost:2019","enforce_origin":false,"origins":["//localhost:2019","//[::1]:2019","//127.0.0.1:2019"]}
caddy | {"level":"info","ts":1738268046.5094504,"logger":"http.auto_https","msg":"server is listening only on the HTTPS port but has no TLS connection policies; adding one to enable TLS","server_name":"srv0","https_port":443}
caddy | {"level":"info","ts":1738268046.5095491,"logger":"http.auto_https","msg":"enabling automatic HTTP->HTTPS redirects","server_name":"srv0"}
caddy | {"level":"d
@SirLouen
SirLouen / caddy.log
Created January 30, 2025 17:29
caddy.log
caddy | {"level":"info","ts":1738258091.2478912,"msg":"using config from file","file":"/etc/caddy/Caddyfile"}
caddy | {"level":"info","ts":1738258091.2534478,"msg":"adapted config to JSON","adapter":"caddyfile"}
caddy | {"level":"warn","ts":1738258091.2534971,"msg":"Caddyfile input is not formatted; run 'caddy fmt --overwrite' to fix inconsistencies","adapter":"caddyfile","file":"/etc/caddy/Caddyfile","line":6}
caddy | {"level":"info","ts":1738258091.2715175,"logger":"admin","msg":"admin endpoint started","address":"localhost:2019","enforce_origin":false,"origins":["//[::1]:2019","//127.0.0.1:2019","//localhost:2019"]}
caddy | {"level":"info","ts":1738258091.2730436,"logger":"tls.cache.maintenance","msg":"started background certificate maintenance","cache":"0xc000760480"}
caddy | {"level":"info","ts":1738258091.2737021,"logger":"http.auto_https","msg":"server is listening only on the HTTPS port but has no TLS connection policies; adding one to enable TLS","server_name":"srv0","https_port":443}
caddy |
@SirLouen
SirLouen / docker-compose.yml
Last active November 12, 2024 15:14
Docker Wordpress
services:
wordpress:
container_name: wordpress
image: wordpress
restart: always
ports:
- 8080:80
env_file:
- $PWD/wordpress.env
@SirLouen
SirLouen / mpregex.txt
Created October 30, 2024 17:44
MPRegex description
Este código introduce un sistema de "triggers" (disparadores) de expresiones regulares para los mobprogs en un MUD, lo que permite a los NPCs reaccionar a entradas de texto que coincidan con ciertos patrones. Esto añade una flexibilidad avanzada para programar respuestas de los NPCs a los jugadores, permitiendo interacciones más dinámicas y detalladas. A continuación, te explico cómo funciona este sistema, cada parte del código y su propósito:
Ejemplo de Uso: Si un mobprog tiene la frase "my name is (\w+)" como regex, y un jugador dice "My name is bob", el NPC podrá capturar "bob" y usarlo en una respuesta como "Why hello there, bob".
Palrich
[email protected]
Head Imp, Divine Blood telnet://divineblood.tetradine.com:4000
I hacked this up to do what one of my builders wanted. It's kind of neat, so
I rewrote it to work with stock code+OLC1.81. I'm not sure how it'll do with
@SirLouen
SirLouen / main.c
Created October 30, 2024 16:51
Async Pthreads Test for C
#define _DEFAULT_SOURCE
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <curl/curl.h>
#include <pthread.h>
#include <unistd.h>
#include <time.h>
struct MemoryStruct {
const puppeteer = require('puppeteer');
(async () => {
const browser = await puppeteer.launch({
headless: 'new',
args: ['--no-sandbox', '--disable-setuid-sandbox', '--lang=en-US']
});
const page = await browser.newPage();