Launch the instance and connect with ssh.
##Update the server
sudo yum update
##Install php and MySQL packages
(function(){ | |
var re = /(^127\.0\.0\.1)|(^10\.)|(^172\.1[6-9]\.)|(^172\.2[0-9]\.)|(^172\.3[0-1]\.)|(^192\.168\.)|localhost/; | |
if(re.test(window.location.hostname)) return; | |
var _gaq=[['_setAccount','UA-23156659-1'],['_trackPageview'],['_trackPageLoadTime']]; | |
(function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];g.async=1; | |
g.src=('https:'==location.protocol?'//ssl':'//www')+'.google-analytics.com/ga.js'; | |
s.parentNode.insertBefore(g,s)}(document,'script')); | |
})(); |
Launch the instance and connect with ssh.
##Update the server
sudo yum update
##Install php and MySQL packages
Kind of continue from the other gist how to install LAMP on an Amazon AMI
##Install git
sudo yum install git-core
##Create ssh directory since it doesn't exists by default on the Amazon AMI
This gist should give you a starting point, of how to implement the monocle framework.
The framework can much more. Check the examples in the test folder.
Make sure you have the monocle framework present in the folder js
. You should clone it with git but you can also download it via the Download button.
<!DOCTYPE html> | |
<head> | |
<title>4sq image request</title> | |
<script type="text/javascript" src="jquery-1.6.2.js"></script> | |
<script type="text/javascript"> | |
// set the following appropriately | |
var testUrl4sq = "XXX", | |
bitlyUsername = "XXX", | |
bitlyApiKey = "XXX", |
<?xml version="1.0" encoding="UTF-8" standalone="no"?> | |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<title>Kafka</title> | |
</head> | |
<body> | |
<div><p>Jemand mußte Josef K. verleumdet haben, denn ohne daß er etwas | |
Böses getan hätte, wurde er eines Morgens verhaftet. Die Köchin der | |
Frau Grubach, seiner Zimmervermieterin, die ihm jeden Tag gegen |
import datetime | |
from south.db import db | |
from south.v2 import SchemaMigration | |
from django.db import models | |
class Migration(SchemaMigration): | |
def forwards(self, orm): | |
# Adding field 'Epub.date_published' |
var start = new Date(); | |
for (var i=0; i < 10; i++) { | |
// the action | |
}; | |
diff = new Date() - start; | |
console.log(diff); |
<snippet> | |
<content><![CDATA[console.log(${1:});]]></content> | |
<tabTrigger>log</tabTrigger> | |
<scope>source.js</scope> | |
<description>console.log()</description> | |
</snippet> |