Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Mad props to Chris Wanstrath for this convention

  • Loading branch information...
commit f1c8af8530789ebc0bc494ecf171755fecfc7464 0 parents
Ryan McGeary authored
Showing with 1,142 additions and 0 deletions.
  1. +45 −0 autotest
  2. +1 −0  autotest.d/autotest.d
  3. BIN  autotest.d/rails_fail.orig.png
  4. BIN  autotest.d/rails_fail.png
  5. BIN  autotest.d/rails_ok.orig.png
  6. BIN  autotest.d/rails_ok.png
  7. +29 −0 autotest.d/sound/README
  8. +43 −0 autotest.d/sound/sound.rb
  9. +29 −0 autotest.d/sound/sound/README
  10. +43 −0 autotest.d/sound/sound/sound.rb
  11. +286 −0 autotest.d/sound/sound/sound_fx/LICENSE
  12. +25 −0 autotest.d/sound/sound/sound_fx/README
  13. BIN  autotest.d/sound/sound/sound_fx/green.mp3
  14. BIN  autotest.d/sound/sound/sound_fx/quit.mp3
  15. BIN  autotest.d/sound/sound/sound_fx/ran_command.mp3
  16. BIN  autotest.d/sound/sound/sound_fx/red.mp3
  17. BIN  autotest.d/sound/sound/sound_fx/run.mp3
  18. BIN  autotest.d/sound/sound/sound_fx/run_command.mp3
  19. +286 −0 autotest.d/sound/sound_fx/LICENSE
  20. +25 −0 autotest.d/sound/sound_fx/README
  21. BIN  autotest.d/sound/sound_fx/green.mp3
  22. BIN  autotest.d/sound/sound_fx/quit.mp3
  23. BIN  autotest.d/sound/sound_fx/ran_command.mp3
  24. BIN  autotest.d/sound/sound_fx/red.mp3
  25. BIN  autotest.d/sound/sound_fx/run.mp3
  26. BIN  autotest.d/sound/sound_fx/run_command.mp3
  27. +12 −0 bash_profile
  28. +163 −0 bashrc
  29. +44 −0 emacs
  30. +9 −0 gemrc
  31. +14 −0 gitconfig
  32. +27 −0 gitk
  33. +15 −0 install.rb
  34. +11 −0 irbrc
  35. +27 −0 sake
  36. +8 −0 vimrc
45 autotest
@@ -0,0 +1,45 @@
+#require 'autotest/growl'
+require 'autotest/redgreen'
+require '~/.autotest.d/sound/sound.rb' # needs "sudo port install mpg321"
+Autotest::Sound.sound_path = "~/.autotest.d/sound/sound_fx/"
+
+module Autotest::Growl
+ def self.growl(title, message, pass = nil)
+ priority = pass ? -2 : 2
+ image = pass ? '~/.autotest.d/rails_ok.png' : '~/.autotest.d/rails_fail.png'
+ sticky = false # !pass
+ switches = "-s" if sticky
+ system "growlnotify -n autotest --image #{image} -p #{priority} -m #{message.inspect} #{title.inspect} #{switches}"
+ end
+
+ Autotest.add_hook :ran_command do |at|
+ results = at.results.last.chomp
+ if results.match(/^.* (\d+) failures, (\d+) errors$/)
+ error_count = $1.to_i + $2.to_i
+ if (error_count.zero?)
+ growl "Tests Passed", "#{results}", :pass # if at.tainted
+ else
+ growl "Tests Failed", "#{results}"
+ end
+ end
+ end
+
+ Autotest.add_hook :all_good do |at|
+ growl "Tests Passed", "All tests passed", :pass if at.tainted
+ end
+end
+
+class Autotest
+ def find_files_with_flymake
+ result = find_files_without_flymake
+ result.reject { |key, value| key =~ /_flymake\.rb$/ }
+ end
+ alias_method :find_files_without_flymake, :find_files
+ alias_method :find_files, :find_files_with_flymake
+end
+
+# Autotest.send(:alias_method, :real_make_test_cmd, :make_test_cmd)
+# Autotest.send(:define_method, :make_test_cmd) do |*args|
+# real_make_test_cmd(*args).sub('test/unit', %[rubygems -e "require 'redgreen'"])
+# end
+
1  autotest.d/autotest.d
BIN  autotest.d/rails_fail.orig.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
BIN  autotest.d/rails_fail.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
BIN  autotest.d/rails_ok.orig.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
BIN  autotest.d/rails_ok.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
29 autotest.d/sound/README
@@ -0,0 +1,29 @@
+Sounds effects for autotest
+http://fozworks.com/2007/7/28/autotest-sound-effects
+
+This plugin triggers sound files for autotest events.
+
+It requires that you have a command-line mp3 player installed.
+On OSX and Linux, I suggest mpg321, which is available from most package managers (including macports). For fink users, try madplay.
+
+On Windows, try the mplayer command-line app, which can be downloaded from:
+
+ http://www.mplayerhq.hu/design7/dload.html
+
+In you ~/.autotest file, load the plugin and set the sounds location:
+
+ require '~/autotest/sound/sound.rb'
+ Autotest::Sound.sound_path = "~/autotest/sound/sound_fx/"
+
+If you are on Windows, you will need some additional stuff:
+
+ Autotest::Sound.sound_app = "call c:/mplayer/mplayer.exe -really-quiet"
+ Autotest::Sound.process_devnull = "> c:/Windows/Temp/_mplayer_tmp.txt"
+ Autotest::Sound.process_bg = ""
+
+(thanks to John for the Windows info and jinjing for suggesting madplay)
+
+All sounds in sound_fx were created by me, free for your use. See the README and LICENSE in the sound_fx dir.
+
+- foz
+
43 autotest.d/sound/sound.rb
@@ -0,0 +1,43 @@
+# Sound effects for autotest
+# http://fozworks.com/2007/7/28/autotest-sound-effects
+
+# This plugin will trigger sounds. You will need a command-line
+# sound player to do this. See the README file for more details.
+#
+# 1.2 - doc patch for bad path 2007-08-01
+# 1.1 - updated for Windows 2007-07-31
+# 1.0 - initial release 2007-07-28
+
+module Autotest::Sound
+ @@sound_path = ''
+ @@sound_app = 'mpg321'
+ @@process_devnull = '> /dev/null 2>&1'
+ @@process_bg = '&'
+
+ def self.sound_path= o
+ @@sound_path = o
+ end
+
+ def self.sound_app= o
+ @@sound_app = o
+ end
+
+ def self.process_devnull= o
+ @@process_devnull = o
+ end
+
+ def self.process_bg= o
+ @@process_bg = o
+ end
+
+ def self.playsound file
+ cmd = "#{@@sound_app} #{@@sound_path + file} #{@@process_devnull} #{@@process_bg}"
+ system cmd
+ end
+
+ [:run, :red, :green, :quit, :run_command, :ran_command].each do |hook|
+ Autotest.add_hook hook do |at|
+ playsound "#{hook.to_s}.mp3" unless $TESTING
+ end
+ end
+end
29 autotest.d/sound/sound/README
@@ -0,0 +1,29 @@
+Sounds effects for autotest
+http://fozworks.com/2007/7/28/autotest-sound-effects
+
+This plugin triggers sound files for autotest events.
+
+It requires that you have a command-line mp3 player installed.
+On OSX and Linux, I suggest mpg321, which is available from most package managers (including macports). For fink users, try madplay.
+
+On Windows, try the mplayer command-line app, which can be downloaded from:
+
+ http://www.mplayerhq.hu/design7/dload.html
+
+In you ~/.autotest file, load the plugin and set the sounds location:
+
+ require '~/autotest/sound/sound.rb'
+ Autotest::Sound.sound_path = "~/autotest/sound/sound_fx/"
+
+If you are on Windows, you will need some additional stuff:
+
+ Autotest::Sound.sound_app = "call c:/mplayer/mplayer.exe -really-quiet"
+ Autotest::Sound.process_devnull = "> c:/Windows/Temp/_mplayer_tmp.txt"
+ Autotest::Sound.process_bg = ""
+
+(thanks to John for the Windows info and jinjing for suggesting madplay)
+
+All sounds in sound_fx were created by me, free for your use. See the README and LICENSE in the sound_fx dir.
+
+- foz
+
43 autotest.d/sound/sound/sound.rb
@@ -0,0 +1,43 @@
+# Sound effects for autotest
+# http://fozworks.com/2007/7/28/autotest-sound-effects
+
+# This plugin will trigger sounds. You will need a command-line
+# sound player to do this. See the README file for more details.
+#
+# 1.2 - doc patch for bad path 2007-08-01
+# 1.1 - updated for Windows 2007-07-31
+# 1.0 - initial release 2007-07-28
+
+module Autotest::Sound
+ @@sound_path = ''
+ @@sound_app = 'mpg321'
+ @@process_devnull = '> /dev/null 2>&1'
+ @@process_bg = '&'
+
+ def self.sound_path= o
+ @@sound_path = o
+ end
+
+ def self.sound_app= o
+ @@sound_app = o
+ end
+
+ def self.process_devnull= o
+ @@process_devnull = o
+ end
+
+ def self.process_bg= o
+ @@process_bg = o
+ end
+
+ def self.playsound file
+ cmd = "#{@@sound_app} #{@@sound_path + file} #{@@process_devnull} #{@@process_bg}"
+ system cmd
+ end
+
+ [:run, :red, :green, :quit, :run_command, :ran_command].each do |hook|
+ Autotest.add_hook hook do |at|
+ playsound "#{hook.to_s}.mp3" unless $TESTING
+ end
+ end
+end
286 autotest.d/sound/sound/sound_fx/LICENSE
@@ -0,0 +1,286 @@
+Creative Commons <http://creativecommons.org/>
+
+Creative Commons Legal Code
+sampling plus *Sampling Plus 1.0* by
+CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE
+LEGAL SERVICES. DISTRIBUTION OF THIS LICENSE DOES NOT CREATE AN
+ATTORNEY-CLIENT RELATIONSHIP. CREATIVE COMMONS PROVIDES THIS INFORMATION
+ON AN "AS-IS" BASIS. CREATIVE COMMONS MAKES NO WARRANTIES REGARDING THE
+INFORMATION PROVIDED, AND DISCLAIMS LIABILITY FOR DAMAGES RESULTING FROM
+ITS USE.
+
+/License/
+
+THE WORK (AS DEFINED BELOW) IS PROVIDED UNDER THE TERMS OF THIS CREATIVE
+COMMONS PUBLIC LICENSE ("CCPL" OR "LICENSE"). THE WORK IS PROTECTED BY
+COPYRIGHT AND/OR OTHER APPLICABLE LAW. ANY USE OF THE WORK OTHER THAN AS
+AUTHORIZED UNDER THIS LICENSE OR COPYRIGHT LAW IS PROHIBITED.
+
+BY EXERCISING ANY RIGHTS TO THE WORK PROVIDED HERE, YOU ACCEPT AND AGREE
+TO BE BOUND BY THE TERMS OF THIS LICENSE. THE LICENSOR GRANTS YOU THE
+RIGHTS CONTAINED HERE IN CONSIDERATION OF YOUR ACCEPTANCE OF SUCH TERMS
+AND CONDITIONS.
+
+*1. Definitions*
+
+ 1.
+
+ *"Collective Work"* means a work, such as a periodical issue,
+ anthology or encyclopedia, in which the Work in its entirety in
+ unmodified form, along with a number of other contributions,
+ constituting separate and independent works in themselves, are
+ assembled into a collective whole. A work that constitutes a
+ Collective Work will not be considered a Derivative Work (as
+ defined below) for the purposes of this License.
+
+ 2.
+
+ *"Derivative Work"* means a work based upon the Work or upon the
+ Work and other pre-existing works, such as a translation, musical
+ arrangement, dramatization, fictionalization, motion picture
+ version, sound recording, art reproduction, abridgment,
+ condensation, or any other form in which the Work may be recast,
+ transformed, or adapted, except that a work that constitutes a
+ Collective Work will not be considered a Derivative Work for the
+ purpose of this License.
+
+ 3.
+
+ *"Licensor"* means the individual or entity that offers the Work
+ under the terms of this License.
+
+ 4.
+
+ *"Original Author"* means the individual or entity who created the
+ Work.
+
+ 5.
+
+ *"Work"* means the copyrightable work of authorship offered under
+ the terms of this License.
+
+ 6.
+
+ *"You"* means an individual or entity exercising rights under this
+ License who has not previously violated the terms of this License
+ with respect to the Work, or who has received express permission
+ from the Licensor to exercise rights under this License despite a
+ previous violation.
+
+*2. Fair Use Rights.* Nothing in this license is intended to reduce,
+limit, or restrict any rights arising from fair use, first sale or other
+limitations on the exclusive rights of the copyright owner under
+copyright law or other applicable laws.
+
+*3. License Grant & Restrictions.* Subject to the terms and conditions
+of this License, Licensor hereby grants You a worldwide, royalty-free,
+non-exclusive, perpetual (for the duration of the applicable copyright)
+license to exercise the rights in the Work as stated below on the
+conditions as stated below:
+
+ 1. *Re-creativity permitted*. You may create and reproduce Derivative
+ Works, provided that:
+ 1.
+
+ the Derivative Work(s) constitute a good-faith partial or
+ recombined usage employing "sampling," "collage," "mash-up,"
+ or other comparable artistic technique, whether now known or
+ hereafter devised, that is highly transformative of the
+ original, as appropriate to the medium, genre, and market
+ niche; and
+
+ 2.
+
+ Your Derivative Work(s) must only make a partial use of the
+ original Work, or if You choose to use the original Work as
+ a whole, You must either use the Work as an insubstantial
+ portion of Your Derivative Work(s) or transform it into
+ something substantially different from the original Work. In
+ the case of a musical Work and/or audio recording, the mere
+ synchronization ("synching") of the Work with a moving image
+ shall not be considered a transformation of the Work into
+ something substantially different.
+
+ 2.
+
+ You may distribute copies or phonorecords of, display publicly,
+ perform publicly, and perform publicly by means of a digital audio
+ transmission, any Derivative Work(s) authorized under this License.
+
+ 3.
+
+ *Prohibition on advertising*. All advertising and promotional uses
+ are excluded from the above rights, except for advertisement and
+ promotion of the Derivative Work(s) that You are creating from the
+ Work and Yourself as the author thereof.
+
+ 4.
+
+ *Noncommercial sharing of verbatim copies permitted*.
+
+ 1.
+
+ You may reproduce the Work, incorporate the Work into one or
+ more Collective Works, and reproduce the Work as
+ incorporated in the Collective Works. You may distribute
+ copies or phonorecords of, display publicly, perform
+ publicly, and perform publicly by means of a digital audio
+ transmission the Work including or incorporated in
+ Collective Works.
+
+ 2.
+
+ You may not exercise any of the rights granted to You in the
+ paragraph immediately above in any manner that is primarily
+ intended for or directed toward commercial advantage or
+ private monetary compensation. The exchange of the Work for
+ other copyrighted works by means of digital file-sharing or
+ otherwise shall not be considered to be intended for or
+ directed toward commercial advantage or private monetary
+ compensation, provided there is no payment of any monetary
+ compensation in connection with the exchange of copyrighted
+ works.
+
+ 5.
+
+ *Attribution and Notice*.
+
+ 1.
+
+ If You distribute, publicly display, publicly perform, or
+ publicly digitally perform the Work or any Derivative Works
+ or Collective Works, You must keep intact all copyright
+ notices for the Work and give the Original Author credit
+ reasonable to the medium or means You are utilizing by
+ conveying the name (or pseudonym if applicable) of the
+ Original Author if supplied; the title of the Work if
+ supplied; to the extent reasonably practicable, provide the
+ Uniform Resource Identifier, if any, that Licensor specifies
+ to be associated with the Work or a Derivative Work, unless
+ such Uniform Resource Identifier does not refer to the
+ copyright notice or licensing information for the Work; and
+ in the case of a Derivative Work, provide a credit
+ identifying the use of the Work in the Derivative Work
+ (e.g., "Remix of the Work by Original Author," or "Inclusion
+ of a portion of the Work by Original Author in collage").
+ Such credit may be implemented in any reasonable manner;
+ provided, however, that in the case of a Derivative Work or
+ Collective Work, at a minimum such credit will appear where
+ any other comparable authorship credit appears and in a
+ manner at least as prominent as such other comparable
+ authorship credit.
+
+ 2.
+
+ You may distribute, publicly display, publicly perform or
+ publicly digitally perform the Work only under the terms of
+ this License, and You must include a copy of, or the Uniform
+ Resource Identifier for, this License with every copy or
+ phonorecord of the Work or Derivative Work You distribute,
+ publicly display, publicly perform, or publicly digitally
+ perform. You may not offer or impose any terms on the Work
+ that alter or restrict the terms of this License or the
+ recipients' exercise of the rights granted hereunder. You
+ may not sublicense the Work. You must keep intact all
+ notices that refer to this License and to the disclaimer of
+ warranties. You may not distribute, publicly display,
+ publicly perform, or publicly digitally perform the Work
+ with any technological measures that control access of use
+ of the Work in a manner inconsistent with the terms of this
+ License. The above applies to the Work as incorporated in a
+ Collective Work, but this does not require the Collective
+ Work apart from the Work itself to be made subject to the
+ terms of this License. Upon notice from any Licensor You
+ must, to the extent practicable, remove from the Derivative
+ Work or Collective Work any reference to such Licensor or
+ the Original Author, as requested.
+
+The above rights may be exercised in all media and formats whether now
+known or hereafter devised. The above rights include the right to make
+such modifications as are technically necessary to exercise the rights
+in other media and formats. All rights not expressly granted by Licensor
+are hereby reserved.
+
+*4. Disclaimer*
+
+UNLESS SPECIFIED OTHERWISE BY THE PARTIES IN A SEPARATE WRITING,
+LICENSOR OFFERS THE WORK AS-IS AND MAKES NO REPRESENTATIONS OR
+WARRANTIES, EXPRESS OR IMPLIED, INCLUDING, WITHOUT LIMITATION,
+WARRANTIES OF TITLE, MERCHANTIBILITY, FITNESS FOR A PARTICULAR PURPOSE,
+NONINFRINGEMENT, OR THE ABSENCE OF LATENT OR OTHER DEFECTS, ACCURACY, OR
+THE PRESENCE OR ABSENCE OF ERRORS, WHETHER OR NOT DISCOVERABLE.
+
+*5. Limitation on Liability.*
+
+IN NO EVENT WILL LICENSOR BE LIABLE TO YOU ON ANY LEGAL THEORY FOR ANY
+SPECIAL, INCIDENTAL, CONSEQUENTIAL, PUNITIVE OR EXEMPLARY DAMAGES
+ARISING OUT OF THIS LICENSE OR THE USE OF THE WORK, EVEN IF LICENSOR HAS
+BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
+
+*6. Termination*
+
+ 1.
+
+ This License and the rights granted hereunder will terminate
+ automatically upon any breach by You of the terms of this License.
+ Individuals or entities who have received Derivative Works or
+ Collective Works from You under this License, however, will not
+ have their licenses terminated provided such individuals or
+ entities remain in full compliance with those licenses. Sections
+ 1, 2, 4, 5, 6, and 7 will survive any termination of this License.
+
+ 2.
+
+ Subject to the above terms and conditions, the license granted
+ here is perpetual (for the duration of the applicable copyright in
+ the Work). Notwithstanding the above, Licensor reserves the right
+ to release the Work under different license terms or to stop
+ distributing the Work at any time; provided, however that any such
+ election will not serve to withdraw this License (or any other
+ license that has been granted under the terms of this License),
+ and this License will continue in full force and effect unless
+ terminated as stated above.
+
+*7. Miscellaneous*
+
+ 1.
+
+ Each time You distribute or publicly digitally perform the Work or
+ a Collective Work, the Licensor offers to the recipient a license
+ to the Work on the same terms and conditions as the license
+ granted to You under this License.
+
+ 2.
+
+ Each time You distribute or publicly digitally perform a
+ Derivative Work, Licensor offers to the recipient a license to the
+ original Work on the same terms and conditions as the license
+ granted to You under this License.
+
+ 3.
+
+ If any provision of this License is invalid or unenforceable under
+ applicable law, it shall not affect the validity or enforceability
+ of the remainder of the terms of this License, and without further
+ action by the parties to this agreement, such provision shall be
+ reformed to the minimum extent necessary to make such provision
+ valid and enforceable.
+
+ 4.
+
+ No term or provision of this License shall be deemed waived and no
+ breach consented to unless such waiver or consent shall be in
+ writing and signed by the party to be charged with such waiver or
+ consent.
+
+ 5.
+
+ This License constitutes the entire agreement between the parties
+ with respect to the Work licensed here. There are no
+ understandings, agreements, or representations with respect to the
+ Work, and with respect to the subject matter hereof, not specified
+ above. Licensor shall not be bound by any additional provisions
+ that may appear in any communication from You. This License may
+ not be modified without the mutual written agreement of the
+ Licensor and You.
+
25 autotest.d/sound/sound/sound_fx/README
@@ -0,0 +1,25 @@
+Sound Effects for Autotest
+----------------------------------------
+jeremy@somebox.com
+http://fozworks.com/2007/7/28/autotest-sound-effects
+
+Hello Friends,
+
+I created this is a collection of sound effects for autotest.
+
+The sounds were designed to be audibly interesting, but not too grating. Several of the sounds are subtle in nature, so they do not alarm you or bother your work neighbors (although this is subject to debate - you can always use your own sounds, if you want!).
+
+About The Sounds
+----------------
+These sounds were all created several years ago on the Clavia Nord Modular, still my favlorite toy. See http://www.clavia.se for more information in this excellent instrument. Everything was recorded in 44khz 24-bit (and downsampled to 44khz 16-bit wav files) using an RME Hammerfall DSP converter. The effects were edited and processed.
+
+License:
+--------
+Sounds are released under Creative Commons "Sampling Plus 1.0" License:
+
+ http://creativecommons.org/licenses/sampling+/1.0/
+
+See LICENSE for full details.
+
+
+-foz
BIN  autotest.d/sound/sound/sound_fx/green.mp3
Binary file not shown
BIN  autotest.d/sound/sound/sound_fx/quit.mp3
Binary file not shown
BIN  autotest.d/sound/sound/sound_fx/ran_command.mp3
Binary file not shown
BIN  autotest.d/sound/sound/sound_fx/red.mp3
Binary file not shown
BIN  autotest.d/sound/sound/sound_fx/run.mp3
Binary file not shown
BIN  autotest.d/sound/sound/sound_fx/run_command.mp3
Binary file not shown
286 autotest.d/sound/sound_fx/LICENSE
@@ -0,0 +1,286 @@
+Creative Commons <http://creativecommons.org/>
+
+Creative Commons Legal Code
+sampling plus *Sampling Plus 1.0* by
+CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE
+LEGAL SERVICES. DISTRIBUTION OF THIS LICENSE DOES NOT CREATE AN
+ATTORNEY-CLIENT RELATIONSHIP. CREATIVE COMMONS PROVIDES THIS INFORMATION
+ON AN "AS-IS" BASIS. CREATIVE COMMONS MAKES NO WARRANTIES REGARDING THE
+INFORMATION PROVIDED, AND DISCLAIMS LIABILITY FOR DAMAGES RESULTING FROM
+ITS USE.
+
+/License/
+
+THE WORK (AS DEFINED BELOW) IS PROVIDED UNDER THE TERMS OF THIS CREATIVE
+COMMONS PUBLIC LICENSE ("CCPL" OR "LICENSE"). THE WORK IS PROTECTED BY
+COPYRIGHT AND/OR OTHER APPLICABLE LAW. ANY USE OF THE WORK OTHER THAN AS
+AUTHORIZED UNDER THIS LICENSE OR COPYRIGHT LAW IS PROHIBITED.
+
+BY EXERCISING ANY RIGHTS TO THE WORK PROVIDED HERE, YOU ACCEPT AND AGREE
+TO BE BOUND BY THE TERMS OF THIS LICENSE. THE LICENSOR GRANTS YOU THE
+RIGHTS CONTAINED HERE IN CONSIDERATION OF YOUR ACCEPTANCE OF SUCH TERMS
+AND CONDITIONS.
+
+*1. Definitions*
+
+ 1.
+
+ *"Collective Work"* means a work, such as a periodical issue,
+ anthology or encyclopedia, in which the Work in its entirety in
+ unmodified form, along with a number of other contributions,
+ constituting separate and independent works in themselves, are
+ assembled into a collective whole. A work that constitutes a
+ Collective Work will not be considered a Derivative Work (as
+ defined below) for the purposes of this License.
+
+ 2.
+
+ *"Derivative Work"* means a work based upon the Work or upon the
+ Work and other pre-existing works, such as a translation, musical
+ arrangement, dramatization, fictionalization, motion picture
+ version, sound recording, art reproduction, abridgment,
+ condensation, or any other form in which the Work may be recast,
+ transformed, or adapted, except that a work that constitutes a
+ Collective Work will not be considered a Derivative Work for the
+ purpose of this License.
+
+ 3.
+
+ *"Licensor"* means the individual or entity that offers the Work
+ under the terms of this License.
+
+ 4.
+
+ *"Original Author"* means the individual or entity who created the
+ Work.
+
+ 5.
+
+ *"Work"* means the copyrightable work of authorship offered under
+ the terms of this License.
+
+ 6.
+
+ *"You"* means an individual or entity exercising rights under this
+ License who has not previously violated the terms of this License
+ with respect to the Work, or who has received express permission
+ from the Licensor to exercise rights under this License despite a
+ previous violation.
+
+*2. Fair Use Rights.* Nothing in this license is intended to reduce,
+limit, or restrict any rights arising from fair use, first sale or other
+limitations on the exclusive rights of the copyright owner under
+copyright law or other applicable laws.
+
+*3. License Grant & Restrictions.* Subject to the terms and conditions
+of this License, Licensor hereby grants You a worldwide, royalty-free,
+non-exclusive, perpetual (for the duration of the applicable copyright)
+license to exercise the rights in the Work as stated below on the
+conditions as stated below:
+
+ 1. *Re-creativity permitted*. You may create and reproduce Derivative
+ Works, provided that:
+ 1.
+
+ the Derivative Work(s) constitute a good-faith partial or
+ recombined usage employing "sampling," "collage," "mash-up,"
+ or other comparable artistic technique, whether now known or
+ hereafter devised, that is highly transformative of the
+ original, as appropriate to the medium, genre, and market
+ niche; and
+
+ 2.
+
+ Your Derivative Work(s) must only make a partial use of the
+ original Work, or if You choose to use the original Work as
+ a whole, You must either use the Work as an insubstantial
+ portion of Your Derivative Work(s) or transform it into
+ something substantially different from the original Work. In
+ the case of a musical Work and/or audio recording, the mere
+ synchronization ("synching") of the Work with a moving image
+ shall not be considered a transformation of the Work into
+ something substantially different.
+
+ 2.
+
+ You may distribute copies or phonorecords of, display publicly,
+ perform publicly, and perform publicly by means of a digital audio
+ transmission, any Derivative Work(s) authorized under this License.
+
+ 3.
+
+ *Prohibition on advertising*. All advertising and promotional uses
+ are excluded from the above rights, except for advertisement and
+ promotion of the Derivative Work(s) that You are creating from the
+ Work and Yourself as the author thereof.
+
+ 4.
+
+ *Noncommercial sharing of verbatim copies permitted*.
+
+ 1.
+
+ You may reproduce the Work, incorporate the Work into one or
+ more Collective Works, and reproduce the Work as
+ incorporated in the Collective Works. You may distribute
+ copies or phonorecords of, display publicly, perform
+ publicly, and perform publicly by means of a digital audio
+ transmission the Work including or incorporated in
+ Collective Works.
+
+ 2.
+
+ You may not exercise any of the rights granted to You in the
+ paragraph immediately above in any manner that is primarily
+ intended for or directed toward commercial advantage or
+ private monetary compensation. The exchange of the Work for
+ other copyrighted works by means of digital file-sharing or
+ otherwise shall not be considered to be intended for or
+ directed toward commercial advantage or private monetary
+ compensation, provided there is no payment of any monetary
+ compensation in connection with the exchange of copyrighted
+ works.
+
+ 5.
+
+ *Attribution and Notice*.
+
+ 1.
+
+ If You distribute, publicly display, publicly perform, or
+ publicly digitally perform the Work or any Derivative Works
+ or Collective Works, You must keep intact all copyright
+ notices for the Work and give the Original Author credit
+ reasonable to the medium or means You are utilizing by
+ conveying the name (or pseudonym if applicable) of the
+ Original Author if supplied; the title of the Work if
+ supplied; to the extent reasonably practicable, provide the
+ Uniform Resource Identifier, if any, that Licensor specifies
+ to be associated with the Work or a Derivative Work, unless
+ such Uniform Resource Identifier does not refer to the
+ copyright notice or licensing information for the Work; and
+ in the case of a Derivative Work, provide a credit
+ identifying the use of the Work in the Derivative Work
+ (e.g., "Remix of the Work by Original Author," or "Inclusion
+ of a portion of the Work by Original Author in collage").
+ Such credit may be implemented in any reasonable manner;
+ provided, however, that in the case of a Derivative Work or
+ Collective Work, at a minimum such credit will appear where
+ any other comparable authorship credit appears and in a
+ manner at least as prominent as such other comparable
+ authorship credit.
+
+ 2.
+
+ You may distribute, publicly display, publicly perform or
+ publicly digitally perform the Work only under the terms of
+ this License, and You must include a copy of, or the Uniform
+ Resource Identifier for, this License with every copy or
+ phonorecord of the Work or Derivative Work You distribute,
+ publicly display, publicly perform, or publicly digitally
+ perform. You may not offer or impose any terms on the Work
+ that alter or restrict the terms of this License or the
+ recipients' exercise of the rights granted hereunder. You
+ may not sublicense the Work. You must keep intact all
+ notices that refer to this License and to the disclaimer of
+ warranties. You may not distribute, publicly display,
+ publicly perform, or publicly digitally perform the Work
+ with any technological measures that control access of use
+ of the Work in a manner inconsistent with the terms of this
+ License. The above applies to the Work as incorporated in a
+ Collective Work, but this does not require the Collective
+ Work apart from the Work itself to be made subject to the
+ terms of this License. Upon notice from any Licensor You
+ must, to the extent practicable, remove from the Derivative
+ Work or Collective Work any reference to such Licensor or
+ the Original Author, as requested.
+
+The above rights may be exercised in all media and formats whether now
+known or hereafter devised. The above rights include the right to make
+such modifications as are technically necessary to exercise the rights
+in other media and formats. All rights not expressly granted by Licensor
+are hereby reserved.
+
+*4. Disclaimer*
+
+UNLESS SPECIFIED OTHERWISE BY THE PARTIES IN A SEPARATE WRITING,
+LICENSOR OFFERS THE WORK AS-IS AND MAKES NO REPRESENTATIONS OR
+WARRANTIES, EXPRESS OR IMPLIED, INCLUDING, WITHOUT LIMITATION,
+WARRANTIES OF TITLE, MERCHANTIBILITY, FITNESS FOR A PARTICULAR PURPOSE,
+NONINFRINGEMENT, OR THE ABSENCE OF LATENT OR OTHER DEFECTS, ACCURACY, OR
+THE PRESENCE OR ABSENCE OF ERRORS, WHETHER OR NOT DISCOVERABLE.
+
+*5. Limitation on Liability.*
+
+IN NO EVENT WILL LICENSOR BE LIABLE TO YOU ON ANY LEGAL THEORY FOR ANY
+SPECIAL, INCIDENTAL, CONSEQUENTIAL, PUNITIVE OR EXEMPLARY DAMAGES
+ARISING OUT OF THIS LICENSE OR THE USE OF THE WORK, EVEN IF LICENSOR HAS
+BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
+
+*6. Termination*
+
+ 1.
+
+ This License and the rights granted hereunder will terminate
+ automatically upon any breach by You of the terms of this License.
+ Individuals or entities who have received Derivative Works or
+ Collective Works from You under this License, however, will not
+ have their licenses terminated provided such individuals or
+ entities remain in full compliance with those licenses. Sections
+ 1, 2, 4, 5, 6, and 7 will survive any termination of this License.
+
+ 2.
+
+ Subject to the above terms and conditions, the license granted
+ here is perpetual (for the duration of the applicable copyright in
+ the Work). Notwithstanding the above, Licensor reserves the right
+ to release the Work under different license terms or to stop
+ distributing the Work at any time; provided, however that any such
+ election will not serve to withdraw this License (or any other
+ license that has been granted under the terms of this License),
+ and this License will continue in full force and effect unless
+ terminated as stated above.
+
+*7. Miscellaneous*
+
+ 1.
+
+ Each time You distribute or publicly digitally perform the Work or
+ a Collective Work, the Licensor offers to the recipient a license
+ to the Work on the same terms and conditions as the license
+ granted to You under this License.
+
+ 2.
+
+ Each time You distribute or publicly digitally perform a
+ Derivative Work, Licensor offers to the recipient a license to the
+ original Work on the same terms and conditions as the license
+ granted to You under this License.
+
+ 3.
+
+ If any provision of this License is invalid or unenforceable under
+ applicable law, it shall not affect the validity or enforceability
+ of the remainder of the terms of this License, and without further
+ action by the parties to this agreement, such provision shall be
+ reformed to the minimum extent necessary to make such provision
+ valid and enforceable.
+
+ 4.
+
+ No term or provision of this License shall be deemed waived and no
+ breach consented to unless such waiver or consent shall be in
+ writing and signed by the party to be charged with such waiver or
+ consent.
+
+ 5.
+
+ This License constitutes the entire agreement between the parties
+ with respect to the Work licensed here. There are no
+ understandings, agreements, or representations with respect to the
+ Work, and with respect to the subject matter hereof, not specified
+ above. Licensor shall not be bound by any additional provisions
+ that may appear in any communication from You. This License may
+ not be modified without the mutual written agreement of the
+ Licensor and You.
+
25 autotest.d/sound/sound_fx/README
@@ -0,0 +1,25 @@
+Sound Effects for Autotest
+----------------------------------------
+jeremy@somebox.com
+http://fozworks.com/2007/7/28/autotest-sound-effects
+
+Hello Friends,
+
+I created this is a collection of sound effects for autotest.
+
+The sounds were designed to be audibly interesting, but not too grating. Several of the sounds are subtle in nature, so they do not alarm you or bother your work neighbors (although this is subject to debate - you can always use your own sounds, if you want!).
+
+About The Sounds
+----------------
+These sounds were all created several years ago on the Clavia Nord Modular, still my favlorite toy. See http://www.clavia.se for more information in this excellent instrument. Everything was recorded in 44khz 24-bit (and downsampled to 44khz 16-bit wav files) using an RME Hammerfall DSP converter. The effects were edited and processed.
+
+License:
+--------
+Sounds are released under Creative Commons "Sampling Plus 1.0" License:
+
+ http://creativecommons.org/licenses/sampling+/1.0/
+
+See LICENSE for full details.
+
+
+-foz
BIN  autotest.d/sound/sound_fx/green.mp3
Binary file not shown
BIN  autotest.d/sound/sound_fx/quit.mp3
Binary file not shown
BIN  autotest.d/sound/sound_fx/ran_command.mp3
Binary file not shown
BIN  autotest.d/sound/sound_fx/red.mp3
Binary file not shown
BIN  autotest.d/sound/sound_fx/run.mp3
Binary file not shown
BIN  autotest.d/sound/sound_fx/run_command.mp3
Binary file not shown
12 bash_profile
@@ -0,0 +1,12 @@
+# ~/.bash_profile: executed by bash for login shells.
+
+if [ -e ~/.bashrc ] ; then
+ . ~/.bashrc
+fi
+
+# Local customizations go below
+
+if [ -e ~/.bash_env ] ; then
+ . ~/.bash_env
+fi
+
163 bashrc
@@ -0,0 +1,163 @@
+## This file is sourced by all *interactive* bash shells on startup. This
+## file *should generate no output* or it will break the scp and rcp commands.
+############################################################
+
+if [ -e /etc/bashrc ] ; then
+ . /etc/bashrc
+fi
+
+
+############################################################
+## PATH
+############################################################
+
+if [ -d ~/bin ] ; then
+ PATH="~/bin:${PATH}"
+fi
+
+if [ -d /usr/local/bin ] ; then
+ PATH="${PATH}:/usr/local/bin"
+fi
+
+# MacPorts
+if [ -d /opt/local/bin ] ; then
+ PATH="/opt/local/bin:${PATH}"
+fi
+if [ -d /opt/local/sbin ] ; then
+ PATH="/opt/local/sbin:${PATH}"
+fi
+
+# MySql
+if [ -d /usr/local/mysql/bin ] ; then
+ PATH="${PATH}:/usr/local/mysql/bin"
+fi
+
+# Subversion
+# if [ -d /opt/subversion/bin ] ; then
+# PATH="/opt/subversion/bin:${PATH}"
+# fi
+
+PATH=.:${PATH}
+
+
+############################################################
+## Other paths
+############################################################
+
+# MacPorts
+if [ -d /opt/local/share/man ] ; then
+ MANPATH="/opt/local/share/man:${MANPATH}"
+fi
+
+# Set MANPATH so it includes users' private man if it exists
+# if [ -d ~/man ]; then
+# MANPATH="~/man:${MANPATH}"
+# fi
+
+# Set INFOPATH so it includes users' private info if it exists
+# if [ -d ~/info ]; then
+# INFOPATH="~/info:${INFOPATH}"
+# fi
+
+# DYLD_LIBRARY_PATH
+if [[ `uname` == 'Darwin' ]]; then
+ if [ -d /opt/local/lib ] ; then
+ DYLD_LIBRARY_PATH="/opt/local/lib:${DYLD_LIBRARY_PATH}"
+ fi
+# if [ -d /opt/subversion/lib ] ; then
+# DYLD_LIBRARY_PATH="/opt/subversion/lib:${DYLD_LIBRARY_PATH}"
+# fi
+fi
+
+
+############################################################
+## Terminal behavior
+############################################################
+
+# Change the window title of X terminals
+case $TERM in
+ xterm*|rxvt|Eterm|eterm)
+ PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME%%.*}:${PWD/$HOME/~}\007"'
+ ;;
+ screen)
+ PROMPT_COMMAND='echo -ne "\033_${USER}@${HOSTNAME%%.*}:${PWD/$HOME/~}\033\\"'
+ ;;
+esac
+
+# Do not set PS1 for dumb terminals
+if [ "$TERM" != 'dumb' ] && [ -n "$BASH" ]
+then
+ export PS1='\[\033[32m\]\n[\s: \w]\n\[\033[31m\][\u@\h]\$ \[\033[00m\]'
+fi
+
+
+############################################################
+## Optional shell behavior
+############################################################
+
+shopt -s cdspell
+shopt -s extglob
+shopt -s checkwinsize
+
+export PAGER="less"
+export HISTIGNORE="&:pwd:ls:ll:lal:[bf]g:exit:rm*:sudo rm*"
+export EDITOR="vi"
+
+
+############################################################
+## Aliases
+############################################################
+
+alias wgeto="wget -q -O -"
+alias sha1="openssl dgst -sha1"
+alias sha2="openssl dgst -sha256"
+
+if [[ `uname` == 'Darwin' ]]; then
+ alias ls="ls -G"
+ # good for dark backgrounds
+ export LSCOLORS=gxfxcxdxbxegedabagacad
+else
+ alias ls="ls --color=auto"
+ # good for dark backgrounds
+ export LS_COLORS='no=00:fi=00:di=00;36:ln=00;35:pi=40;33:so=01;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:ex=00;31:'
+ # For LS_COLORS template: $ dircolors /etc/DIR_COLORS
+fi
+
+alias ll="ls -l"
+alias lal="ls -al"
+
+alias gb="git branch -a -v"
+alias gc="git commit -v"
+alias gca="git commit -v -a"
+alias gd="git diff"
+alias gl="git pull"
+alias glr="git pull --rebase"
+alias gp="git push"
+alias gs="git status"
+alias gco="git checkout"
+
+############################################################
+## Bash Completion, if available
+############################################################
+
+if [ -f /opt/local/etc/bash_completion ]; then
+ . /opt/local/etc/bash_completion
+elif [ -f /etc/bash_completion ]; then
+ . /etc/bash_completion
+elif [ -f /etc/profile.d/bash_completion ]; then
+ . /etc/profile.d/bash_completion
+fi
+
+# http://onrails.org/articles/2006/11/17/rake-command-completion-using-rake
+if [ -f ~/bin/rake_completion ]; then
+ complete -C ~/bin/rake_completion -o default rake
+fi
+
+############################################################
+## Other
+############################################################
+
+if [[ "$USER" == '' ]]; then
+ # mainly for cygwin terminals. set USER env var if not already set
+ USER=$USERNAME
+fi
44 emacs
@@ -0,0 +1,44 @@
+;;;; Ryan McGeary's emacs initialization (2001-2008)
+
+;; Enable a backtrace when problems occur
+;; (setq debug-on-error t)
+
+;; Load paths
+(add-to-list 'load-path (expand-file-name "~/.emacs.d"))
+(add-to-list 'load-path (expand-file-name "~/.emacs.d/lisp"))
+(add-to-list 'load-path (expand-file-name "~/.emacs.d/personal"))
+
+;; Personal customizations
+(require 'rmm-generic)
+(require 'rmm-defuns)
+(require 'rmm-env-vars)
+(require 'rmm-disabled)
+(require 'rmm-carbon-emacs)
+(require 'rmm-fonts)
+(require 'rmm-colors)
+(require 'rmm-tabs)
+
+(require 'rmm-iswitchb)
+(require 'rmm-grep)
+(require 'rmm-dired)
+(require 'rmm-diff)
+(require 'rmm-rectangle)
+(require 'rmm-filladapt)
+(require 'rmm-hl-line)
+
+(require 'rmm-svn)
+(require 'rmm-git)
+
+(require 'rmm-flymake)
+(require 'rmm-ruby)
+(require 'rmm-rails)
+(require 'rmm-haml)
+(require 'rmm-javascript)
+
+(require 'rmm-csv)
+
+(require 'rmm-maxframe)
+(require 'rmm-zoom)
+(require 'rmm-pastie)
+
+(require 'rmm-global-keys)
9 gemrc
@@ -0,0 +1,9 @@
+---
+:benchmark: false
+:update_sources: true
+:verbose: true
+:sources:
+- http://gems.rubyforge.org
+- http://gems.github.com/
+:backtrace: false
+:bulk_threshold: 1000
14 gitconfig
@@ -0,0 +1,14 @@
+[user]
+ email = ryanongit@mcgeary.orgs
+ name = Ryan McGeary
+[alias]
+ co = checkout
+ st = status
+[appl]
+ whitespace = nowarn
+[color]
+ diff = auto
+ status = auto
+ branch = auto
+[merge]
+ summary = true
27 gitk
@@ -0,0 +1,27 @@
+set mainfont {Monaco 12}
+set textfont {Monaco 12}
+set uifont {Monaco 12 bold}
+set tabstop 8
+set findmergefiles 0
+set maxgraphpct 50
+set maxwidth 16
+set cmitmode patch
+set wrapcomment none
+set showneartags 1
+set showlocalchanges 1
+set datetimeformat {%Y-%m-%d %H:%M:%S}
+set limitdiffs 1
+set bgcolor white
+set fgcolor black
+set colors {green red blue magenta darkgrey brown orange}
+set diffcolors {red "#00a000" blue}
+set diffcontext 3
+set selectbgcolor gray85
+set geometry(main) 1411x848+-1+22
+set geometry(topwidth) 1407
+set geometry(topheight) 442
+set geometry(pwsash0) "417 2"
+set geometry(pwsash1) "813 2"
+set geometry(botwidth) 924
+set geometry(botheight) 386
+set permviews {}
15 install.rb
@@ -0,0 +1,15 @@
+#!/usr/bin/env ruby
+
+# from http://errtheblog.com/posts/89-huba-huba
+
+home = File.expand_path('~')
+
+Dir['*'].each do |file|
+ next if file =~ /install/
+ target = File.join(home, ".#{file}")
+ `ln -nis #{File.expand_path file} #{target}`
+end
+
+# git push on commit
+`echo 'git push' > .git/hooks/post-commit`
+`chmod 755 .git/hooks/post-commit`
11 irbrc
@@ -0,0 +1,11 @@
+require 'rubygems'
+require 'utility_belt'
+
+
+
+
+
+
+
+
+
27 sake
@@ -0,0 +1,27 @@
+task 'rcov' do
+ test_files = "test/**/*_test.rb"
+ options = "--rails --sort coverage --sort-reverse --only-uncovered "
+ options = (options + "--exclude .railsrc")
+ system("rcov #{options} #{test_files}")
+end
+
+task 'rcov:functionals' do
+ test_files = "test/functional/*_test.rb"
+ options = "--rails --sort coverage --sort-reverse --only-uncovered "
+ options = (options + "--exclude .railsrc")
+ system("rcov #{options} #{test_files}")
+end
+
+task 'rcov:integration' do
+ test_files = "test/integration/*_test.rb"
+ options = "--rails --sort coverage --sort-reverse --only-uncovered "
+ options = (options + "--exclude .railsrc")
+ system("rcov #{options} #{test_files}")
+end
+
+task 'rcov:units' do
+ test_files = "test/unit/*_test.rb"
+ options = "--rails --sort coverage --sort-reverse --only-uncovered "
+ options = (options + "--exclude .railsrc")
+ system("rcov #{options} #{test_files}")
+end
8 vimrc
@@ -0,0 +1,8 @@
+
+" Switch syntax highlighting on, when the terminal has colors
+" Also switch on highlighting the last used search pattern.
+if &t_Co > 2 || has("gui_running")
+ syntax on
+ set hlsearch
+endif
+
Please sign in to comment.
Something went wrong with that request. Please try again.