kubectl -n kube-system create sa tiller
kubectl create clusterrolebinding tiller --clusterrole cluster-admin --serviceaccount=kube-system:tiller
helm init --service-account tiller
| FROM postgres:9.6.8 | |
| RUN apt-get update && apt-get install -y --no-install-recommends \ | |
| curl \ | |
| ca-certificates \ | |
| build-essential \ | |
| postgresql-server-dev-${PG_MAJOR} \ | |
| libssl-dev \ | |
| libkrb5-dev | |
| RUN mkdir -p /tmp/pgaudit && cd /tmp/pgaudit && curl -L https://github.com/pgaudit/pgaudit/archive/1.1.1.tar.gz | tar xz --strip 1 |
| listen l1 | |
| bind 0.0.0.0:443 | |
| mode tcp | |
| timeout connect 4000 | |
| timeout client 180000 | |
| timeout server 180000 | |
| server srv1 host.example.com:9443 |
| // Unity C# Cheat Sheet | |
| // I made these examples for students with prior exerience working with C# and Unity. | |
| // Too much? Try Unity's very good tutorials to get up to speed: https://unity3d.com/learn/tutorials/topics/scripting |
| module.exports = function(Base) { | |
| Base.beforeCreate = function (next, data) | |
| { | |
| this.created = new Date(); | |
| this.modified = new Date(); | |
| next(); | |
| }; | |
| Base.beforeSave = function (next, data) | |
| { |
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.
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| import java.io.BufferedReader; | |
| import java.io.IOException; | |
| import java.io.InputStream; | |
| import java.io.InputStreamReader; | |
| import java.util.Locale; | |
| import java.util.PropertyResourceBundle; | |
| import java.util.ResourceBundle; | |
| /** | |
| * UTF-8 γ¨γ³γ³γΌγγ£γ³γ°γγγγγγγγ£γγ‘γ€γ«γ {@link ResourceBundle} γ―γ©γΉγ§εγζ±γγ |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
| var Promise = require('bluebird'); | |
| var promiseWhile = function(condition, action) { | |
| var resolver = Promise.defer(); | |
| var loop = function() { | |
| if (!condition()) return resolver.resolve(); | |
| return Promise.cast(action()) | |
| .then(loop) | |
| .catch(resolver.reject); |
| <block type="cms/block" name="block_name"> | |
| <action method="setBlockId"><id>block_code</id></action> | |
| </block> | |
| {{block type="cms/block" block_id="block_code"}} | |
| {{block type="catalog/product_list" category_id="79" template="catalog/product/list_random.phtml"}} |