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
| <!-- Start Audima Widget Injection --> | |
| <div id="audimaWidget"></div> | |
| <script src="//audio.audima.co/audima-widget.js"></script> | |
| <!-- End Audima Widget Injection --> | |
| <!-- Audima CSS Customization --> | |
| <style> | |
| #audimaWidget .audima-panel { | |
| /* Insira aqui a customização exemplo: | |
| background-color: silver; |
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
| /** | |
| * Address Auto Fill based on Postcode | |
| * | |
| * Author: | |
| * Rafael Patro <rafaelpatro@gmail.com> | |
| * | |
| * Intallation: | |
| * Add a CMS Static Block applying the entire script below. | |
| * Add a Widget to pages with address forms. | |
| * |
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 | |
| # https://nghttp2.org/documentation/h2load-howto.html | |
| sudo apt-get update | |
| sudo apt-get install g++ make binutils autoconf automake autotools-dev libtool pkg-config \ | |
| zlib1g-dev libcunit1-dev libssl-dev libxml2-dev libev-dev libevent-dev libjansson-dev \ | |
| libc-ares-dev libjemalloc-dev cython python3-dev python-setuptools libjemalloc-dev \ | |
| libspdylay-dev | |
| git clone https://github.com/nghttp2/nghttp2.git && cd nghttp2 | |
| autoreconf -i && automake && autoconf |
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
| // SNIPPET: | |
| e.preventDefault() | |
| // SNIPPET: | |
| onclick='document.formName.submit();' | |
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 | |
| if(php_sapi_name()!=="cli"){ | |
| echo "Must be run from the commend line."; | |
| }; | |
| /** | |
| * Setup a magento instance so we can run this export from the command line. | |
| */ | |
| require_once('app/Mage.php'); | |
| umask(0); | |
| if (!Mage::isInstalled()) { |
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
| # to generate your dhparam.pem file, run in the terminal | |
| openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |
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 //This gets the current month starting at day 1, and the next month starting at day 1 | |
| $now = mktime(0, 0, 0, date("m"), 1, date('Y')); | |
| $then = mktime(0, 0, 0, (date("m") % 12 + 1), 1, date('Y')); | |
| query_posts( | |
| array( | |
| 'post_type' => 'classes', // Custom Post Type | |
| 'order' => 'asc', // Order with earliest first | |
| 'orderby' => 'wpcf-date-and-time', // Order by the custom field | |
| 'posts_per_page' => -1, // Show all |
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
| sudo apt-get install unzip; | |
| wget -O /tmp/chromedriver.zip http://chromedriver.googlecode.com/files/chromedriver_linux64_19.0.1068.0.zip && sudo unzip /tmp/chromedriver.zip chromedriver -d /usr/local/bin/; |
NewerOlder