Skip to content

Instantly share code, notes, and snippets.

Verifying that +ovomatik is my blockchain ID. https://onename.com/ovomatik
@ovomatik
ovomatik / argv.php
Created August 31, 2012 21:42 — forked from krismas/argv.php
A small MODX snippet to extract POST, GET, SESSION & COOKIE values - (c) 2012 ackwa.fr
<?php
/*
* A small MODX snippet to extract POST, GET, SESSION & COOKIE values - (c) 2012 ackwa.fr
*
* @version : 1.0.1
* @see : https://gist.github.com/gists/2853625
*
* @usage : [[!argv?key=`myparam`&default=`1`]] -> return the value
* [[!argv?key=`myparam`&default=`1`&toph=`1`]] -> set [[+argv.myparam]]
* [[!argv?key=`myparam`&from=`GP`]] -> return the value from GET or POST
@ovomatik
ovomatik / modxTiming.html
Created May 25, 2012 14:05
Modx Timing
[^qt^] - Query Time - Shows how long MODx took talking to the database <br>
[^q^] - Query Count -Shows how many database queries MODx made <br>
[^p^] - Parse Time - Shows how long MODx took to parse the page <br>
[^t^] - Total Time - Shows the total time taken to parse/ render the page <br>
[^s^] - Source - Shows the source of page, whether is database or cache.