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
# ~/.caprc | |
Dir["#{ENV['HOME']}/.recipes/*.rb"].each do |tasks| | |
load tasks | |
end |
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
# ~/.recipes/growl.rb | |
set :stage, nil unless defined? stage | |
namespace :growl do | |
task :notify do | |
growl_send(ENV["GROWL_MESSAGE"] || "wants your attention") | |
end | |
task :alert do | |
growl_send(ENV["GROWL_MESSAGE"] || "needs your attention", 2) |
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
set :sync_directories, ["public/assets", "public/galleries"] | |
set :sync_backups, 3 |
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
sudo port clean --all installed | |
sudo port -f uninstall inactive | |
gem cleanup |
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
sudo env ARCHFLAGS="-arch x86_64" gem install mysql -- --with-mysql-config=/opt/local/lib/mysql5/bin/mysql_config |
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 ruby | |
# A simple ruby rmagick resize script. | |
# | |
# Example: ./resize.rb /user/joe/mypics 400 533 | |
# | |
# Searches /user/joe/mypics recursively for all files ending with 'jpg'; the search is case | |
# insensitive. The found image will be proprtinaly scaled to a max width of 400 pixels and | |
# a max height of 533 pixels. The resized image will be written to a new file with the | |
# extension 'preview.jpg' |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>CFBundleDevelopmentRegion</key> | |
<string>English</string> | |
<key>CFBundleExecutable</key> | |
<string>rubymine</string> | |
<key>CFBundleIconFile</key> | |
<string>rubymine.icns</string> |
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 'fakeweb' | |
require 'fake_resource' | |
ActiveResource::Base.send :include, ActiveResource::FakeResource | |
Before do | |
FakeWeb.allow_net_connect = false | |
end | |
After do |scenario| | |
ActiveResource::FakeResource.clean |
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
mysql: | |
mysql-config: /opt/local/lib/mysql5/bin/mysql_config |
OlderNewer