A list of my add-ons and their EE3 compatibility status.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Usage: vagrant up windowsVersion-IEversion | |
# | |
# Eg. vagrant up win10-edge | |
# | |
# Based off of: # https://gist.github.com/anthonysterling/7cb85670b36821122a4a | |
boxes = { | |
# http://www.vagrantbox.es/ | |
"xp-6" => "https://aka.ms/ie6.xp.vagrant", | |
"xp-8" => "https://aka.ms/ie8.xp.vagrant", | |
"vista-7" => "https://aka.ms/ie7.vista.vagrant", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Craft console bootstrap file | |
*/ | |
// Set path constants | |
define('CRAFT_BASE_PATH', __DIR__); | |
define('CRAFT_VENDOR_PATH', CRAFT_BASE_PATH . '/vendor'); | |
// Load Composer's autoloader |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript:if("application/json"===document.contentType){window.module={};const e=document.createElement("script");e.src="https://cdn.jsdelivr.net/npm/[email protected]/dist/json-formatter.js",e.type="module",e.addEventListener("load",()=>{const e=JSON.parse(document.body.innerText);document.body.innerHTML="";const n=new window.module.exports.default(e,6);document.body.appendChild(n.render())}),document.head.appendChild(e)} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env php | |
<?php | |
if (empty($argv[1])) { | |
fwrite(STDERR, 'Usage: read-logentries /path/to/your.log.gz'.PHP_EOL); | |
exit(1); | |
} | |
$file = $argv[1]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Simple userland heapdump generator using v8-profiler | |
* Usage: require('[path_to]/HeapDump').init('datadir') | |
* | |
* @module HeapDump | |
* @type {exports} | |
*/ | |
var fs = require('fs'); | |
var profiler = require('v8-profiler'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Uses localStorage to keep a running log of all queries on the site | |
// so you can browse through the site and identify the biggest query | |
function EESlowQueryLog() { | |
// get cached queries | |
var queries = localStorage.getItem("EESlowQueryLog") ? JSON.parse(localStorage.getItem("EESlowQueryLog")) : []; | |
function loadQueries() { | |
// loop through all queries | |
$("#ci_profiler_queries_db_1 tr").each(function() { | |
// get this execution time of this query |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$site_id = ee()->config->item('site_id'); | |
$site_pages = base64_encode( | |
serialize( | |
array( | |
$site_id => array( | |
'url' => 'http://yoursite.com//', | |
'uris' => array( | |
68 => '//', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function _execute($sql) | |
{ | |
$sql = $this->_prep_query($sql); | |
### HACK START | |
$is_write = preg_match('/^(insert|update|delete|alter|create|drop)/i', $sql); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta name='viewport' content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no' /> | |
<script src='./mapbox.js'></script> | |
<script src='./leaflet.markercluster-src.js'></script> | |
<link href='./mapbox.css' rel='stylesheet' /> | |
<link href='./MarkerCluster.css' rel='stylesheet' /> | |
<link href='./MarkerCluster.Default.css' rel='stylesheet' /> | |
<!--[if lte IE 8]> |
NewerOlder