Skip to content

Instantly share code, notes, and snippets.

@pironim
pironim / UnlimitedJCEPolicyJDK8.sh
Last active Sep 27, 2017
apply UnlimitedJCEPolicyJDK8
View UnlimitedJCEPolicyJDK8.sh
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
@snaka
snaka / nicolive.rb
Created Jan 23, 2010
ニコ生アラートを受信するスクリプト
View nicolive.rb
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()