JSON
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
PUT /_river/jdbc_river_1/_meta | |
{ | |
"type" : "jdbc", | |
"jdbc" : { | |
"url": "jdbc:mysql://localhost:3306/yourDb", | |
"user": "login", | |
"password": "pass", | |
"sql" : "SELECT * FROM Transactions WHERE user_id = 1", | |
"index" : "my_jdbc_index", | |
"type" : "my_jdbc_type", |
This chassis houses up to 8 processing nodes. Each node is roughly equivilent to 30 elastic compute units. You can scale as needed by building and slotting more nodes into the chassis. Candidates for these nodes includes: app servers of any kind, ssl termination/reverse proxies, cache servers, distributed/concurrent processing, cron jobs, etc.
Barebone:
- 1x Supermicro 5038ML-H8TRF(http://www.supermicro.com/products/system/3U/5038/SYS-5038ML-H8TRF.cfm) $3750
Per node (up to 8):
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
// Disable bold. | |
term_.prefs_.set('enable-bold', false) | |
// Use this for Solarized Dark | |
term_.prefs_.set('background-color', "#002b36"); | |
term_.prefs_.set('foreground-color', "#839496"); | |
term_.prefs_.set('color-palette-overrides', [ | |
'#073642', | |
'#dc322f', |
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
[alias] | |
ci = commit -a | |
cl = clean -dfx | |
cc = cherry-pick | |
ff = merge --ff-only | |
fx = commit -a --amend -C HEAD | |
ix = diff --cached | |
st = status -sb | |
fap = fetch --all --prune | |
hist = log --all --graph --color=always --pretty='[%C(cyan)%h%Creset]%C(bold cyan)%d%Creset %s' |
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
-- PostgreSQL 9.2 beta (for the new JSON datatype) | |
-- You can actually use an earlier version and a TEXT type too | |
-- PL/V8 http://code.google.com/p/plv8js/wiki/PLV8 | |
-- Inspired by | |
-- http://people.planetpostgresql.org/andrew/index.php?/archives/249-Using-PLV8-to-index-JSON.html | |
-- http://ssql-pgaustin.herokuapp.com/#1 | |
-- JSON Types need to be mapped into corresponding PG types | |
-- |
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
# !/bin/bash | |
# Copyright (c) 2011 Float Mobile Learning | |
# http://www.floatlearning.com/ | |
# | |
# Permission is hereby granted, free of charge, to any person obtaining | |
# a copy of this software and associated documentation files (the "Software"), | |
# to deal in the Software without restriction, including without limitation | |
# the rights to use, copy, modify, merge, publish, distribute, sublicense, | |
# and/or sell copies of the Software, and to permit persons to whom the |
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
# Update, upgrade and install development tools: | |
apt-get update | |
apt-get -y upgrade | |
apt-get -y install build-essential | |
apt-get -y install git-core | |
# Install rbenv | |
git clone git://github.com/sstephenson/rbenv.git /usr/local/rbenv | |
# Add rbenv to the path: |
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
express = require "express" | |
sys = require "sys" | |
util = require "util" | |
oauth = require "oauth" | |
fs = require "fs" | |
app = module.exports = express.createServer() | |
app.configure('development', () -> | |
app.use(express.errorHandler({ dumpExceptions: true, showStack: true })) |
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
cp -R path/to/old/release app_0.9 | |
cp -R path/to/new/release app_1.0 | |
cp app_1.0/releases/1.0/app.rel app_1.0.rel | |
LIBPATH="app_0.9/releases/*/ */lib/*/ebin" | |
erl +Bd -noinput -noshell -pa $LIBPATH -eval 'systools:make_relup("app_1.0", ["app"], ["app"])' -run init stop | |
erl +Bd -noinput -noshell -pa $LIBPATH -eval 'systools:make_script("app_1.0", [] )' -run init stop | |
erl +Bd -noinput -noshell -pa $LIBPATH -eval 'systools:make_tar("app_1.0")' -run init stop | |
tar zxvf app_1.0.tar.gz | |
cp app_1.0/releases/1.0/start_clean.boot releases/1.0/ | |
cd releases/1.0/ |