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
| # docker-compose Cassandra Test Cluster | |
| # docker-compose rm | |
| # docker-compose up | |
| # docker run -it --link cassandra_cassandra-1_1:cassandra --rm cassandra cqlsh cassandra | |
| # copy paste the test script on cassandra-1 | |
| # run select on cassandra-2 | |
| # | |
| cassandra-1: |
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 'nokogiri' | |
| require 'colorize' | |
| require 'tempfile' | |
| # valgrind --xml=yes --xml-file=leak.xml --leak-check=full --error-limit=no \ | |
| # --num-callers=20 --partial-loads-ok=yes --undef-value-errors=no \ | |
| # ruby -Ilib test/image_test.rb |
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 'rack' | |
| include Rack | |
| port = (ARGV[0] || 8080 ).to_i | |
| Handler::Thin.run Builder.new { run Directory.new ''}, :Port=>port |