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
| [root@10-134-25-12 rabbit_swift]# vim lib/rabbit_swift/client.rb | |
| [root@10-134-25-12 rabbit_swift]# bundle exec ruby -I./lib bin/get_object.rb -t /nico_archive/anime_c123_2015_02_19_SPLIT1G.zip -d ./private/ -c ../Chino/conf/conf.json | |
| Content-Length = 7548785363 | |
| Etag = "3772025e360d2d99fb813d151ba7d875" | |
| Accept-Ranges = bytes | |
| Last-Modified = Sat, 21 Feb 2015 09:23:37 GMT | |
| X-Object-Manifest = nico_archive/anime_c123_2015_02_19_SPLIT1G.zip_ | |
| X-Timestamp = 1424510616.48291 | |
| X-Static-Large-Object = true | |
| Content-Type = application/json |
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
| [root@10-134-25-12 rabbit_swift]# bundle exec ruby -I./lib bin/get_object.rb -t /nico_archive/anime_c123_2015_02_19PLIT1G.zip -d ./private/ -c ../Chino/conf/conf.json | |
| Content-Length = 7548785363 | |
| Etag = "3772025e360d2d99fb813d151ba7d875" | |
| Accept-Ranges = bytes | |
| Last-Modified = Sat, 21 Feb 2015 09:23:37 GMT | |
| X-Object-Manifest = nico_archive/anime_c123_2015_02_19_SPLIT1G.zip_ | |
| X-Timestamp = 1424510616.48291 | |
| X-Static-Large-Object = true | |
| Content-Type = application/json | |
| X-Trans-Id = tx17d36543427f47ac915f3-0054e85060 |
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
| [root@10-134-25-12 private]# md5sum anime_c123_2015_02_19_SPLIT1G.zip | |
| 29ad30cffdee71e84dc53f794a04ebb3 anime_c123_2015_02_19_SPLIT1G.zip | |
| [root@10-134-25-12 private]# md5sum ../ | |
| .git/ Gemfile.lock RELEASE.md lib/ | |
| .gitignore LICENSE.txt Rakefile private/ | |
| Gemfile README.md bin/ rabbit_swift.gemspec | |
| [root@10-134-25-12 private]# md5sum ../../ | |
| 0.zip Nico/ maki/ nico_tools/ | |
| 2ch_thread_alert_system/ SutemaBurstStream/ n2/ rabbit_swift/ | |
| Chino/ kodachi/ n3/ |
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
| http_client = HTTPClient.new | |
| open(dest_file, 'wb') do |file| | |
| file.write http_client.get_content(URI.parse(URI.encode(url)), query, auth_header) | |
| 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
| "C:\Program Files\Java\jdk1.8.0_25\bin\java" -Didea.launcher.port=7534 "-Didea.launcher.bin.path=N:\Program Files (x86)\JetBrains\IntelliJ IDEA 14.0.3\bin" -Dfile.encoding=UTF-8 -classpath "C:\Program Files\Java\jdk1.8.0_25\jre\lib\charsets.jar;C:\Program Files\Java\jdk1.8.0_25\jre\lib\deploy.jar;C:\Program Files\Java\jdk1.8.0_25\jre\lib\javaws.jar;C:\Program Files\Java\jdk1.8.0_25\jre\lib\jce.jar;C:\Program Files\Java\jdk1.8.0_25\jre\lib\jfr.jar;C:\Program Files\Java\jdk1.8.0_25\jre\lib\jfxswt.jar;C:\Program Files\Java\jdk1.8.0_25\jre\lib\jsse.jar;C:\Program Files\Java\jdk1.8.0_25\jre\lib\management-agent.jar;C:\Program Files\Java\jdk1.8.0_25\jre\lib\plugin.jar;C:\Program Files\Java\jdk1.8.0_25\jre\lib\resources.jar;C:\Program Files\Java\jdk1.8.0_25\jre\lib\rt.jar;C:\Program Files\Java\jdk1.8.0_25\jre\lib\ext\access-bridge-64.jar;C:\Program Files\Java\jdk1.8.0_25\jre\lib\ext\cldrdata.jar;C:\Program Files\Java\jdk1.8.0_25\jre\lib\ext\dnsns.jar;C:\Program Files\Java\jdk1.8.0_25\jre\lib\ext\jaccess.jar;C:\Progr |
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 exec ruby -I./lib bin/slo_client.rb -s ~/Downloads/test.zip -d /test -c ../chino/conf/conf.json -l 100MB | |
| /Users/Siori/Downloads/test.zip_0001 | |
| /Users/Siori/Downloads/test.zip_0002 | |
| [{"path":"https://objectstore-r1nd1001.cnode.jp/v1/93a6500c0a1e4c68b976e5e46527145c/test/test.zip_0001","etag":"ab30f25f120fead24c4eaea63f5fe096","size_bytes":104857600},{"path":"https://objectstore-r1nd1001.cnode.jp/v1/93a6500c0a1e4c68b976e5e46527145c/test/test.zip_0002","etag":"81160d082d081cb92fae1047f37f274b","size_bytes":77011881}] | |
| upload_url -> https://objectstore-r1nd1001.cnode.jp/v1/93a6500c0a1e4c68b976e5e46527145c/test/test.zip_0001 | |
| /Users/Siori/Downloads/test.zip_0001 | |
| http_status -> 201 | |
| upload OK | |
| upload_url -> https://objectstore-r1nd1001.cnode.jp/v1/93a6500c0a1e4c68b976e5e46527145c/test/test.zip_0002 | |
| /Users/Siori/Downloads/test.zip_0002 |
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 $RABBITMQ_HOME/etc/rabbitmq/ | |
| sudo touch rabbitmq.config | |
| vi rabbitmq.config |
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 'nokogiri' | |
| require 'open-uri' | |
| require 'uri' | |
| #引数サンプル | |
| #'http://www.getchu.com/all/month_title.html?genre=pc_soft&gage=&year=2015&month=02' | |
| target = ARGV[0] | |
| doc = nil |
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
| $java -version | |
| $java version "1.7.0_XX" |
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
| include Java | |
| #shell>hbase org.jruby.Main jruby_scan.rb | |
| #ref http://www.bigdataeverywhere.com/sites/default/files/BigData2014-JayeshThakrar-UnleashthePowerofHBaseShel.pdf | |
| import org.apache.hadoop.hbase.HBaseConfiguration | |
| import org.apache.hadoop.hbase.client.Put | |
| import org.apache.hadoop.hbase.client.Get | |
| import org.apache.hadoop.hbase.client.Scan | |
| import org.apache.hadoop.hbase.client.HTable | |
| import org.apache.hadoop.hbase.util.Bytes |