Skip to content

Instantly share code, notes, and snippets.

View lukebranch's full-sized avatar

Luke Branch lukebranch

View GitHub Profile
@eperrotta
eperrotta / PATCH-rev-slider-SUPEE-8788.diff
Last active April 25, 2018 09:10
This is a patch for the Revolution Slider Magento Extension to make it compatible with the last SUPEE-8788 Magento Patch.
diff --git a/app/design/adminhtml/default/default/layout/nwdthemes/nwdrevslider.xml b/app/design/adminhtml/default/default/layout/nwdthemes/nwdrevslider.xml
index 41dc890..16eedb0 100755
--- a/app/design/adminhtml/default/default/layout/nwdthemes/nwdrevslider.xml
+++ b/app/design/adminhtml/default/default/layout/nwdthemes/nwdrevslider.xml
@@ -50,9 +50,10 @@
<action method="addJs"><script>extjs/ext-tree.js</script></action>
<action method="addJs"><script>extjs/fix-defer.js</script></action>
<action method="addJs"><script>extjs/ext-tree-checkbox.js</script></action>
- <action method="addJs"><script>lib/flex.js</script></action>
- <action method="addJs"><script>lib/FABridge.js</script></action>
class RedisSessionStore(SessionStore):
def __init__(self, expire = 1800, key_prefix=''):
SessionStore.__init__(self)
self.redis = redis.Redis(tools.config.get('redis_host', 'localhost'),
int(tools.config.get('redis_port', 6379)),
int(tools.config.get('redis_dbindex', 1)),
password=tools.config.get('redis_pass', None))
self.path = session_path()
self.expire = expire
self.key_prefix = key_prefix
@tegansnyder
tegansnyder / hhvm_magento_setup.md
Last active July 14, 2023 22:30
HHVM Magento Server Setup

I've had the opertunity to try a variety of different server configurations but never really got around to trying HHVM with Magento until recently. I thought I would share a detailed walkthrough of configuring a single instance Magento server running Nginx + Fast CGI + HHVM / PHP-FPM + Redis + Percona. For the purpose of this blog post I'm assuming you are using Fedora, CentOS, or in my case RHEL 6.5.

Please note: I'm 100% open to suggestions. If you see something I did that needs to be done a different way, please let me know. I haven't included my Perconca my.conf file yet. I will shortly. Also I plan on trying this same test with HHVM 3.3 and PHP 7.

Install the EPEL, Webtatic, and REMI repos

rpm -Uvh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
rpm -Uvh http://mirror.webtatic.com/yum/el6/latest.rpm