Skip to content

Instantly share code, notes, and snippets.

development:
adapter: mysql2
encoding: utf8
database: my_database
username: root
password:
@groovehunter
groovehunter / podgitdiscover.sh
Created February 20, 2012 23:47
discover git details from commit id for diaspora pods
#!/bin/bash
declare -a podlist=( `cat "pods.csv" `)
cd /srv/projektstuff/data/dev/diaspora/diaspora
declare -a remotes=( `git remote` )
rm result.csv
touch result.csv
echo "pod, fork, branch, commit id" >> result.csv
@groovehunter
groovehunter / bundle_gems_overview_table
Created January 8, 2012 21:34
Display table with all gems in a bundle, each with ie. summary and description, render in markdown table
require "rubygems"
require "bundler"
dia = '/var/www/vhosts/diaspora'
Dir.chdir dia
def allm obj
obj.methods.sort.each { |m|
puts m
}
@groovehunter
groovehunter / gem-list-spec-details.sh
Created January 3, 2012 13:16
Print name and description of all gems (in bundle)
#!/bin/bash
for gem in `gem list|cut -d" " -f 1`
do
gem specification $gem name
gem specification $gem description
done