Skip to content

Instantly share code, notes, and snippets.

@hilotter
hilotter / Gemfile
Created September 2, 2014 00:26
twitter screen_nameからユーザidを取得するサンプル
source 'https://rubygems.org'
gem 'sinatra'
gem 'nokogiri'
gem 'pry'
@hilotter
hilotter / Gemfile
Created September 9, 2014 14:01
twitter api test
source 'https://rubygems.org'
gem 'twitter'
gem 'pry'
gem 'activerecord'
gem 'sqlite3'
@hilotter
hilotter / jsonlint_chef
Created December 8, 2014 14:38
chefのrolesとnodes以下のjsonをチェックするコマンド(事前に npm install jsonlint -g でjsonlint コマンドをインストールしておく必要あり)
#!/bin/sh
# before install: npm install jsonlint -g
DIR=$(cd $(dirname ${BASH_SOURCE:-$0}); pwd)
CHECK_DIRS=("$DIR/roles/*.json" "$DIR/nodes/*.json")
function check_dirs {
for dir in ${CHECK_DIRS[@]}