I hereby claim:
- I am dccampbell on github.
- I am dccampbell (https://keybase.io/dccampbell) on keybase.
- I have a public key whose fingerprint is AB19 7B44 B84F 1B7F 098E 8258 4846 A6C3 9A5E D710
To claim this, I am signing this object:
| <?php | |
| /** | |
| * A generic SoapClient wrapper class with conveniences. | |
| * | |
| * Forces some default SoapClient options (trace/version/cache/etc), | |
| * and provides the ability to set default options, callbacks, and custom response classes. | |
| * | |
| * @author DCCampbell | |
| * @package AdvancedSoapClient | |
| */ |
| #!/usr/bin/env bash | |
| #https://gist.github.com/dccampbell/50ed62db4cf434abf32ab671720fe6ab | |
| # Download Files | |
| # http://code.activestate.com/komodo/remotedebugging/ | |
| dlUrl='http://downloads.activestate.com/Komodo/releases/9.3.2/remotedebugging/Komodo-PythonRemoteDebugging-9.3.2-88191-linux-x86_64.tar.gz' | |
| curl -sS -L $dlUrl -o 'dbgp.tar.gz' || exit 1 | |
| # Prepare Path | |
| mkdir 'dbgp' |
I hereby claim:
To claim this, I am signing this object:
| #!/usr/bin/env bash | |
| # commands or paths to executables | |
| composer_exec="composer" | |
| drush_exec="bin/drush.launcher --local --root=web/" | |
| # get composer.json (required) | |
| if [ ! -f composer.json ]; then | |
| wget -q -nc https://gist.githubusercontent.com/dccampbell/2c9af0710efe131a0b06804f72c68364/raw/composer.json | |
| fi |
| <?php | |
| /* | |
| * @name Server Logs Viewer | |
| * @description Emulates the tail() function. View latest lines of log files in your browser. | |
| * @author Alexandre Plennevaux (pixeline.be) | |
| */ | |
| /* Absolute local path to your server 'log' directory */ | |
| define('LOG_PATH', '/var/log'); |
| <?php | |
| set_time_limit(0); | |
| ini_set('memory_limit', '2G'); | |
| // Load Magento | |
| require_once __DIR__.'/app/Mage.php'; | |
| Mage::app(); | |
| // Get Products | |
| $cfgProducts = Mage::getModel('catalog/product')->getCollection() |
| <?php | |
| $chromeExec = 'google-chrome'; | |
| $inputFile = __DIR__.'/input.html'; | |
| $outputFile = __DIR__.'/output.pdf'; | |
| $version = shell_exec($chromeExec . ' --version 2>&1'); | |
| if(!strpos($version, 'Google Chrome') === 0) { | |
| throw new Exception('Google Chrome not found at: '.$chromeExec); |
| <?php | |
| /** | |
| * Dynamic Wordpress Configuration File | |
| * | |
| * This config file is designed to be flexible for use in any environment without need for modification. | |
| * It exposes most configurations to being set externally, such as via SetEnv in Apache/htaccess or PHP's putenv(). | |
| * | |
| * It will optionally load a /env.php file. If the file returns an array, the key/values will be loaded using putenv(). | |
| * |
| // https://www.facebook.com/ads/preferences/ | |
| function loadAllAdvertisers() { | |
| if(!document.querySelector('#interacted ._45ys')) { | |
| document.querySelector('#interacted div[role=button]').click(); | |
| } | |
| window.interactedInterval = setInterval(function() { | |
| var moreBtn = document.querySelector('#interacted ._45yr'); | |
| if(moreBtn) { | |
| document.querySelector('#interacted ._45yr').click(); |
| # Variables | |
| COMPOSER_HOME="$HOME/.composer" | |
| HOSTS='/etc/hosts' | |
| VHOST='/etc/apache2/sites-available/localdev.conf' | |
| ERRLOG='/var/log/apache2/error.log' | |
| # Fix SSH xterm-256color issue | |
| alias ssh='TERM=xterm-color ssh' | |
| # File Shortcuts |