Get Homebrew installed on your mac if you don't already have it
Install highlight. "brew install highlight". (This brings down Lua and Boost as well)
| # -*- encoding : utf-8 -*- | |
| $:.unshift(File.expand_path('./lib', ENV['rvm_path'])) # Add RVM's lib directory to the load path. | |
| require "rvm/capistrano" # Load RVM's capistrano plugin. | |
| set :rvm_ruby_string, '1.9.2' # Or whatever env you want it to run in. | |
| require 'bundler/capistrano' | |
| set :application, "YourApp" |
| #! /usr/bin/env ruby | |
| # usage: | |
| # $ das_download.rb email password [download_directory] | |
| require 'mechanize' | |
| # gem 'mechanize-progressbar' | |
| email = ARGV[0] or raise('Please provide the email address for your account') | |
| password = ARGV[1] or raise('Please provide the password for your account') | |
| path = ARGV[2] || './' |
Get Homebrew installed on your mac if you don't already have it
Install highlight. "brew install highlight". (This brings down Lua and Boost as well)
| #### This is for mongoid, so the active-record stuff is commented out. | |
| #### Uncomment in before/after fork to make this happy | |
| worker_processes 4 | |
| user "unprivileged_user", "unprivileged_group" | |
| working_directory "/u/apps/yourappdirectory/current" # available in 0.94.0+ | |
| listen "/tmp/.sock", :backlog => 64 | |
| listen 8080, :tcp_nopush => true |
A good commit message looks like this:
Header line: explaining the commit in one line
Body of commit message is a few lines of text, explaining things
in more detail, possibly giving some background about the issue
being fixed, etc etc.
The body of the commit message can be several paragraphs, and
please do proper word-wrap and keep columns shorter than about
| # change 'table' to a more specific selector when the page will have more than one table | |
| find('table').all('tr').map { |row| row.all('th, td').map { |cell| cell.text.strip } } |
Install Python
$ brew install readline sqlite gdbm
$ brew install python --universal --framework
$ python --version
Python 2.7
Symlinks...
| # vim:se filetype=ruby | |
| # vim:se foldlevel=3 | |
| # | |
| # Hacks and monkeys to run Symfony 1.4 applications as Rack apps using | |
| # the rack-legacy and rack-rewrite gems. | |
| # | |
| # A couple of rack-rewrite rules take care of handing requests to the | |
| # default front controller (index.php) and a subclass of rack-legacy's | |
| # Php fixes PATH_INFO for Symfony routing. | |
| # |
| ;;; pbcopy.el --- Emacs Interface to pbcopy | |
| ;; Copyright (C) 2011 Daniel Nelson, based on xclip.el, by Leo Shidai Liu | |
| ;; This file is free software; you can redistribute it and/or modify | |
| ;; it under the terms of the GNU General Public License as published by | |
| ;; the Free Software Foundation; either version 3, or (at your option) | |
| ;; any later version. | |
| ;; This file is distributed in the hope that it will be useful, |
| RSpec::Matchers.define(:be_same_file_as) do |exected_file_path| | |
| match do |actual_file_path| | |
| expect(md5_hash(actual_file_path)).to eq(md5_hash(expected_file_path)) | |
| end | |
| def md5_hash(file_path) | |
| Digest::MD5.hexdigest(File.read(file_path)) | |
| end | |
| end |