Skip to content

Instantly share code, notes, and snippets.

View tatsuya6502's full-sized avatar

Tatsuya Kawano tatsuya6502

  • Shanghai, China
  • 03:49 (UTC +08:00)
View GitHub Profile
@tatsuya6502
tatsuya6502 / plot-inode-counts.r
Created July 6, 2011 00:51
R scripts to plot inode counts from HibariFS
#!/usr/bin/Rscript --vanilla
require(ggplot2)
inodeCount1 <- read.csv(sprintf("%s/%s", ".", "stats_3.csv"))
inodeCount2 <- read.csv(sprintf("%s/%s", ".", "stats_2.csv"))
summary1 <- read.csv(sprintf("%s/%s", ".", "summary_3.csv"))
summary2 <- read.csv(sprintf("%s/%s", ".", "summary_2.csv"))
@tatsuya6502
tatsuya6502 / repo
Created September 18, 2011 07:13
repo
#!/bin/sh
## repo default configuration
##
REPO_URL='git://android.git.kernel.org/tools/repo.git'
REPO_REV='stable'
# Copyright (C) 2008 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
@tatsuya6502
tatsuya6502 / README.txt
Created September 26, 2011 16:15
Hibari DB - Python UBF Client
$ cd working-directory
$ cd hibari
$ repo forall -c "git branch norton-server-timestamp origin/norton-server-timestamp"
→ 一部エラー(Not a valid object name)になるが、それでOK。
$ repo forall -c "git checkout norton-server-timestamp"
→ 一部エラーになるが、それでOK。
@tatsuya6502
tatsuya6502 / bench_hibari_native.es
Created October 15, 2011 05:35
Hibari 1 key 100 puts benchmark
#!/home/hibari/hibari/erts-5.8.5/bin/escript
%% -*- erlang -*-
%%! -name [email protected]
-define(RPC_TIMEOUT, 15000).
-define(FAIL_MSG(Format, Args), io:format(Format, Args), timer:sleep(1000), halt(1)).
main([]) ->
HibariHome = "/home/hibari/hibari/",
brick_simple_stub.erl:186: Function start/0 has no local return
brick_simple_stub.erl:223: Function start_main/0 has no local return
brick_simple_stub.erl:234: Function install_module/0 has no local return
brick_simple_stub.erl:237: The pattern 'ok' can never match the type binary()
@tatsuya6502
tatsuya6502 / bootstrap-chef-smartos.sh
Last active December 16, 2015 11:09
Bootstrapping OpsCode Chef on Joyent SmartOS
#!/bin/sh
#
# Bootstrapping OpsCode Chef on Joyent SmartOS
#
# Run the following commands from a terminal:
# zlogin UUID
# curl https://gist.github.com/tatsuya6502/5425523/raw/bootstrap-chef-smartos.sh | sh
#
if [ ! -f /opt/local/bin/chef-client ]; then
@tatsuya6502
tatsuya6502 / Vagrantfile
Last active August 29, 2015 13:59
vagrant-kvm Vagrantfile just to run vagrant-mutate with Vagrant 1.4.3
Vagrant.configure('2') do |config|
config.vm.box = 'fedora20'
config.vm.box_url = 'https://vagrant-kvm-boxes-si.s3.amazonaws.com/fedora20-amd64-kvm-20140413.box'
config.vm.provider :kvm do |kvm, override|
kvm.memory_size = '1GB'
kvm.image_mode = 'clone'
end
# You can mount your box files folder on the guest.
# config.vm.synced_folder '/path/to/box-files', # '/home/vagrant/boxes', type: 'nfs'
@tatsuya6502
tatsuya6502 / Vagrantfile
Created April 14, 2014 04:39
vagrant-kvm CentOS 6 Vagrantflile
Vagrant.configure('2') do |config|
config.vm.hostname = 'centos6'
config.vm.box = 'centos-6.5'
config.vm.box_url = 'https://vagrant-kvm-boxes-si.s3.amazonaws.com/centos-6-amd64-kvm-20140413.box'
# config.vm.synced_folder ".", "/vagrant", type: "nfs"
# config.vm.network :private_network, ip: "192.168.80.50"
config.vm.provider :kvm do |kvm, override|
# kvm.gui = true
@tatsuya6502
tatsuya6502 / Vagrantfile
Created April 15, 2014 07:21
vagrant-kvm CentOS 6 + chef-solo provisioner
Vagrant.configure('2') do |config|
config.vm.hostname = 'centos6'
config.vm.box = 'centos-6.5'
config.vm.box_url = 'https://vagrant-kvm-boxes-si.s3.amazonaws.com/centos-6-amd64-kvm-20140413.box'
config.vm.provider :kvm do |kvm, override|
kvm.memory_size = '512MB'
end
if Vagrant.has_plugin?("vagrant-cachier")
@tatsuya6502
tatsuya6502 / vagrant-kvm-task-list.md
Last active August 29, 2015 13:59
vagrant-kvm task list

Task List for Vagrant KVM Project

Next Items to Work on

  • CoreOS + nfs synced folder (#217)
  • 9p Cent OS how-to guide (#218)
  • Build box for Ubuntu 14.04 LTS Trusty Final (April 17th)

Arch Linux Host Support