Skip to content

Instantly share code, notes, and snippets.

View hone's full-sized avatar

Terence Lee hone

View GitHub Profile
class TestMailer < ActionMailer::Base
def test
from "[email protected]"
recipients "[email protected]"
content_type "text/html"
subject "Test"
body "foo"
end
end
<qrush> cutting down to ~1000 from ~1500 was a good move for me :)
I think I just follow a lot of inactive people.
<hone> haha
damn...1500?
<harryv> honestly, if people follow that many and they start to follow me, I usually just treat it as spam :P
<hone> like qrush :)
<technoweenie> by that logic, defunkt is a spammer: http://twitter.com/defunkt
<qrush> i knew it!
<technoweenie> well, that logic is just silly
<harryv> technoweenie: "treat it as spam" as in I get the "you have a new follower"-mail, delete it and probably don't bother checking out the profile. unless I know who it is. as is the case with qrush and defunkt.
SELECT *
FROM suites
INNER JOIN events
ON suites.venue_id = events.eventable_id
INNER JOIN suite_ownerships
ON suites.id = suite_ownerships.suite_id
WHERE events.eventable_type = "Venue"
AND suite_ownerships.user_id = #{suite_owner.id}
AND event.id = #{event.id}
describe "suite_id_to_suite_ownership_id migration" do
before(:all) do
Spec::Runner.configure do |config|
config.use_transactional_fixtures = false
end
end
after(:all) do
Spec::Runner.configure do |config|
config.use_transactional_fixtures = true
hone@hone-x200:~/Projects/oib/heroku$ bin/heroku switch boxboss-staging
hone@hone-x200:~/Projects/oib/heroku$ git remote show heroku
* remote heroku
URL: [email protected]:boxboss-staging.git
HEAD branch: master
Remote branch:
master new (next fetch will store in remotes/heroku)
Local ref configured for 'git push':
master pushes to master (local out of date)
hone@hone-x200:~/Projects/oib/heroku$ bin/heroku switch boxboss-production
hone@hone-x200:/tmp/her$ git init
Initialized empty Git repository in /tmp/her/.git/
hone@hone-x200:/tmp/her$ heroku create
Created http://evening-galaxy-36.heroku.com/ | [email protected]:evening-galaxy-36.git
Git remote heroku added
hone@hone-x200:/tmp/her$ heroku addons:add custom_domains
Adding custom_domains to evening-galaxy-36... done
@hone
hone / a.cc
Created October 30, 2009 17:46
#include <sys/types.h>
#include <unistd.h>
#include <iostream>
using namespace std;
main()
{
int x = 6;
@hone
hone / .vimrc
Created November 1, 2009 02:29
set nocompatible " We're running Vim, not Vi!
syntax on " Enable syntax highlighting
set nocp " for omnicppcomplete plugin
filetype on " Enable filetype detection
filetype indent on " Enable filetype-specific indenting
filetype plugin on " Enable filetype-specific plugins
set laststatus=2
set statusline=%<%f\ %h%m%r%=%-20.(%)\%h%m%r%=%-40(%n%Y%)\%P
set nocul " cursor line
set cf " Enable error files & error jumping
Ruby console for xxxx.heroku.com
>> A
ARGF ARGV ArgumentError Array
>> ArgumentError
=> ArgumentError
>> exit
#
# irb/completor.rb -
# $Release Version: 0.9$
# $Revision$
# $Date$
# by Keiju ISHITSUKA([email protected])
# From Original Idea of [email protected]
#
require "readline"