I hereby claim:
- I am croaker on github.
- I am dgruenthal (https://keybase.io/dgruenthal) on keybase.
- I have a public key ASAwQbv5obh8XfQf_2il3bbj9D0UqMIdLpFH-n_zHacLuQo
To claim this, I am signing this object:
| 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 |
| # 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" |
| #!/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 \ |
| require 'formula' | |
| class Postgresql < Formula | |
| homepage 'http://www.postgresql.org/' | |
| url 'http://ftp.postgresql.org/pub/source/v9.2.0beta1/postgresql-9.2beta1.tar.bz2' | |
| md5 '7bb0b7a3a6c32a9ae153d4132fe47d01' | |
| depends_on 'readline' | |
| depends_on 'libxml2' if MacOS.leopard? # Leopard libxml is too old | |
| depends_on 'ossp-uuid' |
| # Installing ruby with homebrew's readline & xml libs | |
| brew install readline | |
| brew install libxml2 --with-xml2-config | |
| CONFIGURE_OPTS="--disable-install-doc --with-readline-dir=$(brew --prefix readline) \ | |
| --with-libxml2-dir=$(brew --prefix libxml2)" rbenv install 1.9.3-p194 | |
| # Installing nokogiri with homebrew's xml libs | |
| brew install libxslt | |
| gem install nokogiri -- --with-xml2-include=$(brew --prefix libxml2)/include \ | |
| --with-xml2-lib=$(brew --prefix libxml2)/lib --with-xslt-dir=$(brew --prefix libxslt) |
| +---------------+ | |
| | Conversation |0..* initiator 1+-------+1 | |
| |---------------|+---------------------+| User |+----+ | |
| |title | +-------+ | | |
| |body | | | |
| |started_at | | | |
| | |0..* project 1+---------+ | | |
| | |+---------------------+| Project | | participant | |
| | | +---------+ | | |
| | | | |
| #!/bin/bash | |
| set -e | |
| echo "Which patchset of ruby 1.9.3 do you want to download and patch? (eg. 392)" | |
| read PATCHSET | |
| RUBY_VERSION="ruby-1.9.3-p${PATCHSET}" | |
| FILENAME="${RUBY_VERSION}.tar.gz" | |
| if [ -d "/tmp/${RUBY_VERSION}" ]; then |
| #!/bin/bash | |
| # What is required? | |
| # | |
| # - An installed MySQL Client | |
| # - An installed and configured AWS-CLI | |
| MYSQLDUMP=/usr/bin/mysqldump | |
| DUMP_FILE_SUFFIX=`date +%F`.sql | |
| BACKUP_FOLDER=/tmp/backups | |
| BACKUP_BUCKET=a_bucket_name |
| # repeat characters on keydown | |
| defaults write -g ApplePressAndHoldEnabled -bool false | |
| # faster initial key repeat | |
| defaults write NSGlobalDomain InitialKeyRepeat -int 12 | |
| # super fast key repeat | |
| defaults write NSGlobalDomain KeyRepeat -int 0 |
I hereby claim:
To claim this, I am signing this object: