-
Go to https://ngrok.com/ and create a free account. Write down the "auth token"
-
Login to your unibox and install ngrok:
sudo apt-get install ngrok-client
var page = require('webpage').create(); | |
page.viewportSize = { "width": 1024, "height": 1500 }; | |
page.clipRect = { "top": 530, "left": 20, "width": 650, "height": 541 }; | |
page.open('http://www.xe.com/currencycharts/?from=USD&to=EUR&view=1M', function() { | |
setTimeout(function() { | |
page.evaluate(function() { | |
document.body.bgColor = 'white'; | |
}); | |
page.render('xe.png'); | |
phantom.exit(); |
sudo su | |
apt-get update && apt-get install -y curl build-essential git libxml2-dev libxslt-dev libssl-dev | |
curl -L https://www.opscode.com/chef/install.sh | bash | |
/opt/chef/embedded/bin/gem install berkshelf --no-ri --no-rdoc | |
ln -s /opt/chef/embedded/bin/berks /usr/local/bin/berks |
sudo apt-get -y install samba | |
# Set a password for your user in Samba (use "vagrant" as password) | |
sudo smbpasswd -a vagrant | |
# Add this to /etc/samba/smb.conf | |
[www] | |
path = /var/www | |
available = yes | |
valid users = vagrant |
# Add this to the "setup" activity: | |
apt_repository "custom-php5-oldstable" do | |
uri "http://ppa.launchpad.net/ondrej/php5-oldstable/ubuntu" | |
distribution node['lsb']['codename'] | |
components ["main"] | |
keyserver "keyserver.ubuntu.com" | |
key "E5267A6C" | |
action :nothing | |
subscribes :add, "template[/etc/sudoers]", :immediately |
// Quick'n'dirty | |
// TODO: | |
// - store status in a cookie | |
// - restore status from cookie | |
// - prevent tab that contains active tabs from being collapsed | |
// - change icon when collapsed | |
// - change mouse pointer | |
$$('#system_config_tabs dt.label').each(function(s) { | |
s.observe('click', function(label) { | |
s.siblings().each(function(a) { a.toggle(); }) |
Go to https://ngrok.com/ and create a free account. Write down the "auth token"
Login to your unibox and install ngrok:
sudo apt-get install ngrok-client
<?php | |
class Mage_Core_Block_Template: | |
public function fetchView($fileName): | |
if (strpos($includeFilePath, realpath($this->_viewDir)) === 0 || $this->_getAllowSymlinks()) { | |
if (empty($includeFilePath)) { | |
Mage::log("Resulting in empty includeFilePath: $fileName"); | |
} else { |
--- app/code/local/Mage/Core/Block/Template.php 2015-08-04 02:46:44.204327968 +0000 | |
+++ app/code/core/Mage/Core/Block/Template.php 2015-08-04 02:46:46.504296112 +0000 | |
@@ -237,7 +237,7 @@ | |
try { | |
$includeFilePath = realpath($this->_viewDir . DS . $fileName); | |
- if (!empty($includeFilePath) && (strpos($includeFilePath, realpath($this->_viewDir)) === 0 || $this->_getAllowSymlinks())) { | |
+ if (strpos($includeFilePath, realpath($this->_viewDir)) === 0 || $this->_getAllowSymlinks()) { | |
include $includeFilePath; | |
} else { |
Index: lib/Varien/Cache/Core.php | |
=================================================================== | |
--- lib/Varien/Cache/Core.php (revision 63515) | |
+++ lib/Varien/Cache/Core.php (working copy) | |
@@ -70,7 +70,7 @@ | |
* @throws Zend_Cache_Exception | |
* @return boolean True if no problem | |
*/ | |
- public function save($data, $id = null, $tags = array(), $specificLifetime = false, $priority = 8) | |
+ public function save($data, $id = null, $tags = array(), $specificLifetime = false, $priority = 10) |