This file contains hidden or 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
#!/bin/bash | |
# Launch some handy cheat sheets and other console windows for Rails development | |
# in unix-like systems | |
# http://creativecommons.org/publicdomain/zero/1.0/ | |
# To the extent possible under law, dcorking has waived all copyright | |
# and related or neighbouring rights to rgo.sh. This work is published | |
# from: United Kingdom. |
This file contains hidden or 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
(custom-set-variables | |
;; custom-set-variables was added by Custom. | |
;; If you edit it by hand, you could mess it up, so be careful. | |
;; Your init file should contain only one such instance. | |
;; If there is more than one, they won't work right. | |
'(desktop-save-mode t) | |
'(inferior-lisp-program "sbcl") | |
'(printer-name "Laserjet-3-office") | |
'(ps-font-family (quote Courier)) | |
'(ps-font-size 10.0) |
This file contains hidden or 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
#!/bin/ruby | |
####################### | |
# "repeated-fedup.rb" # | |
####################### | |
# runs fedup repeatedly, for example if yum fails due to the | |
# python error, 'Cannot allocate memory' | |
# continually updates a fedupdebugXX.log in the current directory |
This file contains hidden or 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
cd src/ && make -f Makefile.webkit_server | |
make[1]: Entering directory `/home/action/.rvm/gems/ruby-2.0.0-p195/gems/capybara-webkit-1.0.0/src' | |
g++ -pipe -O2 -Wall -W -D_REENTRANT -DQT_WEBKIT -DQT_NO_DEBUG -DQT_WEBKIT_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtNetwork -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtWebKit -I/usr/include/qt4 -I. -x c++-header -c stable.h -o webkit_server.gch/c++ | |
In file included from /usr/include/c++/4.6/sstream:580:0, | |
from stable.h:39: | |
/usr/include/c++/4.6/bits/sstream.tcc:288:1: fatal error: can’t write PCH file: No space left on device | |
compilation terminated. | |
Preprocessed source stored into /tmp/ccsZAyIK.out file, please attach this to your bugreport. | |
make[1]: *** [webkit_server.gch/c++] Error 1 | |
make[1]: Leaving directory `/home/action/.rvm/gems/ruby-2.0.0-p195/gems/capybara-webkit-1.0.0/src' |
This file contains hidden or 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
david1@www:~$ rails new asilly-blogsite | |
create | |
create README.rdoc | |
create Rakefile | |
create config.ru | |
create .gitignore | |
create Gemfile | |
create app | |
create app/assets/images/rails.png | |
create app/assets/javascripts/application.js |
This file contains hidden or 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
Gemfile: gem 'debugger' | |
.rspec:--debug --color | |
config/environments/development.rb: config.assets.debug = true | |
config/environments/test.rb: config.assets.allow_debugging = true | |
features/support/env.rb:require 'ruby-debug' |
This file contains hidden or 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
david2@www:~/daves-dream-blog$ bundle exec rake db:test:load | |
david2@www:~/daves-dream-blog$ bundle exec ruby -Itest test/functional/dreams_controller_test.rb | |
/home/david2/.rvm/gems/ruby-1.9.3-p448/gems/activerecord-3.2.14/lib/active_record/dynamic_matchers.rb:55:in `method_missing': undefined method `state_machine' for Subscription(Table doesn't exist):Class (NoMethodError) | |
from /home/david2/.rvm/gems/ruby-1.9.3-p448/gems/saas-0.1.1/app/models/subscription.rb:20:in `<class:Subscription>' | |
from /home/david2/.rvm/gems/ruby-1.9.3-p448/gems/saas-0.1.1/app/models/subscription.rb:1:in `<top (required)>' | |
from /home/david2/.rvm/gems/ruby-1.9.3-p448/gems/activesupport-3.2.14/lib/active_support/dependencies.rb:251:in `require' | |
from /home/david2/.rvm/gems/ruby-1.9.3-p448/gems/activesupport-3.2.14/lib/active_support/dependencies.rb:251:in `block in require' | |
from /home/david2/.rvm/gems/ruby-1.9.3-p448/gems/activesupport-3.2.14/lib/active_support/dependencies.rb:236:in `load_dependency' | |
from /home/david2/.rvm/gems/ru |
This file contains hidden or 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
<div> | |
<%= f.label :donation_info %> | |
<%= f.text_field :donation_info, :class => "org_form" %> | |
</div> | |
<%= charity_admin_display_msg %> | |
<div class="field"> | |
<%= text_field_tag 'organization_admin_email', :size => 100, class: 'org_form %> | |
</div> | |
<div class="actions"> | |
<%= f.submit %> |
This file contains hidden or 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
Failures: | |
1) Admin::ContentController with admin connection edit action should edit article | |
Failure/Error: get :edit, 'id' => @article.id | |
ActionView::Template::Error: | |
undefined method `to_sym' for nil:NilClass | |
# ./spec/models/page_spec.rb:68:in `block in except' | |
# ./spec/models/page_spec.rb:68:in `reject' | |
# ./spec/models/page_spec.rb:68:in `except' | |
# ./app/views/admin/shared/_merge.html.erb:3:in `_app_views_admin_shared__merge_html_erb__108427934_120784420__461995380' |
This file contains hidden or 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
(define BST0 false) | |
(define BST1 (make-node 1 "abc" false false)) | |
(define BST4 (make-node 4 "dcj" false (make-node 7 "ruf" false false))) | |
(define BST3 (make-node 3 "ilk" BST1 BST4)) | |
(define BST42 | |
(make-node 42 "ily" | |
(make-node 27 "wit" (make-node 14 "olp" false false) false) | |
false)) | |
(define BST10 (make-node 10 "why" BST3 BST42)) |
OlderNewer