This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
#-*- coding: utf-8 -*- | |
# | |
# This work is in the public domain. | |
# | |
class FizzBuzz | |
def initialize(argument) | |
if argument < 1 | |
throw InvalidArgumentError |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mv /usr/share/man/man1/opendiff.1 /usr/share/man/man1/opendiff.1.clibackup | |
mv /usr/share/man/man1/ibtool.1 /usr/share/man/man1/ibtool.1.clibackup | |
mv /usr/bin/what /usr/bin/what.clibackup | |
mv /usr/share/man/man1/what.1 /usr/share/man/man1/what.1.clibackup | |
mv /usr/share/man/man1/opendiff.1 /usr/share/man/man1/opendiff.1.clibackup | |
mv /usr/share/man/man1/ibtool.1 /usr/share/man/man1/ibtool.1.clibackup | |
mv /usr/bin/what /usr/bin/what.clibackup | |
mv /usr/share/man/man1/what.1 /usr/share/man/man1/what.1.clibackup |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 仮想マシン1-3はそれぞれ192.168.56.10,192.168.56.11,192.168.56.12にした | |
# (ホストマシンは 192.168.56.1) | |
Vagrant::Config.run do |config| | |
config.vm.define :host1 do |host1| | |
host1.vm.box = "CentOS-6.2-x86_64-minimal" | |
host1.vm.network :hostonly, "192.168.56.10" | |
end | |
config.vm.define :host2 do |host2| | |
host2.vm.box = "CentOS-6.2-x86_64-minimal" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source 'https://rubygems.org' | |
gem 'guard-livereload' | |
gem 'guard-shell' | |
gem 'foreman' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" | |
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> | |
<!-- | |
by: | |
____ ____ ____ ____ ____ ____ ____ ____ | |
||D |||O |||I |||N |||W |||O |||R |||K || |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[lxc-rpm-f440] | |
# for centos 6 only | |
name=lxc-CentOS-$releasever | |
baseurl=https://raw.github.com/f440/lxc-rpm/master/centos/$releasever/os/x86_64/ | |
enabled=1 | |
gpgcheck=0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ref: https://raw.github.com/gist/1849889/zaw-git-branch.zsh | |
function zaw-src-hg-branch() { | |
hg stat >/dev/null 2>&1 | |
if [[ $? == 0 ]]; then | |
candidates=(`hg branches | cut -d ' ' -f 1`) | |
fi | |
actions=("zaw-src-hg-checkout" "zaw-callback-append-to-buffer") | |
act_descriptions=("hg update" "append to edit buffer") | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ref: https://raw.github.com/gist/1849889/zaw-git-branch.zsh | |
function zaw-src-hg-bookmark() { | |
hg stat >/dev/null 2>&1 | |
if [[ $? == 0 ]]; then | |
candidates=(`hg bookmarks | sed -e 's/\*//' | awk '{print $1}'`) | |
fi | |
actions=("zaw-src-hg-checkout" "zaw-callback-append-to-buffer") | |
act_descriptions=("hg update" "append to edit buffer") | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'formula' | |
class Automake < Formula | |
url 'http://ftp.gnu.org/gnu/automake/automake-1.11.tar.gz' | |
homepage 'http://www.gnu.org/software/automake' | |
md5 'fab0bd2c3990a6679adaf9eeac0c6d2a' | |
version "1.11" | |
def install |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Patch: expand-input-maxlen.patch | |
Probrem: More than 100 characters cannot be set to the caption | |
Solution: expands the text buffer size to 255. | |
Author: Kazuhiro Yoshikawa <[email protected]> | |
Files: src/input.c | |
src/process.c | |
--- a/src/input.c 2010-02-27 02:30:55.000000000 +0900 | |
+++ b/src/input.c 2010-06-21 00:19:43.000000000 +0900 | |
@@ -43,7 +43,7 @@ |