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
class HomeController < ApplicationController | |
skip_before_filter :verify_authenticity_token, :only => :post_up | |
def index | |
end | |
# monitored by http://uptime.alal.com/uptime/ | |
# this will test if Rails is up and responding to GETs and POSTs | |
def rails_up | |
url = URI.parse(url_for(:action => 'post_up')) |
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
# save this as vendor/plugins/attachment_fu_hacks/init.rb | |
require 'aws/s3' | |
Technoweenie::AttachmentFu::Backends::S3Backend.module_eval do | |
# Hacked to use new S3 addressing, which lets us use EU buckets. | |
# Requires sauberia's fork of aws-3s: http://github.com/sauberia/aws-s3 | |
# | |
# All public objects are accessible via a GET request to the S3 servers. You can generate a | |
# url for an object using the s3_url method. |
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 | |
## | |
# This is a script with usefull tips taken from: | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# | |
# Run in interactive mode with: | |
# $ sh -c "$(curl -sL https://raw.github.com/gist/2108403/hack.sh)" | |
# | |
# or run it without prompt questions: |
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
# Øv tallene 0-99 | |
# | |
# Kræver System Voice Ida for at tale dansk | |
# Installér fra System Preferences / Dictation & Speech | |
def say(phrase) | |
cmd = `say -v Ida "#{phrase}"` | |
end | |
def problem(number = nil) |