Skip to content

Instantly share code, notes, and snippets.

View rsanheim's full-sized avatar

Rob Sanheim rsanheim

View GitHub Profile
# taken from http://github.com/rsanheim/chatterbox/blob/bundler/Gemfile
source "http://rubygems.org"
gem "activesupport", "2.3.5", :require => "active_support"
gem "actionmailer", "2.3.5", :require => "action_mailer"
gem "actionpack", "2.3.5", :require => "action_pack"
group "development" do
gem "cucumber", "0.6.3"
gem "jeweler", "1.4.0"
[rcr-web 2] rake spec
(in /Volumes/codes/rcr-web 2)
NOTICE: CREATE TABLE will create implicit sequence "projects_id_seq" for serial column "projects.id"
NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "projects_pkey" for table "projects"
current class in question
(side question - shouldnt this be some Rspec class, and not my application class?):
ProjectsController
object ids:
[rcr-web (master)(-solo-)↑] git push
Counting objects: 89, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (61/61), done.
error: unable to create temporary sha1 filename ./objects/b2: No space left on device
fatal: failed to write object
error: unpack-objects exited with error code 128
error: pack-objects died of signal 13
error: pack-objects died with strange error
build@build104:/mnt/repos/dchelimsky/rspec$ rake
(in /mnt/repos/dchelimsky/rspec)
Autotest::Rspecdiscovery
adds the rspec autotest plugin
failed_results_re
should match a failure
should match a failure when matcher outputs multiple lines
should match an Error
should match an Error that doesn't end in Error
Autotest::Rspec
@rsanheim
rsanheim / clonus.rb
Created November 23, 2009 08:59 — forked from spicycode/clonus.rb
#!/usr/bin/env ruby
require 'rubygems'
require 'active_support'
require 'yaml'
require 'fileutils'
require 'pathname'
RootPath = Pathname.new('/Volumes/space/github_mirror')
GithubInfo = YAML.load_file(RootPath.join('the_parts_horror.yml'))
~/src/priv/tmp (master)$ ls -la latest.sql
-rw-r--r-- 1 rsanheim staff 1515769301 Oct 21 01:59 latest.sql
~/src/priv/tmp (master)$ mysql5 -u root staging_dump < latest.sql
PAGER set to stdout
ERROR at line 647: Unknown command '\''.
~/src/priv/tmp (master)$ vim latest.sql
# wait forever while vim struggles to load the 1.4 Gig sql file to track this down...
$ rvm update --head
rvm 0.0.38 (2009.09.14) [http://rvm.beginrescueend.com/]
Initialized empty Git repository in /Users/rsanheim/.rvm/src/rvm/.git/
remote: Counting objects: 2469, done.
remote: Compressing objects: 100% (1328/1328), done.
remote: Total 2469 (delta 1391), reused 1416 (delta 725)
Receiving objects: 100% (2469/2469), 388.95 KiB | 172 KiB/s, done.
Resolving deltas: 100% (1391/1391), done.
/Users/rsanheim/.rvm/src/rvm
~/src/oss/rspec (dc/master)$ ruby -v
ruby 1.9.1p243 (2009-07-16 revision 24175) [i386-darwin9.8.0]
~/src/oss/rspec (dc/master)$ gem list
*** LOCAL GEMS ***
actionmailer (2.3.3, 2.3.2)
actionpack (2.3.3, 2.3.2)
activerecord (2.3.3, 2.3.2)
activeresource (2.3.3, 2.3.2)
~ $ ruby -v
ruby 1.9.1p243 (2009-07-16 revision 24175) [i386-darwin9.8.0]
~ $ gem env
RubyGems Environment:
- RUBYGEMS VERSION: 1.3.5
- RUBY VERSION: 1.9.1 (2009-07-16 patchlevel 243) [i386-darwin9.8.0]
- INSTALLATION DIRECTORY: /Users/rsanheim/.gem/ruby/1.9.1
- RUBY EXECUTABLE: /Users/rsanheim/.rvm/ruby-1.9.1-p243/bin/ruby
- EXECUTABLE DIRECTORY: /Users/rsanheim/.gem/ruby/1.9.1/bin
- RUBYGEMS PLATFORMS:
=== Epic Snow Leopard Upgrayyyyd Guide ===
Son, you’re now living in the land of 64-bit systems.
That means that some of your 32-bit shit is now broken.
Not all is lost.
== Fixing MySQL weirdness