Skip to content

Instantly share code, notes, and snippets.

View hfm's full-sized avatar

Okumura Takahiro hfm

View GitHub Profile

何を紹介するか

  1. zsh(theme, auto-fu,zsh-completions)
  2. gibo
  3. percol(peco)
  4. sheet peco/percol & ~/.snippets
  5. tmux
  6. tig
  7. weechat
  8. Ricty
@hfm
hfm / hiera.md
Last active August 29, 2015 14:03
puppet hieraとは何か

Hiera

http://docs.puppetlabs.com/hiera/1/index.html

外観

Hieraはkey/value型(yaml, json)の設定データ検索ツール。 ノードごとの設定値をHieraに記述することで、マニフェストからノード固有設定を分離する。

例:

grep: /lib/modules/3.10.0-123.el7.x86_64/build/include/linux/version.h: No such file or directory
make KBUILD_VERBOSE=1 CONFIG_MODULE_SIG= -C /lib/modules/3.10.0-123.el7.x86_64/build SUBDIRS=/tmp/vbox.0 SRCROOT=/tmp/vbox.0 modules
test -e include/generated/autoconf.h -a -e include/config/auto.conf || ( \
echo >&2; \
echo >&2 " ERROR: Kernel configuration is invalid."; \
echo >&2 " include/generated/autoconf.h or include/config/auto.conf are missing.";\
echo >&2 " Run 'make oldconfig && make prepare' on kernel src to fix it."; \
echo >&2 ; \
/bin/false)
mkdir -p /tmp/vbox.0/.tmp_versions ; rm -f /tmp/vbox.0/.tmp_versions/*
grep: /lib/modules/3.10.0-123.4.2.el7.x86_64/build/include/linux/version.h: No such file or directory
make KBUILD_VERBOSE=1 CONFIG_MODULE_SIG= -C /lib/modules/3.10.0-123.4.2.el7.x86_64/build SUBDIRS=/tmp/vbox.0 SRCROOT=/tmp/vbox.0 modules
test -e include/generated/autoconf.h -a -e include/config/auto.conf || ( \
echo >&2; \
echo >&2 " ERROR: Kernel configuration is invalid."; \
echo >&2 " include/generated/autoconf.h or include/config/auto.conf are missing.";\
echo >&2 " Run 'make oldconfig && make prepare' on kernel src to fix it."; \
echo >&2 ; \
/bin/false)
mkdir -p /tmp/vbox.0/.tmp_versions ; rm -f /tmp/vbox.0/.tmp_versions/*
@hfm
hfm / gist:ad05b8053dfaed79de2a
Last active August 29, 2015 14:03
IRC上でペパボ新卒4期生エンジニアを呼び起こすコマンド
/prism  +--------------------------------------+
/prism  |   す か 進    進 か す   | 元気?
/prism  |  で     捗 捗      で  |
/prism  | う   ryoma  ど   kyokutyo  う | よさそう?
/prism  | ど       う        ど |  大丈夫?
/prism  |  捗     で で      捗  |
/prism  |   進 か す    す か 進   |
/prism  +--------------------------------------+  デプロイしてる?
@hfm
hfm / console.md
Last active August 29, 2015 14:04

2.1.2

$ ruby --version; gem list | egrep 'spec|net-ssh'
ruby 2.1.2p95 (2014-05-08 revision 45877) [x86_64-darwin13.0]
net-ssh (2.9.1)
rspec (3.0.0)
rspec-core (3.0.3)
rspec-expectations (3.0.3)
rspec-its (1.0.1)
NeoBundle 'Shougo/vimproc', {
\ 'build' : {
\ 'mac' : 'make -f make_mac.mak',
\ 'unix' : 'make -f make_unix.mak',
\ }}
NeoBundleLazy 'Shougo/neocomplete.vim', {
\ "autoload": {'insert': 1}}
NeoBundleLazy 'Shougo/neosnippet', {
\ 'autoload': {'insert': 1}}
NeoBundleLazy 'Shouge/neosnippet-snippets', {
hfm@giant [~/program/test-serf] [perl v5.21.2] [ruby 2.2.0preview1] [python 2.7.8]
$ puppet --version
/Users/hfm/.rbenv/versions/2.2.0-preview1/lib/ruby/gems/2.2.0/gems/puppet-3.7.1/lib/puppet/vendor/safe_yaml/lib/safe_yaml/syck_node_monkeypatch.rb:42:in `<top (required)>': uninitialized constant Syck (NameError)
from /Users/hfm/.rbenv/versions/2.2.0-preview1/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
from /Users/hfm/.rbenv/versions/2.2.0-preview1/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
from /Users/hfm/.rbenv/versions/2.2.0-preview1/lib/ruby/gems/2.2.0/gems/puppet-3.7.1/lib/puppet/vendor/safe_yaml/lib/safe_yaml.rb:197:in `<module:YAML>'
from /Users/hfm/.rbenv/versions/2.2.0-preview1/lib/ruby/gems/2.2.0/gems/puppet-3.7.1/lib/puppet/vendor/safe_yaml/lib/safe_yaml.rb:132:in `<top (required)>'
from /Users/hfm/.rbenv/versions/2.2.0-preview1/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
from /Users/hfm/.rbenv/versions/2.2.0-preview1/lib/r
@hfm
hfm / how-to-librarian-puppet.md
Last active March 22, 2018 13:19
librarian-puppetの使い方

Puppet ForgeにあるPuppet modulesを管理するためのツール.

クイックスタート

準備(librarian-puppetのインストール,ひな形の生成)

gemからインストールし,initでPuppetfileのひな形を生成する

@hfm
hfm / deprecated-import.md
Last active August 29, 2015 14:07
Puppet 3.xでimportがdeprecatedになり,main manifestと呼ばれる方式が新たに提唱されている