This file contains 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
# You can override these if you want in environment initializers: | |
COUCHDB_HOST = 'http://127.0.0.1:5984' unless defined?(COUCHDB_HOST) | |
COUCHDB_DB_NAME = "learnhub_#{Rails.env}" unless defined?(COUCHDB_DB_NAME) | |
# This stuff should stay here: | |
COUCHDB_SERVER = CouchRest.new(COUCHDB_HOST) | |
COUCHDB_DATABASE = COUCHDB_SERVER.database!(COUCHDB_DB_NAME) | |
CouchRest::Model.default_database = COUCHDB_DATABASE |
This file contains 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
default_run_options[:pty] = true | |
load 'deploy' if respond_to?(:namespace) # cap2 differentiator | |
require 'capistrano' | |
require 'rubygems' | |
require 'railsless-deploy' | |
set :application, "vault42.org" | |
set :deploy_to, "/usr/local/www/#{application}" | |
set :backup_dir, "/home/tomislav/backup" | |
set :use_sudo, false |
This file contains 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
/* | |
* HTML5 ✰ Boilerplate | |
* | |
* What follows is the result of much research on cross-browser styling. | |
* Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal, | |
* Kroc Camen, and the H5BP dev community and team. | |
* | |
* Detailed information about this CSS: h5bp.com/css | |
* | |
* ==|== normalize ========================================================== |
This file contains 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
# This is an event.d (upstart) script to keep monit running. | |
# To install disable the old way of doing things: | |
# | |
# /etc/init.d/monit stop && update-rc.d -f monit remove | |
# | |
# then put this script here: | |
# | |
# /etc/init/monit.conf | |
# | |
# and reload upstart configuration: |
This file contains 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
var genSignedParamString = function(userID, secret, cmd, params) { | |
params.userid = userID; | |
params.command = cmd; | |
var paramKeys = []; | |
for(var key in params) { | |
if(params.hasOwnProperty(key)){ | |
paramKeys.push(key); | |
}; | |
}; |
This file contains 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
using ServiceStack.WebHost.Endpoints; | |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Net; | |
using System.Security; | |
using ServiceStack.Common.Web; | |
using ServiceStack.Logging; | |
using ServiceStack.ServiceHost; | |
using ServiceStack.ServiceInterface; |
This file contains 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 | |
# This is a simple build script and will be executed on your CI system if | |
# available. Otherwise it will execute while your application is stopped | |
# before the deploy step. This script gets executed directly, so it | |
# could be python, php, ruby, etc. | |
tarball="https://go.googlecode.com/files/go1.0.3.linux-amd64.tar.gz" | |
# Set GOROOT since we don't use GOROOT_FINAL | |
mkdir -p $OPENSHIFT_HOMEDIR/app-root/data/go |
This file contains 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
var config = require('./config'); | |
var nano = require('nano')(config.db); | |
var express = require('express'); | |
var async = require("async"); | |
var app = express(); | |
var modelDoc = { | |
language: "javascript", | |
views: { | |
all: { |
This file contains 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
var fs = require('fs'), | |
url = require('url'); | |
module.exports = function (rootDir, indexFile) { | |
indexFile = indexFile || "index.html"; | |
rootDir = rootDir || ''; | |
var rootPart = rootDir.length > 0 ? rootDir + '/' : ''; | |
return function(req, res, next){ | |
var path = url.parse(req.url).pathname; |
This file contains 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
--============================== | |
-- Send Keynote Text to Desktop Markdown File | |
-- Writted By: Richard Dooling https://github.com/RichardDooling/ | |
-- Based on | |
-- Send Keynote Presenter Notes to Evernote | |
-- Version 1.0.1 | |
-- Written By: Ben Waldie <[email protected]> | |
-- http://www.automatedworkflows.com | |
-- Version 1.0.0 - Initial release |
OlderNewer