Skip to content

Instantly share code, notes, and snippets.

View ksauzz's full-sized avatar

Kazuhiro Suzuki ksauzz

  • Tokyo Japan
  • 17:51 (UTC +09:00)
View GitHub Profile
@ksauzz
ksauzz / tshark-usage.md
Last active December 14, 2015 23:39
tshark usage
tshark -i lo0 -f "port 8080" -w local.pcap
tshark -i en0 -f "host bucket-name.s3.amazonaws.com"  -w aws.pcap
tshark -i eth0 -f "port 8080" -O http -V
@ksauzz
ksauzz / formatting_file_system.md
Last active December 14, 2015 15:09
disk format memo. (linux)

ext4

fdisk /dev/sdb
mkfs.ext4 /dev/sdb1

log

root@cs-test01:~# fdisk /dev/sdb
@ksauzz
ksauzz / chef-note.md
Last active December 13, 2015 23:39
chef notes....

Chef note

using local chef-repo.

setup

git clone git://github.com/opscode/chef-repo.git

Changing url prefix.

webapp/graphite/app_settings.py

MEDIA_ROOT='graphite'
@ksauzz
ksauzz / chef-notes.md
Created February 13, 2013 02:58
Chef notes

configuration files

  • ~/.chef/knife.rb
  • /etc/chef/client.rb
@ksauzz
ksauzz / haproxy.md
Last active December 12, 2015 10:39
Building haproxy.

How to build haproxy on OSX

tar zsfv haproxy-1.5-dev17.tar.gz
make TARGET=generic
make install PREFIX=/usr/local/haproxy-1.5-dev17

configuration

@ksauzz
ksauzz / note.md
Last active December 12, 2015 01:18
chef-server installation issue.

instruction

事象

# chef-server
Loading init file from /usr/share/chef-server-api/config/init.rb
[Fri, 01 Feb 2013 14:46:10 +0900] INFO: Creating validation key...
[Fri, 01 Feb 2013 14:46:10 +0900] INFO: Creating new key pair for chef-validator
[Fri, 01 Feb 2013 14:46:10 +0900] INFO: Sending client(xxxxxxxxxxxxxxxxxxxx) to the index queue for addition.
@ksauzz
ksauzz / clojure.md
Last active December 10, 2015 05:29
clojure note

vim plugin

install VimClojure nailgun

REPL

lein repl

new project

lein new new-project
@ksauzz
ksauzz / gist:4325561
Created December 18, 2012 06:25
build.gradle sample.
apply plugin: 'java'
apply plugin: 'eclipse'
group = 'com.ksauzz'
archivesBaseName = 'xxxxx-xxxxxx'
version = '0.0.1'
sourceCompatibility = 1.6
targetCompatibility = 1.6
@ksauzz
ksauzz / call-flow-gem_fsm.md
Created December 12, 2012 07:02
a call flow of gen_fsm:start_link/x
gen_fsm:start_link/x

->

gen:start/x

->