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
Compare Github branches | |
https://github.com/PayEx/PayEx.Magento/compare/v3.0.2...v3.0.3 |
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://github.com/ejwa/gitinspector | |
cd /var/www/gitinspector | |
export LANG=fr | |
REPO=/var/www/ESD3R/ | |
DEST=~ |
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 | |
# src : https://gist.github.com/mehdichaouch/70d0dffdb34462cdf2716d4acb3a5cfc | |
# http://stackoverflow.com/a/9739058 | |
current_branch=$(git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\1/') | |
if [ "$current_branch" != "master" ]; then | |
echo "WARNING: You are on branch $current_branch, NOT master." | |
fi | |
echo -e "Fetching merged branches...\n" |
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 | |
// http://inchoo.net/magento/emulate-store-in-magento/ | |
$appEmulation = Mage::getSingleton('core/app_emulation'); | |
//Start environment emulation of the specified store | |
$initialEnvironmentInfo = $appEmulation->startEnvironmentEmulation($storeId); | |
/* | |
* Any code thrown here will be executed as we are currently running that store |
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
(function(){document.getElementById('Ecom_Payment_Card_Number').value=4111111111111111;document.getElementById('Ecom_Payment_Card_ExpDate_Month').selectedIndex=12;document.getElementById('Ecom_Payment_Card_ExpDate_Year').selectedIndex=2;document.getElementsByName('Comp_Expirydate')[0].value=201712;document.getElementById('Ecom_Payment_Card_Verification').value=123;document.getElementById('submit3').click();})(); |
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
(function(){var doc=document;var text=doc.getElementsByClassName('issue-table-container')[0];if(doc.body.createTextRange){/* ms */var range=doc.body.createTextRange();range.moveToElementText(text);range.select();}else if(window.getSelection){/* moz, opera, webkit */var selection=window.getSelection();var range=doc.createRange();range.selectNodeContents(text);selection.removeAllRanges();selection.addRange(range);}})(); |
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
(function(){s=document.getElementsByClassName('search_bar__form__input');s[0]?window.open('https://google.com/#q='+s[0].value,'_parent'):alert('You are not on Qwant page dude!')})(); |
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 | |
$product = $this->getProduct(); | |
// return no link in case of zero night | |
if (is_null($product->getData('nights'))) { | |
return '#'; | |
} | |
$language = Mage::getStoreConfig('general/locale/code'); | |
$country = $dcsInfo->getData('country'); |
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 | |
find ./var/cache/* -not \( -path "./var/cache/sessions" -prune \) -exec rm -rf {} \; |
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
walk(document.body); | |
setTimeout(function() { | |
walk(document.body); | |
}, 1000); | |
function walk(node) | |
{ | |
// Source: http://is.gd/mwZp7E | |
var child, next; |