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
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-failsafe-plugin</artifactId> | |
<version>2.17</version> | |
<executions> | |
<!-- | |
Ensures that both integration-test and verify goals of the Failsafe Maven | |
plugin are executed. | |
--> | |
<execution> |
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
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-surefire-plugin</artifactId> | |
<version>2.17</version> | |
<configuration> | |
<!-- Sets the VM argument line used when unit tests are run. --> | |
<argLine>${surefireArgLine} -Xmx512m -XX:MaxPermSize=128m</argLine> | |
</configuration> | |
</plugin> |
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
<profiles> | |
<profile> | |
<id>normal</id> | |
<activation> | |
<activeByDefault>true</activeByDefault> | |
</activation> | |
<properties> | |
<surefireArgLine></surefireArgLine> <!--create blank property for surefire when not running under coverage profile--> | |
<failsafeArgLine></failsafeArgLine> <!--create blank property for failsafe when not running under coverage profile--> | |
</properties> |
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
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-dependency-plugin</artifactId> | |
</plugin> | |
<plugin> | |
<groupId>org.codehaus.mojo</groupId> | |
<artifactId>exec-maven-plugin</artifactId> | |
<version>1.1</version> | |
<dependencies> | |
</dependencies> |
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
# makes a directory and changes to it | |
function md { | |
if (( ${#} == 1 )); then | |
mkdir -p "${1}" || return 1; # return error | |
cd "${1}"; | |
else | |
echo usage: md \"folder\"; | |
fi | |
} |
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 | |
def combine_sql_files(final_sql) | |
Dir.glob("*.sql").sort.each do |file| | |
puts file | |
open(final_sql, 'a' ) {|f| | |
f.puts "\n-- #{file}\nGO\n" | |
} | |
`cat "#{file}" >> #{final_sql}` | |
end |
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 | |
require 'find' | |
require 'fileutils' | |
def combine_mp3_files(final_mp3) | |
`rm #{final_mp3}` | |
files = [] | |
Find.find('.') do |path| | |
if FileTest.file?(path) |
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
# Put this in your .irbrc, and then type | |
# "some_object.my_methods" in an IRB session | |
# for less noisy exploration of what objects | |
# can do. | |
class Object | |
def my_methods | |
base_object = case self | |
when Class then Class.new | |
when Module then Module.new |