- Get Base Url :
Mage::getBaseUrl();
<html> | |
<body> | |
<a class="twitter-timeline" href="https://twitter.com/MASNYC" data-widget-id="635892957095305216">Tweets by @MASNYC</a> | |
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+"://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script> | |
</body> | |
</html> |
var pobReg = /\bbox(?:\b$|([\s|\-]+)?[0-9]+)|(p[\-\.\s]?o.?[\-\s]?|post office\s)b(\.|ox)?/igm; | |
/* | |
Matches: | |
po box | |
p.o.b. | |
pob | |
p.o. box | |
po-box |
require 'app/Mage.php'; | |
Mage::app(); | |
$order = Mage::getModel('sales/order')->loadByIncrementId('2323233'); | |
$order->setData('state', "complete"); | |
$order->setStatus("complete"); | |
$history = $order->addStatusHistoryComment('Order was set to Complete by SomethingDigital on 9/19.', false); | |
$history->setIsCustomerNotified(false); | |
$order->save(); | |
print_r("done processing"); |
<?php | |
require_once('app/Mage.php'); | |
umask(0); | |
Mage::app('admin'); | |
error_reporting(1); | |
set_time_limit(0); | |
ini_set('memory_limit', '2048M'); | |
// COPY Products From => To |
// All non-merge commits | |
reg = /^(.+?)(\n|$)/; ' * ' + Array.prototype.slice.call(document.querySelectorAll('.commit-message a')).map(el => el.title).filter(title => title && title.indexOf('Merge') !== 0).map(title => { var mm = title.match(reg); return mm && mm[1]; }).join("\n * "); | |
// Only merge commits | |
reg = /^[^#]+(#[0-9]+)[^\n]+\n\n((?:.|\n)+)$/; Array.prototype.slice.call(document.querySelectorAll('.commit-message a')).map(el => el.title).filter(title => title.indexOf('Merge') === 0).map(title => { var mm = title.match(reg); return mm && mm[2] + ' (' + mm[1] + ')'; }).join("\n * "); |
<?php | |
require_once('app/Mage.php'); | |
umask(0); | |
Mage::app(); | |
Mage::app()->setCurrentStore(Mage_Core_Model_App::ADMIN_STORE_ID); | |
ini_set('memory_limit', '2048M'); | |
$profile_id = 44; | |
$profile = Mage::getModel("dataflow/profile")->load($profile_id); |
This gives little more info than when you do 'git rebase -i'.
git log --oneline origin/master..HEAD --format="%h %s %ae" --reverse
Go through each commit # and remove what you don't need.