<Additional information about your API call. Try to use verbs that match both request type (fetching vs modifying) and plurality (one vs multiple).>
-
URL
<The URL Structure (path only, no root url)>
-
Method:
| // This is a simple jQuery plugin that lets you grab the url parameter value and append it to any input you'd like . | |
| // | |
| // Example: | |
| // Your url is : http://myurl.com/?name=Jerry&last=Lopez&age=21 | |
| // | |
| // Now lets say you have a form that you want prefilled when a user visit the form. You can | |
| // can accomplish that with grabbit it will pull the name, last and age parameters then add | |
| // them to the input fields you specify. | |
| // | |
| // Usage: |
| /* | |
| * | |
| * Found at : http://jsfiddle.net/YxUHw/ | |
| * | |
| * You can use this to check all check boxes just in case you have a crap load | |
| * and there is no checkall button. | |
| * | |
| */ | |
| (function () { | |
| var checkboxes = document.querySelectorAll('input[type=checkbox]'); |
| SET FOREIGN_KEY_CHECKS = 0; | |
| TRUNCATE TABLE `cms_block`; | |
| TRUNCATE TABLE `cms_block_store`; | |
| TRUNCATE TABLE `cms_page`; | |
| TRUNCATE TABLE `cms_page_store`; | |
| SET FOREIGN_KEY_CHECKS = 1; |
| <?php | |
| /** | |
| * Convert a comma separated file into an associated array. | |
| * The first row should contain the array keys. | |
| * | |
| * Example: | |
| * | |
| * @param string $filename Path to the CSV file | |
| * @param string $delimiter The separator used in the file | |
| * @return array |
| <?php echo $this->getSkinUrl(‘images/ sampleimage.gif’,array(‘_secure’=> Mage::app()->getStore()->isCurrentlySecure())) ?> |
| /* Related Products */ | |
| SELECT e.sku as sku, GROUP_CONCAT(ee.sku) as related_product FROM catalog_product_link l | |
| INNER JOIN catalog_product_entity e on e.entity_id=l.product_id | |
| INNER JOIN catalog_product_entity ee on ee.entity_id=l.linked_product_id | |
| WHERE l.link_type_id=1 | |
| GROUP BY e.sku | |
| /* Crosssell Products */ | |
| SELECT e.sku as sku, GROUP_CONCAT(ee.sku) as crossel_product FROM catalog_product_link l | |
| INNER JOIN catalog_product_entity e on e.entity_id=l.product_id |
| #!/bin/bash | |
| # Author: Erik Kristensen | |
| # Email: erik@erikkristensen.com | |
| # License: MIT | |
| # Nagios Usage: check_nrpe!check_docker_container!_container_id_ | |
| # Usage: ./check_docker_container.sh _container_id_ | |
| # | |
| # Depending on your docker configuration, root might be required. If your nrpe user has rights | |
| # to talk to the docker daemon, then root is not required. This is why root privileges are not |
| <?php | |
| /* | |
| replace show_in_price_search_engine with your attr code | |
| replace General with antoher Tab | |
| */ | |
| $dir = dirname(__FILE__); | |
| chdir($dir); |
| get_latest_release() { | |
| curl --silent "https://api.github.com/repos/$1/releases/latest" | # Get latest release from GitHub api | |
| grep '"tag_name":' | # Get tag line | |
| sed -E 's/.*"([^"]+)".*/\1/' # Pluck JSON value | |
| } | |
| # Usage | |
| # $ get_latest_release "creationix/nvm" | |
| # v0.31.4 |