Skip to content

Instantly share code, notes, and snippets.

View PhilETaylor's full-sized avatar

Phil E. Taylor PhilETaylor

View GitHub Profile
<h3>PHP - Sendmail Test Script</h3>
This script tests sending mail using PHP and Sendmail. Choose your to and from address, and the number of emails you wish you send. This can test how quickly email is being send from the shared hosting server.<br />
<FORM METHOD=GET ACTION="">
To:<br />
<INPUT TYPE="text" NAME="to"><br />
From: <br />
<INPUT TYPE="text" NAME="from"><br>
how many emails?<br />
<INPUT TYPE="text" NAME="loops" VALUE="1"><br />
server {
listen 80 default_server;
listen 81 default_server http2 proxy_protocol; ## Needed when behind HAProxy with SSL termination + HTTP/2 support
listen 443 default_server ssl http2;
ssl_certificate /etc/nginx/ssl/dummy.crt;
ssl_certificate_key /etc/nginx/ssl/dummy.key;
root /code;
index index.php index.html;
project : joomla-cms
lines : 1144461
authors :
265998 Michael Babker 23.2%
74102 Nicholas K. Dionysopoulos 6.5%
65355 Elijah Madden 5.7%
54406 George Wilson 4.8%
53539 Jean-Marie Simonet 4.7%
42720 Rouven Weßling 3.7%
40322 Rob Schley 3.5%
{
"HOST_ID": "vxVXZ1",
"who": "Super User",
"who_id": "123",
"what": "viewed Articles component Configuration page",
"when": "2016-06-25 12:55:02",
"where": "com_config",
"where_id": "23",
"ip": "1.1.1.1",
"meta": "com_content",
@PhilETaylor
PhilETaylor / snapshot.json
Created May 16, 2018 13:46
snapshot.json
{
"id": 123,
"site_id": 123,
"user_id": 123,
"status": "current",
"LASTUPDATED": "2017-08-11 01:30:08",
"timescancompleted": "2017-08-11 01:30:08",
"connectorversion": "4BD23",
"version": "3.4.3",
"php_version": "BLOB",
{
"id": 123,
"site_id": 123,
"user_id": 123,
"status": "BLOB",
"scanspeed": "FAST",
"retrycount": null,
"killflag": null,
"scanerrormsg": "BLOB",
"step": "BLOB",
{
"id": 123,
"user_id": 123,
"subdomain_id": 1,
"bf_site_id": 2,
"siteurl": "http://www.example.com/",
"friendlyname": "example",
"user": "MUIEAJSOKSVFazKT2WEbknOGcMYp96CJM-WTw290SNqIBtKxM8hhkSZd7vrg2Q6aAKuzYuhXRNTnpyI4c4NHojHxPkoAalNRIIvVw1cdYBkYhRfmo_HEaxNAoNw_uDfWUxckAtWWbBT7F6kpE5FN2gui139780TU36UTlA==<Ha>",
"pass": "MUIEAGb9RalREo_qFx3ENGp2LkN9yhXGQC6Zwl0OJMV5HcFYr1QMmXGVmnRBC4Eppx9v_pBkGM8GxgvrZQzMuIApW8i42FW5Pl0UXktVgaLURomCBVhiupKzltMTXj87nGlHwRjNqucLpR-KNfx-Gnlenx8zdyawDZ73AA==<Ha>",
"ftpserver": "MUIEAOjq9ybV2XCu_vMekdID_3GU3wiWFVYj-kfJ4ipTJVd22Wgvd3BNWtRL-_wXY5h4GPyzXC3qKcBmOvFM5O0tIihefDB6ftT8x5fiMXdgGxt3OC__TeeN1PuaGzSU9TMyzneGr418w1y7pEFSANYnagJqe7HoxByJXw==<Ha>",
<html>
<head>
<META NAME="robots" CONTENT="noindex,nofollow">
<script>
(function(){function getSessionCookies(){cookieArray=new Array();var cName=/^\s?incap_ses_/;var c=document.cookie.split(";");for(var i=0;i<c.length;i++){key=c[i].substr(0,c[i].indexOf("="));value=c[i].substr(c[i].indexOf("=")+1,c[i].length);if(cName.test(key)){cookieArray[cookieArray.length]=value}}return cookieArray}function setIncapCookie(vArray){try{cookies=getSessionCookies();digests=new Array(cookies.length);for(var i=0;i<cookies.length;i++){digests[i]=simpleDigest((vArray)+cookies[i])}res=vArray+",digest="+(digests.join())}catch(e){res=vArray+",digest="+(encodeURIComponent(e.toString()))}createCookie("___utmvc",res,20)}function simpleDigest(mystr){var res=0;for(var i=0;i<mystr.length;i++){res+=mystr.charCodeAt(i)}return res}function createCookie(name,value,seconds){if(seconds){var date=new Date();date.setTime(date.getTime()+(seconds*1000));var expires="; expires="+date.toGMTString()}else{var expires=""}document.cookie=name+"="+value+
165.225.34.110 - - [27/Mar/2018:13:11:32 +0000] "GET /uploads/filemanager/media/Misc_Images/Proserv%20logo-PMS%20IS%20Tagline_2.jpg HTTP/1.1" 304 - "-" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 10.0; WOW64; Trident/7.0; .NET4.0C; .NET4.0E; .NET CLR 2.0.50727; .NET CLR 3.0.30729; .NET CLR 3.5.30729; Microsoft Outlook 16.0.4666; ms-office; MSOffice 16)"
165.225.34.110 - - [27/Mar/2018:13:11:32 +0000] "GET /uploads/filemanager/media/Misc_Images/Facebook_Button.png HTTP/1.1" 304 - "-" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 10.0; WOW64; Trident/7.0; .NET4.0C; .NET4.0E; .NET CLR 2.0.50727; .NET CLR 3.0.30729; .NET CLR 3.5.30729; Microsoft Outlook 16.0.4666; ms-office; MSOffice 16)"
165.225.34.110 - - [27/Mar/2018:13:11:32 +0000] "GET /uploads/filemanager/media/Misc_Images/Twitter_Button.png HTTP/1.1" 304 - "-" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 10.0; WOW64; Trident/7.0; .NET4.0C; .NET4.0E; .NET CLR 2.0.50727; .NET CLR 3.0.30729; .NET CLR 3.5.30729; Microsoft Outlook 16.0.4666; ms-office; MS
@PhilETaylor
PhilETaylor / install_predis.sh
Created December 30, 2017 16:50 — forked from palpalani/install_predis.sh
Installing Redis, Hiredis on Ubuntu 14.04
#!/bin/bash
echo "--------------------------------------------------------------------------------------------"
echo "Installing Predis on Ubuntu 16.04"
echo "Read more: https://github.com/nrk/predis"
echo "Author: Ralf Rottmann | @ralf | http://rottmann.net"
echo "--------------------------------------------------------------------------------------------"
PHP_CONF_DIR="/etc/php/7.0/apache2/conf.d"
echo "Checking prerequisites..."
echo "Git available?"
[ ! -s /usr/bin/git ] && sudo apt-get -q -y install git || echo "Git already installed."