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/sh | |
# | |
# Script to prepare and restore full and incremental backups created with innobackupex-runner. | |
# | |
# This script is provided as-is; no liability can be accepted for use. | |
# | |
INNOBACKUPEX=innobackupex-1.5.1 | |
INNOBACKUPEXFULL=/usr/bin/$INNOBACKUPEX | |
TMPFILE="/tmp/innobackupex-restore.$$.tmp" |
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
#Random notes, rough sequence... use a paas. | |
#Percona mysql install | |
#http://www.percona.com/doc/percona-server/5.5/installation.html?id=percona-server:installation:from-repositories | |
#Create user | |
adduser deploy | |
passwd -l deploy | |
#Set ssh 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
module.exports = (grunt) -> | |
timestamp = Date.now().toString | |
gitSha ='<%= gitinfo.local.branch.current.shortSHA %>' | |
grunt.initConfig | |
env: grunt.file.readJSON '.env.json' | |
replace: | |
prod: | |
src: ['dist/*.html'] |
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
# | |
# Ubuntu 14.04 LTS (Trusty Tahr) | |
# | |
# Basic packages i usually install | |
# | |
# Author: Julius Beckmann <github@h4cc.de> | |
# | |
.PHONY: all preparations update upgrade graphics darktable networking google_chrome dropbox archives media pandoc system harddisk docker ansible filesystem apache2 php mysql memcached mongodb tools encfs_manager nautilus httpie erlang elixir openoffice owncloud x230_fingerprint couchdb google-cloud-print-install google-cloud-print-setup |
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
export PATH="/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:/opt/subversion/bin/:$PATH" | |
# command prompt | |
function parse_git_branch { | |
git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/' | |
} | |
function proml { | |
local BLUE="\[\033[0;36m\]" | |
local RED="\[\033[0;31m\]" | |
local LIGHT_RED="\[\033[1;31m\]" |
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
# Runs `git push` before `cap deploy` | |
# Otherwise just passes through to `cap` | |
function cap { | |
CAP="`which cap`" | |
if [[ "$1" == "deploy" || "$2" == "deploy" ]]; then | |
git push && $CAP $* | |
else | |
$CAP $* | |
fi | |
} |
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
rescue ActiveRecord::StatementInvalid => e | |
puts "*"*10 | |
puts "Error message: #{e}" | |
puts "*"*10 |
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
# Application | |
class App < Sinatra::Base | |
set :hi, "Hello" | |
configure :test do | |
set :hi, "Hello There!" | |
end | |
end | |
# Registering a extention |
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
Rails CMS alternatives | |
====================== | |
Active projects: | |
--------------- | |
adva-cms | |
repo: http://github.com/svenfuchs/adva_cms/ | |
site: http://adva-cms.org/ | |
Last update: 11/24/09 | |
"the cutting edge Rails CMS platform" |
OlderNewer