$ git clone git://github.com/redmine/redmine.git
$ cd redmine
$ git co -t origin/2.2-stable
$ rbenv local 1.9.3-p374
$ bundle install --path vendor/bundle --without test postgresql mysql rmagick
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
BASE_URI=http://example.com | |
USERNAME=username | |
PASSWORD=password |
そこのプログラミングが堪能な人たち、おめでとう。あなたは、死ぬほど努力してプログラミングを覚えたか、プログラミングの天才か、はたまたぼくみたいにラッキーな人だろう。プログラマーの戯れ言でしかないが、そんなあなたには、他の人のプログラミングを公の場所でバカにするのではなく(ぼく自身これを何度もやってきており、相当後悔している)、個人的にそっと間違いを指摘してあげたり、どうやったら正しいプログラミングができるようになるのか啓蒙する人であってほしい。そっちの方がはるかに生産的だし、プログラミング初学者の総体的な技術力の向上にもつながるだろう。
テンプレ: 猪瀬さんの英語を恥ずかしがる人が恥ずかしい件 - http://j.ktamura.com/archives/15209
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 :rubygems | |
gem 'kris', :git => 'git://github.com/Tomohiro/kris.git' | |
gem 'mechanize' |
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 | |
# encoding: utf-8 | |
require 'rubygems' | |
require 'open-uri' | |
require 'nokogiri' | |
class Fortune | |
def self.choice | |
sex = [ |
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 | |
# encoding: utf-8 | |
require 'kconv' | |
require 'rubygems' | |
require 'open-uri' | |
require 'nokogiri' | |
class SunSignAstrology |
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
asimov: ssh asimov.local tail -F /path/to/httpd/access_log | |
clarke: ssh clarke.local tail -F /path/to/httpd/access_log | |
heinlein: ssh heinlein.local tail -F /path/to/httpd/access_log |
- 平良知広
- 所属: 株式会社オーシーシー
- https://github.com/Tomohiro
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
#!/bin/sh | |
DATASTORE="/vmfs/volumes/$(ls /vmfs/volumes | grep Storage)" | |
cd "$DATASTORE" | |
for d in $(ls); do | |
[ -f $d ] && continue | |
snapshot=$(ls $d | grep Snapshot) | |
[ ! $snapshot ] || { | |
echo $d |
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
<?php | |
namespace RubyLike { | |
class Enumerator extends \ArrayObject | |
{ | |
public static function build() | |
{ | |
return (new \ReflectionClass(get_called_class()))->newInstanceArgs(func_get_args()); | |
} | |
public function all() |