This file contains 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
JCE_DIR="$(dirname $(dirname $(readlink -f $(which javac))))/jre/lib/security" | |
echo JCE_DIR | |
# http://www.oracle.com/technetwork/java/javase/downloads/jce-7-download-432124.html | |
# http://www.oracle.com/technetwork/java/javase/downloads/jce8-download-2133166.html | |
# Dowload and unpack UnlimitedJCE policy files | |
This file contains 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
↑のStar押してみて! |
This file contains 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 'net/http' | |
require 'rubygems' | |
require 'nokogiri' | |
KCODE = 'UTF-8' | |
# アラートを通知してくれるコメントサーバーの情報を取得 | |
response = Net::HTTP.get(URI('http://live.nicovideo.jp/api/getalertinfo')) | |
xml = Nokogiri(response) | |
address = (xml/'addr').inner_text() |