Backstory: I decided to crowdsource static site generator recommendations, so the following are actual real world suggested-to-me results. I then took those and sorted them by language/server and, just for a decent relative metric, their Github Watcher count. If you want a heap of other projects (including other languages like Haskell and Python) Nanoc has the mother of all site generator lists. If you recommend another one, by all means add a comment.
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
# | |
# = Capistrano database.yml task | |
# | |
# Provides a couple of tasks for creating the database.yml | |
# configuration file dynamically when deploy:setup is run. | |
# | |
# Category:: Capistrano | |
# Package:: Database | |
# Author:: Simone Carletti <[email protected]> | |
# Copyright:: 2007-2010 The Authors |
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 'bundler/capistrano' | |
default_run_options[:pty] = true | |
set :application, 'example' | |
# repo | |
set :scm, :git | |
set :repository, "[email protected]:mariusbutuc/#{application}.git" | |
set :branch, 'master' | |
# deploy |
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 | |
# Apt-install various things necessary for Ruby etc., | |
# and remove optional things to trim down the machine. | |
apt-get -y update | |
apt-get -y upgrade | |
apt-get -y install linux-headers-$(uname -r) build-essential | |
apt-get -y install zlib1g-dev libssl-dev libreadline-gplv2-dev libyaml-dev | |
apt-get -y install vim | |
apt-get -y install git-core |
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
var events = require('events'); | |
var eventEmitter = new events.EventEmitter() | |
function mainLoop() { | |
console.log('starting application'); | |
eventEmitter.emit('AppStart'); | |
console.log('Running App'); | |
eventEmitter.emit('AppRun'); |
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 (master)]$ node app.js | |
/Users/marius/Projects/spa/explore-node/express/app.js:2 | |
var app = express(); | |
^ | |
TypeError: object is not a function | |
at Object.<anonymous> (/Users/marius/Projects/spa/explore-node/express/app.js:2:11) | |
at Module._compile (module.js:449:26) | |
at Object.Module._extensions..js (module.js:467:10) | |
at Module.load (module.js:356:32) |
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
# Git tab completion | |
source ~/git-completion.bash | |
# Show branch in status line | |
PS1='[\W$(__git_ps1 " (%s)")]\$ ' | |
export PROMPT_COMMAND='echo -ne "\033]0;${PWD/#$HOME/~}\007"' |
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/sh | |
########################################################### | |
# | |
# Take online backup of MOODLE2 and store it in S3 script. | |
# | |
########################################################### | |
echo '\n\n################# New MOODLE2 backup ################################################################' >> moodle2_backup.log | |
export DATABASE=MOODLE2 |
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 | |
# Argument = -e email -u username -i initials -v | |
usage() | |
{ | |
cat << EOF | |
usage: $0 options | |
This script creates a new dev/test user on imcloud-devtest.torolab.ibm.com. |
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 | |
clear | |
case "$2" in | |
master) branches=(test develop master);; | |
dev) branches=(test develop);; | |
*) branches=(test);; | |
esac | |
for branch in ${branches[*]} |