- 2012-01-07 (Sat)
- 2012-01-08 (Sun)
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
#!/usr/bin/env ruby | |
#coding:utf-8 | |
require 'mechanize' | |
alice = Mechanize.new | |
page = alice.get ARGV[0] | |
url = CGI.unescape page.root.xpath('//*[@id="flash-player-embed"]')[0]['flashvars'].split('&flv_url=').last.split('&').first | |
title = page.root.xpath('//div[@id="main"]/h2')[0].inner_text.to_s+'.flv' |
- AWSでEC2のインスタンスを借りる
- 今回は東京リージョンのCentOS 6.3 x86_64 Release MediaのAIM(ami-3fe8603e)でインスタンスを建てる
- Security Group: L2TP/IPsec(Inbound 22/TCP: SSH, 500/UDP: ISAKMP, 1701/UDP: L2TP, 4500/UDP: IPSec NAT Traversal)を許可
- ec2-54-249-173-214.ap-northeast-1.compute.amazonaws.com(グローバルIPアドレス:
54.249.173.214
)にrootでログイン
[root@ip-10-132-164-105 ~]# setenforce 0
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 "net/https" | |
require "uri" | |
require "rexml/document" | |
class NicoLiveException < StandardError; end | |
class NicoLive | |
attr_accessor :mail_tel, :password | |
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
{ | |
"AWSTemplateFormatVersion": "2010-09-09", | |
"Description": "VPC knowhow template", | |
"Parameters": { | |
"KeyName": { | |
"Description": "Name of an existing EC2 KeyPair to enable SSH access to the instances", | |
"Type": "String", | |
"MinLength": "1", | |
"MaxLength": "64", | |
"AllowedPattern": "[-_ a-zA-Z0-9]*", |
- メインスピーカー:マシューさん(@matthewmccull)
- サブスピーカー:ジョンさん(@johndbritton)
従来の CVCS (集中バージョン管理システム)のリビジョン番号は連番。 SVN はサーバーにデプロイした時点でリビジョン番号1と設定される。
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
あせ (・_・;) 顔文字 | |
あせ (・∀・;) 顔文字 | |
あせ (^ω^;;) 顔文字 | |
あせ (゚∀゚ ;) 顔文字 | |
あせ (゚∀゚ ;)タラー 顔文字 | |
あたふた ヽ(´・ω・`ヽ) 顔文字 | |
あつい (。>﹏<) 顔文字 | |
あつい (。>﹏<)あㄘ”ゅい 顔文字 | |
あつい (>﹏<。Ξ。>﹏<) 顔文字 | |
あつい ι(´Д`υ) 顔文字 |
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
# Description: | |
# ハイカラニュース | |
# | |
# Notes: | |
# イカ、よろしくー | |
# | |
kaiwa = { | |
"Bバスパーク": [ | |
["スケボーは苦手・・・\n骨折とかしそう・・・", "骨、無いじゃん・・・"], | |
["ここは 接近戦が勝負の決め手!\n死角も多い!", "高台から チャージャー使うのも\n捨てがたいよね~"], |
OlderNewer