Skip to content

Instantly share code, notes, and snippets.

View hansode's full-sized avatar

Masahito Yoshida hansode

View GitHub Profile
@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
@hansode
hansode / gist-https2git.sh
Created January 18, 2013 04:46
generate 'git clone' command using git protocol.
#!/bin/bash
#
# requires:
# bash
#
# description:
#
# https://gist.github.com/012345678abcdefgh.git
# git@gist.github.com:012345678.git
#
@hansode
hansode / README.md
Last active December 10, 2015 11:08
Wakame-VDC install CD

Wakame-VDC install CD

x86_64

$ sudo distro_arch=x86_64 ./build-cdimage.sh

i386

@hansode
hansode / ievm.md
Last active December 10, 2015 08:58
Automate web application UI testing with Selenium

pre-setup

$ sudo yum install http://pkgs.repoforge.org/unrar/unrar-4.2.3-1.el6.rf.x86_64.rpm
$ sudo yum install cabextract
$ sudo yum install cdw

building ievm

@hansode
hansode / snzip.spec
Created August 17, 2012 10:00
snzip.spec
%define oname snzip
Name: %{oname}
Version: 0.9.0
Release: 0%{?dist}
Summary: a compression/decompression tool based on snappy.
Group: Applications/File
URL: https://github.com/kubo/snzip
Source: %{name}-%{version}.tar.gz
License: 2-clause BSD-style license.
@hansode
hansode / Sphinx-1.1.2-py2.6.patch
Created February 20, 2012 05:58
Sphinx-1.1.2 Python-2.6 patch
diff -ur Sphinx-1.1.2-py2.6.egg-orig//sphinx/cmdline.py Sphinx-1.1.2-py2.6.egg//sphinx/cmdline.py
--- Sphinx-1.1.2-py2.6.egg-orig//sphinx/cmdline.py 2012-02-20 14:26:49.875362700 +0900
+++ Sphinx-1.1.2-py2.6.egg//sphinx/cmdline.py 2012-02-20 14:35:30.986942800 +0900
@@ -65,7 +65,7 @@
try:
opts, args = getopt.getopt(argv[1:], 'ab:t:d:c:CD:A:ng:NEqQWw:P')
allopts = set(opt[0] for opt in opts)
- srcdir = confdir = path.abspath(args[0])
+ srcdir = confdir = unicode(path.abspath(args[0]), sys.getfilesystemencoding())
if not path.isdir(srcdir):
@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 / Makefile
Created February 14, 2012 09:54
MapReduce.sh
all: prepare
prepare: RFC-all.tar.gz rfc/rfc1.txt
rfc/rfc1.txt:
[ -d rfc ] || mkdir rfc
cd rfc && tar zxvf ../RFC-all.tar.gz
RFC-all.tar.gz:
curl --ftp-pasv ftp://ftp.rfc-editor.org/in-notes/tar/RFC-all.tar.gz -o $@
@hansode
hansode / dump-metadata.sh
Created December 19, 2011 03:11
Dump Amazon EC2 metadata server's params.
#!/bin/bash
#
# $ ./dump-metadata.sh [ PARAM ]...
#
# $ ./dump-metadata.sh
# $ ./dump-metadata.sh /
# $ ./dump-metadata.sh /ami-id
# $ ./dump-metadata.sh /public-ipv4
# $ ./dump-metadata.sh /ami-id /public-ipv4
#