Skip to content

Instantly share code, notes, and snippets.

View hansode's full-sized avatar

Masahito Yoshida hansode

View GitHub Profile
@hansode
hansode / Makefile
Created February 18, 2012 08:04
wakame-vdc dialog
OBJS = blockdiag nwdiag seqdiag
all: generate
clean:
rm -f *.png
generate:
for obj in $(OBJS); do \
echo "> $$obj <"; \
@hansode
hansode / gen-selfsigned-cert.sh
Created August 2, 2011 20:00
Generate Self-Signed Certificate
#!/bin/sh
#
# based on http://sourcery.blogspot.com/2007/09/script-for-openssl-certificate-signing.html
#
set -e
C=
ST=
L=
@hansode
hansode / qemu-kvm.spec
Last active December 31, 2015 05:09
qemu-kvm-1.5.3-19.el7.src.rpm
$ rpm2cpio qemu-kvm-1.5.3-19.el7.src.rpm | cpio --list 2>/dev/null | egrep '\.spec$'
qemu-kvm.spec
$ rpm2cpio qemu-kvm-1.5.3-19.el7.src.rpm | cpio -id qemu-kvm.spec
28804 blocks
@hansode
hansode / gist:7933031
Created December 12, 2013 18:34
upgraded from centos-6.5(minimal) to rhel7-beta1
Transaction Check Error:
file /etc/my.cnf from install of mariadb-libs-1:5.5.33a-3.el7.x86_64 conflicts with file from package mysql-libs-5.1.71-1.el6.x86_64
file /usr/share/mysql/charsets/Index.xml from install of mariadb-libs-1:5.5.33a-3.el7.x86_64 conflicts with file from package mysql-libs-5.1.71-1.el6.x86_64
file /usr/share/mysql/charsets/armscii8.xml from install of mariadb-libs-1:5.5.33a-3.el7.x86_64 conflicts with file from package mysql-libs-5.1.71-1.el6.x86_64
file /usr/share/mysql/charsets/ascii.xml from install of mariadb-libs-1:5.5.33a-3.el7.x86_64 conflicts with file from package mysql-libs-5.1.71-1.el6.x86_64
file /usr/share/mysql/charsets/cp1250.xml from install of mariadb-libs-1:5.5.33a-3.el7.x86_64 conflicts with file from package mysql-libs-5.1.71-1.el6.x86_64
file /usr/share/mysql/charsets/cp852.xml from install of mariadb-libs-1:5.5.33a-3.el7.x86_64 conflicts with file from package mysql-libs-5.1.71-1.el6.x86_64
file /usr/share/mysql/charsets/hebrew.xml from install of maria
@hansode
hansode / result.md
Last active December 25, 2015 22:38
size description
833140 setup
4121560 100% used
1587032 tar->untar
@hansode
hansode / MUSSEL_RC
Last active December 25, 2015 01:59
### mussel hack!!!
#
# top-level:
#
# + stdout
# + stderr
# + history
# + statistics/:namespace/:cmd/:today/:txid/
# + test/:category/:api_version/:script/:step/:today/:txid/
#!/bin/bash
#
# requires:
# bash
#
set -e
while read line; do
set ${line}
pid=$(echo ${line} | sed "s, ,\n,g" | head -1)
#!/bin/bash
#
# requires:
# bash
# cat, pidstat
#
set -e
LANG=C
LC_ALL=C
@hansode
hansode / README.md
Last active December 21, 2015 13:49

Sample Output

$ ./ls_pr_branch_map.sh https://github.com/axsh/wakame-vdc.git
0e111a6bca3f74c00a70a365a1bf9e6676c2bbf5 pull/208   release-v13.06.0
1536ba97914356c9bf41beec0fcd1f96a8f2d63b pull/85    feature-demodata-extra-nodes
325d523c315a5d4cc0cb3e23ffd1218fcf5aed2a pull/191   feature-lb-enhancements
3a5005c07a9e6227e275f2b7273f51901867c76e pull/210   bug-issue-209
5e99e1b5d84d4cde2cf22e19866d1458310c75cd pull/149   feature-ip-lease-retention
85916e5ca8481a000db92facd23aad3549b32145 pull/115   bug-ng-scheduler
@hansode
hansode / httpd.conf
Created August 10, 2013 12:14
centos6 httpd conf
#
# This is the main Apache server configuration file. It contains the
# configuration directives that give the server its instructions.
# See <URL:http://httpd.apache.org/docs/2.2/> for detailed information.
# In particular, see
# <URL:http://httpd.apache.org/docs/2.2/mod/directives.html>
# for a discussion of each configuration directive.
#
#
# Do NOT simply read the instructions in here without understanding