Skip to content

Instantly share code, notes, and snippets.

View Kazuma's full-sized avatar

Kazuma Muramatsu Kazuma

  • Artisan Inc.
  • Okinawa, Japan
View GitHub Profile
#!/usr/bin/env ruby
require 'open-uri'
require 'nokogiri'
wishlist_url = ''
html = Nokogiri::HTML(open(wishlist_url), nil, 'sjis')
name = html.at('//div[@id="profile"]/h1').text
birthday = html.at('//div[@id="profile"]/div[@id="profileInfo"]/table/tr[3]/td').text
@Kazuma
Kazuma / gist:3857342
Created October 9, 2012 08:24
Pizza

会社近くのテイクアウト出来るピザ屋一覧

店名 場所 電話番号 営業時間(平日) 定休日 備考
手作りピザ工房ボーノボーノ 那覇市牧志3-3-1 098-943-0202 11:00 - 20:00 水曜日
Pizzeria RIO 浦添市前田1-48-1 098-878-1019 11:00 - 21:00 年中無休
PIZZA パルコ 首里(前田)店 浦添市前田4-5-13-1F 098-874-6777 11:30 - 21:00 不定休 8のつく日は安い
PIZZA RYUMAN 浦添市屋富祖4-5-8 1F 098-879-3445 15:00 - 21:00 年末年始 18時前に注文すると、大きいサイズ(40cm)が1000円
PIZZA-LA 浦添店
@Kazuma
Kazuma / gist:4192887
Created December 3, 2012 05:18
anime

これから見る・見そう・見るべきアニメ

  • 劇場版 天元突破グレンラガン 螺巌篇
  • 咲 阿知賀編
  • ノエイン
  • ROBOTICS;NOTES
@Kazuma
Kazuma / gist:5693544
Created June 2, 2013 12:45
gaaru2girl
#!/bin/sh
#
# Description:
# Convert to "ガール" from "がある".
#
# Usage:
# gaaru2girl foo.md
FILE=$1
@Kazuma
Kazuma / gist:6028335
Last active December 19, 2015 22:38
Kibana + elasticsearch + Fluentd 環境構築メモ, あと Kibana3

Kibana + elasticsearch + Fluentd 環境構築メモ

環境

あれ それ
OS Ubuntu 12.10
Ruby ruby 2.0.0p195 (2013-05-14 revision 40734) [i686-linux]

elasticsearch

@Kazuma
Kazuma / gist:8646748
Created January 27, 2014 11:06
雅治からのメール(タイトルのみ)

国王 雅治 さんからメール

おはよう、雅治だよ。「ましゃ」と伝えれば分かるのかな。仲良くしてくれるかな?
まださっき連絡したばかりでちゃんと知り合えてないけど…、君にはちゃんと僕「雅治」と言う存在を知って欲しいんだ。会ってもないのに少し重い話をするかもしれないけど、最後まで聞いて欲しい。実は僕ね…
#!/bin/sh
#
# peco-ssh
#
_peco_selected_host() {
cat ~/.ssh/config | awk '$1 == "Host" { print $2 }' | peco
}
ssh `_peco_selected_host`
@Kazuma
Kazuma / box.json
Last active August 29, 2015 14:03
CentOS 7 Packer build
{
"builders": [
{
"boot_command": [
"<esc><wait>",
"linux ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/ks.cfg ",
"<enter><wait>"
],
"boot_wait": "10s",
"guest_os_type": "RedHat_64",
@Kazuma
Kazuma / install-ruby-using-the-brightbox-for-1204.sh
Last active August 29, 2015 14:18
install-ruby-using-the-brightbox.sh
#!/bin/sh
#
# Setup ruby environment using the brightbox for 12.04 (Precise)
# See: https://www.brightbox.com/docs/ruby/ubuntu/
#
set -e
echo 'Setting up: Add package repository'
apt-get install -y python-software-properties >/dev/null 2>&1