This file contains hidden or 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 | |
| $tstart= microtime(true); | |
| @include(dirname(__FILE__) . '/config.core.php'); | |
| if (!defined('MODX_CORE_PATH')) define('MODX_CORE_PATH', dirname(__FILE__) . '/core/'); | |
| if (!@include_once (MODX_CORE_PATH . "model/modx/modx.class.php")) { | |
| die(); | |
| } |
This file contains hidden or 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
| ======== Output file will be in /tmp/ddev-debug-test.txt ======== | |
| ======== ddev installation alternate locations: ======== | |
| /usr/bin/ddev | |
This file contains hidden or 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
| const statfigures = document.querySelectorAll('[data-stats]'); | |
| if (statfigures.length) { | |
| statfigures.forEach((el) => { | |
| const initialValue = el.innerText; | |
| let statNumber = parseFloat(initialValue.replace(/[^0-9.]/g, "")); | |
| console.info(statNumber); | |
| el.innerText = "0"; | |
| const observer = new IntersectionObserver( | |
| (entries) => { | |
| entries.forEach((entry) => { |
This file contains hidden or 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 | |
| /** | |
| * No Manager Output Modifier | |
| * Use to disable items from being shown if a user is logged into the manager | |
| * Useful for disabling analytics chunks | |
| **/ | |
| if (!empty($modx->user)) { | |
| if ($modx->user->hasSessionContext('mgr')) { | |
| return ' '; |
This file contains hidden or 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
| // parse through each element in the document | |
| // replace hyphens with non-breaking hyphens | |
| var elements = document.getElementsByTagName('*'); | |
| for (var i = 0; i < elements.length; i++) { | |
| var element = elements[i]; | |
| // ignore script and style elements | |
| if (element.tagName === 'SCRIPT' || element.tagName === 'STYLE') { | |
| continue; |
This file contains hidden or 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
| # Run on 2.x MODX | |
| SELECT | |
| id, | |
| type, | |
| pagetitle, | |
| longtitle, | |
| description, | |
| alias, | |
| link_attributes, |
This file contains hidden or 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
| { | |
| "name" : "gallery", | |
| "caption": "Gallery", | |
| "category": "Base", | |
| "type" : "migx", | |
| "input_properties" : { | |
| "configs" : "", | |
| "formtabs": [{ | |
| "caption": "Image", | |
| "fields": [{ |
This file contains hidden or 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
| # Alternative for `nvm use` on nvmrc | |
| Function nvm-use | |
| { | |
| if (Test-Path -Path .\.nvmrc -PathType Leaf) { | |
| $version = Get-Content .\.nvmrc -Raw | |
| nvm use $version.Trim().ToLower() | |
| } | |
| } |
This file contains hidden or 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
| #!/bin/bash | |
| # This script will whitelist the IP address of the server in Sucuri's firewall. | |
| # Variables | |
| # The API key for the Sucuri API | |
| API_KEY="" | |
| # The API secret for the Sucuri API | |
| API_SECRET="" |
This file contains hidden or 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
| mxmkjvgsdzfhseightonetwoeight7 | |
| 3five4s84four9rtbzllggz | |
| 75sevenzdrpkv1onetwo | |
| 3q7ctkghhqkpb5four | |
| ccxpblrgrjxcgrhjxfmtwonine8eightzzrdn4 | |
| 6lqjrhbnxxcqlpnmjsthreesixxsxcgqsxmdx7 | |
| 35llbrhh | |
| fivethreejcqpfqmcmvjlmhlbzpxlsmktzkmtmv8p | |
| 3369eightnine89 | |
| onesix4qqnlzdsevennmmrcgkndlsgm3 |
NewerOlder