Skip to content

Instantly share code, notes, and snippets.

View muratayusuke's full-sized avatar

Yusuke Murata muratayusuke

View GitHub Profile
@muratayusuke
muratayusuke / cucumber hello world
Created April 29, 2012 08:59
cucumber hello world in Japanese
$ rails new cuctest
$ cd cuctest
$ emacs Gemfile
#add following
group :development, :test do
gem 'rspec-rails', ">= 2.0.0.beta"
gem 'cucumber-rails'
gem 'database_cleaner'
end
# for ubuntu 12.10
#
##################################
# initial task
##################################
# 1. install ubuntu on your virtual box
# 2. install Guest Addition
# 3. shutdown ubuntu and open virtualbox settings.
# 4. 「一般」→「高度」→「クリップボードの共有」→「双方向」
##################################
@muratayusuke
muratayusuke / gist:3676297
Created September 8, 2012 15:51 — forked from byplayer/gist:3629153
Git hook to disallow non-fastforward updates (also disallows merges into feature branches in order to keep them cleanly rebaseable)
#!/usr/bin/env ruby
# This update hook enforces the following policies
# 1) release and master branches are fast-forward only
# 2) feature branches cannot contain merges
$refname = ARGV[0]
$oldrev = ARGV[1]
$newrev = ARGV[2]
@muratayusuke
muratayusuke / global.sh
Last active October 10, 2015 10:47
global
##################################
# usage
##################################
# 1. cd /usr/local/src
# 2. wget https://gist.github.com/raw/3677821/c20a62a45a0d92be6190a319d7b98bdbf8dbeadb/global.sh
# 3. sudo sh global.sh ${version}
##################################
cd /usr/local/src
@muratayusuke
muratayusuke / gist:3728115
Created September 15, 2012 14:07
NameVirtualHost *:80 has no VirtualHosts
ubuntuのapache2で
NameVirtualHost *:80 has no VirtualHosts
のエラーが出たら、ports.confのNameVirtualHostを#でコメントアウトする
@muratayusuke
muratayusuke / gist:3916196
Created October 19, 2012 04:16 — forked from byplayer/gist:3915865
VirtualBpx
# change IP range for NAT
VBoxManage modifyvm "YOUR_VM_NAME" --natnet1 "192.168.0/24"
@muratayusuke
muratayusuke / gist:3956881
Created October 26, 2012 04:59 — forked from byplayer/gist:3915865
VirtualBpx
# change IP range for NAT
VBoxManage modifyvm "YOUR_VM_NAME" --natnet1 "192.168.0/24"
@muratayusuke
muratayusuke / skipfish.sh
Created November 11, 2012 02:48
skipfish - security scan tool
#!/bin/bash
#
# This script run as root
#
# Detail: http://code.google.com/p/skipfish/wiki/SkipfishDoc
#
##################################
# usage
##################################
# 1. wget https://raw.github.com/gist/4053495/skipfish.sh
@muratayusuke
muratayusuke / sublimetext_32.sh
Last active December 10, 2015 21:59
sublinme text 2 install for Ubuntu 32
#!/bin/bash
#
# This script run as root
#
# Detail: http://www.sublimetext.com/
#
##################################
# usage
##################################
# $ wget https://gist.github.com/raw/4499194/sublimetext_32.sh
#!/bin/bash
#
# This script run as root
cd /usr/local/src
git clone https://github.com/muratayusuke/tig.git
cd tig
make
make install install-doc
cp tig /usr/local/bin