Textpattern wont let me do updates:
let scriptPolicy = null;
const policyNames = [‘webui-test-script’, ‘static-types’, ‘lottie-worker-script-loader’];
if (window.trustedTypes) {
for (const name of policyNames) {
try {
scriptPolicy = window.trustedTypes.createPolicy(name, {
createScriptURL: (url) => url
});
break; // Stop loop once a policy is successfully created
} catch (e) {
// Policy name might already exist or is blocked; try next
}
}
}
[ ‘https://cdn.socket.io/4.8.3/socket.io.min.js’
, ‘https://unpkg.com/@feathersjs/client@^5.0.0/dist/feathers.js’
].forEach( (src) => {
let script = document.createElement(‘script’);
script.src = scriptPolicy ? scriptPolicy.createScriptURL(src) : src;
document.head.appendChild(script);
});
/* wait a moment….. */
const app = feathers(); const socket = io(); app.configure(feathers.socketio(socket));
<?php
// written from:
// https://wordpress.stackexchange.com/questions/422737/wp-mail-fails-with-could-not-instantiate-mail-function-but-mail-works-fine
ini_set(‘display_errors’, 1);
ini_set(‘display_startup_errors’, 1);
error_reporting(E_ALL);
// include wordpress
require_once(‘wp-load.php’);
var_dump( wp_mail(‘mark@edwardsmark.com’, ‘test subject from wp_mail()’, ‘test message from wp_mail()’ ));
?>
<?php
// written from:
// https://wordpress.stackexchange.com/questions/422737/wp-mail-fails-with-could-not-instantiate-mail-function-but-mail-works-fine
ini_set(‘display_errors’, 1);
ini_set(‘display_startup_errors’, 1);
error_reporting(E_ALL);
// include wordpress
require_once(‘wp-load.php’);
$to = “mark@mark.com”;
$msg = “test email via wordpress”;
$headers = array(
‘From: server‘
);
$headers = implode( PHP_EOL, $headers );
// use wordpress email function
$check = wp_mail($to, $msg, $msg, $headers);
var_dump($check);
?>
### notice this is
ONE LINE!
DOCUMENT_ROOT=/home/comptonpeslonline.com/public_html \
HTTP_HOST=comptonpeslonline.com \
QUERY_STRING=‘one=twooo&three=fourrrr’ \
/home/comptonpeslonline.com/cgi-bin/perlinfo.pl ;
perlinfo.pl script:
#! /usr/bin/perl
- script to simulate phpinfo() command
use strict;
use warnings;
use Config;
use CGI;
use Data::Dumper;
my $q = CGI->new;
print $q->header(‘text/plain’);
print “Perl Version: $^V” ;
print “nnArchitecture: $Config{archname}” ;
print “nn” ;
foreach my $key (sort keys %ENV) {
print “$key = $ENV{$key}n” ;
}
both machines(?): (in same zone???)
gcloud auth login ;
then:
gcloud compute scp rl-2025-03-20260330-151033:~/*.gz ~
(notice machine name)
oddly, one of the tests seemed to remember that i did a “ssh-keygen” on the host machine and asked me for the passphrase!