- install mosca
- admin user should have read permission on /etc/mosca
- admin user should have write permission on /var/log/mosca
- copy
config.json and credentials.json
to /etc/mosca
$ sudo npm install -g mosca
// You'll need configuration like this to get MongoDB up and running with Grails on AppFog | |
// This config will also work locally | |
grails { | |
def vcap = System.env.VCAP_SERVICES | |
def credentials = vcap ? grails.converters.JSON.parse(vcap)["mongodb-1.8"][0]["credentials"] : null | |
mongo { | |
host = credentials ? credentials.hostname : "localhost" | |
port = credentials ? credentials.port : "27017" | |
username = credentials ? credentials.username : null |
# file: plugins/dicecourse/observers/post_dice_observer.rb | |
class PostDiceObserver < ActiveRecord::Observer | |
observe :post | |
def after_create(model) | |
Rails.logger.debug "After Create on Post triggered" | |
#roll some dice | |
end | |
end |
set-option -g prefix C-s | |
unbind-key C-b | |
set -g default-terminal "xterm-256color" | |
set-option -g mouse-select-pane on | |
set-option -g mouse-resize-pane on | |
set-option -g mouse-utf8 on | |
set-option -g mouse-select-window on | |
set-window-option -g mode-mouse on |
set nocompatible " be iMproved, required | |
filetype off " required | |
" set the runtime path to include Vundle and initialize | |
set rtp+=~/.vim/bundle/Vundle.vim | |
call vundle#begin() | |
" alternatively, pass a path where Vundle should install plugins | |
"call vundle#begin('~/some/path/here') |
# Build47 theme by Dave Jensen (http://www.build47.com) | |
# Use with a dark background and 256-color terminal! | |
# You can set your computer name in the ~/.box-name file if you want. | |
# Borrowing shamelessly from these oh-my-zsh themes: | |
# bira | |
# robbyrussell | |
# fino |
From https://gist.github.com/3050224
From http://blog.smartcore.net.au/smartos-the-basics/
# Path to your oh-my-zsh installation. | |
export ZSH=$HOME/.oh-my-zsh | |
# Set name of the theme to load. | |
# Look in ~/.oh-my-zsh/themes/ | |
# Optionally, if you set this to "random", it'll load a random theme each | |
# time that oh-my-zsh is loaded. | |
ZSH_THEME="build47" | |
# ZSH_THEME="bureau" |
n=$(which node);n=${n%/bin/node}; chmod -R 755 $n/bin/*; sudo cp -r $n/{bin,lib,share} /usr/local |
$ g++ -std=c++0x -fexceptions -dM -E -c ast.cpp | |
#define sa_sigaction _funcptr._sigaction | |
#define __CORRECT_ISO_CPP_STDLIB_H_PROTO 1 | |
#define _CS_POSIX_V6_LP64_OFF64_CFLAGS 808 | |
#define __DBL_MIN_EXP__ (-1021) | |
#define _STL_PAIR_H 1 | |
#define _CS_POSIX_V6_ILP32_OFFBIG_LIBS 806 | |
#define HUGE_VAL (__builtin_huge_val()) | |
#define M_SQRT1_2 0.70710678118654752440 | |
#define _SYS_FEATURE_TESTS_H |