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
require 'net/dns/resolver' | |
# Custom Domain | |
# | |
# Require net-dns gem | |
# | |
# A Rack middleware to to resolve the custom domain to original subdomain | |
# for your multi telent application. | |
# | |
# It's all transperant to your application, it performs cname lookup and |
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
# Transforms the styles to HTML-Tags | |
styled_span_to_formatting_tags = lambda do |env| | |
original_node = env[:node] | |
wrap_with_tags = [] | |
if original_node.name == "span" && original_node.has_attribute?("style") | |
css_rules = original_node.attribute("style").value.split(";") | |
wrap_with_tags = css_rules.collect do |css_rule| | |
case css_rule.strip | |
when /^text-decoration:\s*underline$/ then "u" |
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
#!/usr/bin/env bash | |
RUBY_VERSION=1.9.3-p194 | |
if [ -n `which yum` ] | |
then | |
# This is necessary for the Amazon Linux AMI | |
perl -pi -e 's/^(Defaults\s+secure_path.*)$/\1:\/usr\/local\/bin:\/usr\/local\/sbin/g' /etc/sudoers | |
yum update -y | |
yum install -y gcc-c++ patch readline readline-devel zlib zlib-devel \ |
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
+---------------+ | |
| Conversation |0..* initiator 1+-------+1 | |
|---------------|+---------------------+| User |+----+ | |
|title | +-------+ | | |
|body | | | |
|started_at | | | |
| |0..* project 1+---------+ | | |
| |+---------------------+| Project | | participant | |
| | +---------+ | | |
| | | |