Launch the instance and connect with ssh.
##Update the server
sudo yum update
##Install php and MySQL packages
import Ember from 'ember'; | |
const { computed } = Ember; | |
export default Ember.Controller.extend({ | |
appName:'Ember Twiddle', | |
entries: [ | |
{ | |
id: 1, | |
name: 'Eric', | |
author: { |
{ | |
"vars": { | |
"@gray-base": "#b49572", | |
"@gray-darker": "lighten(@gray-base, 13.5%)", | |
"@gray-dark": "lighten(@gray-base, 20%)", | |
"@gray": "lighten(@gray-base, 33.5%)", | |
"@gray-light": "lighten(@gray-base, 46.7%)", | |
"@gray-lighter": "lighten(@gray-base, 93.5%)", | |
"@brand-primary": "darken(#428bca, 6.5%)", | |
"@brand-success": "#5cb85c", |
## Configure eth0 | |
# | |
# vi /etc/sysconfig/network-scripts/ifcfg-eth0 | |
DEVICE="eth0" | |
NM_CONTROLLED="yes" | |
ONBOOT=yes | |
HWADDR=A4:BA:DB:37:F1:04 | |
TYPE=Ethernet | |
BOOTPROTO=static |
#!/bin/sh | |
# | |
# redis - this script starts and stops the redis-server daemon | |
# | |
# chkconfig: - 85 15 | |
# description: Redis is a persistent key-value database | |
# processname: redis-server | |
# config: /etc/redis/redis.conf | |
# config: /etc/sysconfig/redis | |
# pidfile: /var/run/redis.pid |
# This goes in vcl_recv | |
# It gives you: | |
# curl -X PURGE http://some.example.com/.* | |
# curl -X PURGE http://some.example.com/blog/.* | |
# curl -X PURGE http://some.example.com/blog/2011/bar.html | |
# curl -X PURGE http://another.example.com/.* | |
# | |
if (req.request == "PURGE") { | |
# Wildcard, per-domain purging | |
purge("req.http.host == " req.http.host " && req.url ~ " req.url "$"); |
Launch the instance and connect with ssh.
##Update the server
sudo yum update
##Install php and MySQL packages
class Bootstrap extends Zend_Application_Bootstrap_Bootstrap { | |
protected function _initNavigation() { | |
// make sure the layout is loaded | |
$this->bootstrap('layout'); | |
// get the view of the layout | |
$layout = $this->getResource('layout'); | |
$view = $layout->getView(); | |