- install dnsmasq
$ brew install dnsmasq
...
$ cp /usr/local/opt/dnsmasq/dnsmasq.conf.example /usr/local/etc/dnsmasq.conf
- edit
/usr/local/etc/dnsmasq.conf
address=/local/127.0.0.1
$ brew install dnsmasq
...
$ cp /usr/local/opt/dnsmasq/dnsmasq.conf.example /usr/local/etc/dnsmasq.conf
/usr/local/etc/dnsmasq.confaddress=/local/127.0.0.1
| Instructions on how to add an Instagram Feed to a Magento Site. | |
| Includes: | |
| Block Class w/ base template for rendering the feed | |
| System -> Configuration options for connecting to the client's Instagram account | |
| Default CSS Styles |
| # overwrite master with contents of feature branch (feature > master) | |
| git checkout feature # source name | |
| git merge -s ours master # target name | |
| git checkout master # target name | |
| git merge feature # source name |
Using JSON in Postgres by example.
docker run --name my-postgres -e POSTGRES_PASSWORD=mysecretpassword -d postgres| var confirmDialog = function(message, headline, cb) { | |
| var dialog = '<div class="dialog confirm mfp-with-anim">'; | |
| if (headline) { | |
| dialog += '<h2>' + headline + '</h2>'; | |
| } | |
| dialog += '<div class="content"><p>' + message + '</p></div>'; | |
| dialog += '<div class="actions">'; | |
| dialog += '<button type="button" class="btn btn-default btn-cancel">Abbrechen</button> '; | |
| dialog += '<button type="button" class="btn btn-primary btn-submit">OK</button>'; | |
| dialog += '</div>'; |
| @task('clean_old_releases') | |
| # This lists our releases by modification time and delete all but the 3 most recent. | |
| purging=$(ls -dt {{ $release_dir }}/* | tail -n +3); | |
| if [ "$purging" != "" ]; then | |
| echo Purging old releases: $purging; | |
| rm -rf $purging; | |
| else | |
| echo "No releases found for purging at this time"; | |
| fi |
All of the below properties or methods, when requested/called in JavaScript, will trigger the browser to synchronously calculate the style and layout*. This is also called reflow or layout thrashing, and is common performance bottleneck.
Generally, all APIs that synchronously provide layout metrics will trigger forced reflow / layout. Read on for additional cases and details.
elem.offsetLeft, elem.offsetTop, elem.offsetWidth, elem.offsetHeight, elem.offsetParent| <?php | |
| function after_order_save($observer) | |
| { | |
| Mage::log(' === start method === '); | |
| Mage::log(__METHOD__); | |
| Mage::log(' ===end method=== '); | |
| $event = $observer->getEvent(); | |
| $order = $event->getOrder(); |
| // SET THE input old value with following values Input::old('key'); | |
| Session::set('_old_input.key', Input::get('value')); |
| #!/usr/bin/python | |
| import sys | |
| import argparse, json, base64, struct | |
| import urllib2 | |
| from datetime import datetime | |
| LOGS = { | |
| 'icarus': 'https://ct.googleapis.com/icarus', | |
| 'pilot': 'https://ct.googleapis.com/pilot', |