This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# All Vagrant configuration is done below. The "2" in Vagrant.configure | |
# configures the configuration version (we support older styles for | |
# backwards compatibility). Please don't change it unless you know what | |
# you're doing. | |
Vagrant.configure(2) do |config| | |
# The most common configuration options are documented and commented below. | |
# For a complete reference, please see the online documentation at |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"log" | |
"bytes" | |
"regexp" | |
"strings" | |
"net/smtp" | |
"text/template" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
|-- app.js | |
|-- index.html | |
|-- requires | |
| `-- test.js | |
`-- views | |
|-- test1.js | |
`-- test2.js |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ gem install vagrant | |
$ vagrant -v | |
Vagrant version 1.2.2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ npm install -g typescript |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
description "supervisord" | |
start on runlevel [2345] | |
stop on runlevel [!2345] | |
respawn | |
exec /usr/bin/supervisord -n |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
db.access.save({user_id:'A001',status:200,create_dt:ISODate("2013-06-10T15:00:00Z")}); | |
db.access.save({user_id:'A001',status:300,create_dt:ISODate("2013-06-10T15:00:00Z")}); | |
db.access.save({user_id:'A002',status:200,create_dt:ISODate("2013-06-10T15:00:00Z")}); | |
db.access.save({user_id:'A002',status:300,create_dt:ISODate("2013-06-10T15:00:00Z")}); | |
db.access.save({user_id:'A002',status:500,create_dt:ISODate("2013-06-10T15:00:00Z")}); | |
db.access.save({user_id:'A003',status:200,create_dt:ISODate("2013-06-10T15:00:00Z")}); | |
db.access.save({user_id:'A003',status:300,create_dt:ISODate("2013-06-10T15:00:00Z")}); | |
db.access.save({user_id:'A001',status:200,create_dt:ISODate("2013-06-11T15:00:00Z")}); | |
db.access.save({user_id:'A002',status:200,create_dt:ISODate("2013-06-11T15:00:00Z")}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use nginx | |
db.access.save({status:200}); | |
db.access.save({status:200}); | |
db.access.save({status:200}); | |
db.access.save({status:200}); | |
db.access.save({status:300}); | |
db.access.save({status:400}); | |
db.access.save({test:123}); | |
db.access.find(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* http://pivotal.github.io/jasmine/ | |
*/ | |
describe("Hello Test", function() { | |
it("test", function() { | |
var a = 'test';//actual テストする値 | |
var e = 'test';//expect 期待値 | |
expect(a).toEqual(e); | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ sudo su | |
$ cd /usr/local/src | |
$ wget http://redis.googlecode.com/files/redis-2.6.12.tar.gz | |
$ tar xzf redis-2.6.12.tar.gz | |
$ cd redis-2.6.12 | |
$ make;make install | |
$ ln -s /usr/local/src/redis-2.6.12 /usr/local/redis | |
$ sudo mkdir -pv /var/data/redis | |
$ sudo chown -R root:wheel /var/data/redis |