This gist is part of a blog post. Check it out at:
http://jasonrudolph.com/blog/2011/08/09/programming-achievements-how-to-level-up-as-a-developer
| # | |
| # = Capistrano database.yml task | |
| # | |
| # Provides a couple of tasks for creating the database.yml | |
| # configuration file dynamically when deploy:setup is run. | |
| # | |
| # Category:: Capistrano | |
| # Package:: Database | |
| # Author:: Simone Carletti <weppos@weppos.net> | |
| # Copyright:: 2007-2010 The Authors |
| # Colors ---------------------------------------------------------- | |
| export TERM=xterm-color | |
| export GREP_OPTIONS='--color=auto' GREP_COLOR='1;32' | |
| export CLICOLOR=1 | |
| alias ls='ls -G' # OS-X SPECIFIC - the -G command in OS-X is for colors, in Linux it's no groups | |
| #alias ls='ls --color=auto' # For linux, etc |
| # If you'd like this packaged up as a gem, send me a note. You can get | |
| # in touch with me at http://www.techiferous.com/about | |
| require 'nokogiri' | |
| require 'ispell' | |
| module Rack | |
| class SpellCheck | |
| def initialize(app, options = {}) |
| module Rack | |
| # A rack middleware for validating HTML via w3c validator | |
| class Validate | |
| def initialize( app ) | |
| @app = app | |
| end | |
| def call( env ) |
| # checkout: http://github.com/igrigorik/async-rails/ | |
| From bb2a78858cffa7c6937642986e9aca1a4f862c0d Mon Sep 17 00:00:00 2001 | |
| From: Ilya Grigorik <ilya@igvita.com> | |
| Date: Thu, 10 Jun 2010 00:46:48 -0400 | |
| Subject: [PATCH] async rails3 | |
| --- | |
| Gemfile | 6 ++++++ | |
| app/controllers/widgets_controller.rb | 6 ++++++ |
| <!DOCTYPE html> | |
| <!-- Helpful things to keep in your <head/> | |
| // Brian Blakely, 360i | |
| // http://twitter.com/brianblakely/ | |
| --> | |
| <head> | |
| <!-- Disable automatic DNS prefetching. | |
| # add RailsAdmin to the Gemfile | |
| # do NOT add devise | |
| gem "rails_admin", :git => "git://github.com/sferik/rails_admin.git" | |
| # run Bundler | |
| bundle | |
| # run the generator for RailsAdmin | |
| # looks like it's broken, but it just does not install devise | |
| # you may also remove the app/config/locales/devise.en.yml |
| # when I write new blog posts I usually have a temporary folder called new_post on my desktop | |
| # that I place images I want to upload to amazon s3 (which is distributed as CF) and then | |
| # get the appropriate URLs to put the images in my blog post | |
| # I usually save files as some_slug.png and some_slug_1200.png | |
| # with the latter being a larger version (1200px wide) of the first. | |
| # a typical upload will include 20 files. 2 versions of some (sm and lg), and some orphans | |
| # so this compares filenames and if it detects a larger version of a file, | |
| # it links the the smaller image to the larger image (i use fancyzoom on my site) | |
| # if not, it just links to the image |
| #!/usr/bin/env ruby | |
| # | |
| # A quick script to dump an overview of all the open issues in all my github projects | |
| # | |
| require 'octokit' | |
| require 'awesome_print' | |
| require 'rainbow' |
This gist is part of a blog post. Check it out at:
http://jasonrudolph.com/blog/2011/08/09/programming-achievements-how-to-level-up-as-a-developer