Skip to content

Instantly share code, notes, and snippets.

View hone's full-sized avatar

Terence Lee hone

View GitHub Profile
source "http://rubygems.org"
gem "sinatra"
unless ENV.has_key?('SSH_CLIENT')
group :development do
gem "mongrel"
end
end
➜ ~ bundle gem hassox
create hassox/Gemfile
create hassox/Rakefile
create hassox/.gitignore
create hassox/hassox.gemspec
create hassox/lib/hassox.rb
create hassox/lib/hassox/version.rb
Initializating git repo in /Users/atmos/hassox
➜ ~ cd hassox
➜ hassox git:(master) ✗ git add .
@hone
hone / gist:731249
Created December 7, 2010 00:15
heroku_status_irc_bot.rb
require 'rubygems'
require 'bundler'
Bundler.setup
require 'cinch'
require 'feedzirra'
bot = Cinch::Bot.new do
configure do |c|
c.server = "irc.freenode.org"
c.channels = ["#norbauer"]
#!/bin/sh
scrot $@ /tmp/screenshot.jpg
imgur2 < /tmp/screenshot.jpg
rm /tmp/screenshot.jpg
@hone
hone / newrelic.yml
Created June 1, 2011 19:15
New Relic config for Cedar
---
<%= ENV["RAILS_ENV"] %>:
error_collector:
capture_source: true
enabled: true
ignore_errors: ActionController::RoutingError
apdex_t: 0.5
ssl: false
monitor_mode: true
license_key: <%= ENV["NEW_RELIC_LICENSE_KEY"] %>
@hone
hone / gist:1228009
Created September 20, 2011 00:36
Bundle Install Flow Path
bundle install
CLI#install
Bundler.root
SharedHelpers#default_gemfile
Bundler.definition
Bundler.default_gemfile
Bundler.default_lockfile
Definition.build
DSL.evaluate
Definition.new
@hone
hone / gist:1228013
Created September 20, 2011 00:38
Bundler 1.2 Roadmap
1. Remove Index#use
2. Separate Definition/DSL concerns
3. Move Source#run_hooks into RubyGemsIntegration
4. bundle issues command (posts a gist of the stuff in ISSUES)
5. Get specs passing on JRuby and RBX
6. ruby version check
7. git clone --shallow 1 in bundler, during autoclean mode
8. allow git/path for the same gem: http://www.cowboycoded.com/2010/08/10/using-2-sources-for-a-gem-in-different-environments-with-bundler/
@unak
unak / history.txt
Last active November 29, 2021 01:40
The History of Ruby
* Only the releases of the stable versions are listed in principle. The releases of the unstable versions especially considered to be important are indicated as "not stable."
* The branches used as the source of each releases are specified, and the branching timing of them are also shown. BTW, before subversionizing of the repository, the term called "trunk" was not used, but this list uses it in order to avoid confusion.
* In order to show a historical backdrop, big conferences (RubyKaigi, RubyConf and Euruko) are also listed. About the venues of such conferences, general English notations are adopted, in my hope.
* ruby_1_8_7 branch was recut from v1_8_7 tag after the 1.8.7 release because of an accident.
* 1.2.1 release was canceled once, and the 2nd release called "repack" was performed. Although there were other examples similar to this, since the re-releases were performed during the same day, it does not write clearly in particular.
* Since 1.0 was released with the date in large quantities, the mi