Skip to content

Instantly share code, notes, and snippets.

View tnaoto's full-sized avatar

Naoto TAKAHASHi tnaoto

View GitHub Profile
knife solo init <cookbook>
cd <cookbook>
vi Berksfile
berks install --path cookbooks/
knife cookbook create <recipe> -o site-cookbook/
require 'zlib'
require 'archive/tar/minitar'
include Archive::Tar
tgz = Zlib::GzipReader.new(File.open('test.tgz', 'rb'))
Minitar.unpack(tgz, 'x')
@tnaoto
tnaoto / gist:5148313
Last active December 14, 2015 20:59 — forked from hamakn/gist:5131299