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
class AppServerConfig | |
attr_accessor :port, :admin_password | |
end | |
class Configuration | |
attr_accessor :tail_logs, :max_connections, :admin_password | |
def initialize | |
@app_server_config = AppServerConfig.new | |
end |
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
require "resque" | |
require "resque/failure/multiple" | |
require "resque/failure/redis" | |
require 'exceptional' | |
# Configure Resque connection from config/resque.yml. This file should look | |
# something like: | |
# development: localhost:6379 | |
# test: localhost:6379:15 | |
# production: localhost:6379 |
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
<!-- Would you specify: --> | |
<script type="text/x-handlebars" data-template-name="user"> | |
{{content.name}} | |
<a href="#" {{action "logout" target="App.currentUserController"}}>Logout</a> | |
</script> | |
<!-- or --> | |
<script type="text/x-handlebars" data-template-name="user"> |
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
#!/usr/bin/env bash | |
sudo apt-get -y update | |
sudo apt-get -y install build-essential zlib1g-dev libssl-dev libreadline6-dev libyaml-dev | |
cd /tmp | |
wget ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p362.tar.gz | |
tar -xvzf ruby-1.9.3-p362.tar.gz | |
cd ruby-1.9.3-p362/ | |
./configure --prefix=/usr/local | |
make | |
sudo make install |
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
source 'https://rubygems.org' | |
gem 'rails', '3.2.6' | |
# Bundle edge Rails instead: | |
# gem 'rails', :git => 'git://github.com/rails/rails.git' | |
gem 'sqlite3' | |
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
<div class="row-fluid"> | |
<div class="well span4"> | |
<h4>Complaint</h4> | |
<ul class="unstyled"> | |
<li><i class="icon-user"></i>Tim Dyer</li> | |
<li><i class="icon-time"></i>30/06/12 @ 8.15pm</li> | |
</ul> | |
<ul class="unstyled task_list nav nav-list"> | |
<li><a href="#" class="btn-success"><i class="icon-ok"></i> Complaint Info</a></li> | |
<li><a href="#" class="btn-warning"><i class="icon-exclamation-sign"></i> Branch Info</a></li> |
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
#! /usr/bin/env ruby | |
local_ip = `ifconfig en0`.match(/inet (\d+\.\d+\.\d+\.\d+)/)[1] | |
appname = Dir.getwd[/(\w+)\z/] | |
puts "http://#{appname}.#{local_ip}.xip.io" |
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
require 'formula' | |
class TmuxIterm2 < Formula | |
url 'http://www.emergeadapt.com.s3.amazonaws.com/tmux-for-iTerm2-20120726.tar.gz' | |
md5 'cfa770d23b11c8f34e139f4608a49d71' | |
homepage 'http://github.com/gnachman/tmux2' | |
depends_on 'libevent' | |
def install |
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
cd ~ | |
sudo apt-get update | |
sudo apt-get install openjdk-7-jre lvm2 mdadm -y | |
wget https://github.com/downloads/elasticsearch/elasticsearch/elasticsearch-0.19.11.tar.gz -O elasticsearch.tar.gz | |
tar -xf elasticsearch.tar.gz | |
rm elasticsearch.tar.gz | |
sudo mv elasticsearch-* elasticsearch | |
sudo mv elasticsearch /usr/local/share |
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.UsersController = App.BaseController.extend | |
inEditMode: false | |
newUser : (event) -> | |
@navigateTo( '#cb/users/new') | |
false | |
saveUser : (event) -> | |
App.store.commit() | |
false | |
cancelSaveUser : (event) -> | |
@goBack() |
OlderNewer