Skip to content

Instantly share code, notes, and snippets.

Where's my Boy Bawang?

Toshiki Inami peco8

Where's my Boy Bawang?
  • Rakuten, Inc
  • Tokyo
View GitHub Profile
View knife cheat
# knife cheat
## Search Examples
knife search "name:ip*"
knife search "platform:ubuntu*"
knife search "platform:*" -a macaddress
knife search "platform:ubuntu*" -a uptime
knife search "platform:ubuntu*" -a virtualization.system
knife search "platform:ubuntu*" -a network.default_gateway
peco8 / Gemfile
Created Nov 13, 2015 — forked from kazu69/Gemfile
Vagrantで作った環境にChef12 でChef Serverをためしてみた
View Gemfile
source ''
gem 'chef'
gem 'knife-solo'
peco8 /
Created Nov 19, 2015 — forked from kenjiskywalker/

nginx config


server {
    listen 80;
    root /var/www/html/;
    index index.html;
    access_log /var/log/nginx/access_log hogehoge;
peco8 /
Created Dec 12, 2015 — forked from JoshuaEstes/
Developer Cheat Sheets for bash, git, gpg, irssi, mutt, tmux, and vim. See my dotfiles repository for extra info.
peco8 /
Created Dec 13, 2015
This is tree-ish contents listing script, which outputs the contents recursively.

What is this?

This is tree-ish contents listing script, which outputs the contents recursively.

How to use it? $path

peco8 /
Created Dec 13, 2015
Find file in current directory recursively, and print lines which match PATTERN.
# Fetch the shell script name
local script_name=$(basename "$0")
# Show help
cat << END
peco8 / .emacs
Created Feb 1, 2016 — forked from ftrain/.emacs
a nice .emacs for when you are on a terminal. Respects scroll wheel events. Very useful when run inside of tmux and combined with this tmuxconf:
View .emacs
;; .emacs
;;; uncomment this line to disable loading of "default.el" at startup
;; (setq inhibit-default-init t)
;; enable visual feedback on selections
(setq transient-mark-mode t)
;; default to better frame titles
(setq frame-title-format
peco8 / Vagrantfile
Created Feb 9, 2016 — forked from leifg/Vagrantfile
Add a second disk to system using vagrant
View Vagrantfile
file_to_disk = './tmp/large_disk.vdi' do |config| = 'base'
config.vm.customize ['createhd', '--filename', file_to_disk, '--size', 500 * 1024]
config.vm.customize ['storageattach', :id, '--storagectl', 'SATA Controller', '--port', 1, '--device', 0, '--type', 'hdd', '--medium', file_to_disk]
peco8 /
Created Apr 2, 2016 — forked from shelling/
The Social Network subtitle
00:00:04,829 --> 00:00:09,829
Credit to: Sakti Tandi [1st Indonesian-Script]
English. Subs. and. Re-Sync. by npdv-iD
00:00:19,043 --> 00:00:21,168
You know there are more people
with genius IQ living in China
View aasm-1.rb
class Plan < ActiveRecord::Base
include AASM
aasm column: 'state' do
state :pending, initial: true
state :processing
state :finished
state :errored
event :process, after: { start } do