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
| #!/usr/bin/env ruby | |
| require 'socket' | |
| require 'timeout' | |
| def knock?(ip, port) | |
| begin | |
| Timeout::timeout(2) do | |
| begin | |
| s = TCPSocket.new(ip, port) |
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
| repository 'http://repository.jboss.org/nexus/content/groups/public-jboss' | |
| jar "org.apache.mina:mina-core:2.0.4" | |
| pom 'spec/pom.xml' | |
| scope 'runtime' do | |
| jar 'org.apache.tomcat:servlet-api:jar:6.0.35' | |
| end | |
| scope 'test' do |
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
| DAYS = 30 | |
| DIR_COUNT=`ls -tr | wc -l` | |
| if [ "${DIR_COUNT}" -gt ${DAYS} ] | |
| then | |
| ls | sort -n | head -`expr ${DIR_COUNT} - ${DAYS}` | xargs echo "removing dirs | |
| : " | |
| ls | sort -n | head -`expr ${DIR_COUNT} - ${DAYS}` | xargs rm -rf | |
| 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
| require 'lock_jar/buildr' | |
| # app definition, inherited into all projects | |
| lock_jar do | |
| repository 'http://repository.jboss.org/nexus/content/groups/public-jboss' | |
| scope 'test' do | |
| jar 'junit:junit:jar:4.10' | |
| end | |
| 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
| --- | |
| scopes: | |
| compile: | |
| dependencies: | |
| - org.apache.mina:mina-core:2.0.4 | |
| resolved_dependencies: | |
| - org.apache.mina:mina-core:jar:2.0.4 | |
| - org.slf4j:slf4j-api:jar:1.6.1 | |
| - com.slackworks:modelcitizen:jar:0.2.2 | |
| - commons-lang:commons-lang:jar:2.6 |
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
| // https://github.com/mguymon/model-citizen | |
| @RunWith(SpringJUnit4ClassRunner.class) | |
| @Transactional | |
| @TransactionConfiguration( transactionManager="transactionManager",defaultRollback=true ) | |
| public class CategoryDAOTest { | |
| @Autowired | |
| private CategoryDAO categoryDAO; | |
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
| --- | |
| version: 0.7.1 | |
| local_repository: ~/.m2/repository | |
| groups: | |
| default: | |
| dependencies: | |
| - ch.qos.logback:logback-classic:jar:0.9.24 | |
| - ch.qos.logback:logback-core:jar:0.9.24 | |
| - com.metapossum:metapossum-scanner:jar:1.0 | |
| - com.slackworks:modelcitizen:jar:0.2.2 |
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
| + bundle install --deployment | |
| Fetching gem metadata from https://rubygems.org/.Unfortunately, a fatal error has occurred. Please see the Bundler | |
| troubleshooting documentation at http://bit.ly/bundler-issues. Thanks! | |
| OpenSSL::SSL::SSLError: Socket closed | |
| connect at org/jruby/ext/openssl/SSLSocket.java:170 | |
| connect at /var/lib/jenkins/.rvm/rubies/jruby-1.7.3/lib/ruby/1.9/net/http.rb:799 | |
| timeout at org/jruby/ext/timeout/Timeout.java:105 | |
| connect at /var/lib/jenkins/.rvm/rubies/jruby-1.7.3/lib/ruby/1.9/net/http.rb:799 | |
| do_start at /var/lib/jenkins/.rvm/rubies/jruby-1.7.3/lib/ruby/1.9/net/http.rb:755 | |
| start at /var/lib/jenkins/.rvm/rubies/jruby-1.7.3/lib/ruby/1.9/net/http.rb:750 |
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
| source 'https://rubygems.org' | |
| gem 'rails', '~> 3.2.12' | |
| gem "figaro", '~> 0.5.3' | |
| gem 'inherited_resources' | |
| # Upload | |
| gem "paperclip" , '~> 3.4.0' | |
| gem 'paperclip-ffmpeg', '~> 0.9.4' | |
| gem 'aws-sdk', '~> 1.8.2' |
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
| class StompClient < Stilts::Stomp::Client | |
| field_accessor :destroyExecutor, :channel, :bootstrap | |
| # override send to add header support | |
| def send(destination, message, headers = nil) | |
| method_args = [destination] | |
| if headers |