Stop using Ruby to back up the postgres database in your Rails app. Use bash instead!
##Install:
cd /usr/local/bin
git clone https://gist.github.com/4552332.git db_backup
chmod +x db_backup/db_backup.sh
# download, from_repo, and commit_state methods swiped from | |
# http://github.com/Sutto/rails-template/blob/07b044072f3fb0b40aea27b713ca61515250f5ec/rails_template.rb | |
require 'open-uri' | |
def download(from, to = from.split("/").last) | |
#run "curl -s -L #{from} > #{to}" | |
file to, open(from).read | |
rescue | |
puts "Can't get #{from} - Internet down?" |
.DS_Store | |
*.csv | |
upstream app { | |
server unix:/srv/app/current/tmp/sockets/unicorn.sock fail_timeout=0; | |
} | |
server { | |
listen 80; | |
server_name www.app.com; | |
rewrite ^/(.*) http://app.com/$1 permanent; | |
} | |
server { |
[alias] | |
stage = !sh -c '[[ -z "$@" ]] && git add -u || git add "$@" && git add -u "$@" ' - | |
unstage = reset HEAD -- | |
rewind = ![[ -z "$@" ]] && git reset --hard HEAD || git checkout HEAD |
require 'octokit' | |
require 'csv' | |
require 'date' | |
# Github credentials to access your private project | |
USERNAME="USER_NAME" | |
PASSWORD="SEKRIT" | |
# Project you want to export issues from | |
USER="REPO_OWNER" | |
PROJECT="REPO_NAME" |
http://web.archive.org/web/20090918202746/http://tothink.com/mnemonic/wordlist.html
From http://web.archive.org/web/20090918202746/http://tothink.com/mnemonic/wordlist.html | |
Word selection criteria: | |
- The wordlist contains 1626 words. | |
- All words are between 4 and 7 letters long. | |
- No word in the list is a prefix of another word (e.g. visit, visitor). | |
- Five letter prefixes of words are sufficient to be unique. | |
The rest of the criteria are less strict. You may find exceptions to all of them because it is difficult to satisfy them all at the same time. | |
- The words should be usable by people all over the world. The list is far from perfect in that respect. It is heavily biased towards western culture and English in particular. The international vocabulary is simply not big enough. One can argue that even words like "hotel" or "radio" are not truly international. You will find many English words in the list but I have tried to limit them to words that are part of a beginner's vocabulary or words that have close relatives in other european languages. In some cases a word has a different meaning |