$ cf install-plugin
$ cf login
// | |
// Log::Minimal風ログクラス | |
// | |
import Foundation | |
// ログレベル | |
enum LogLevel { | |
// http://qiita.com/suesan/items/485a5078c64c0bc67432 より引用 | |
// 対象者 : 開発者 | |
// 開発中のデバッグ用出力。商用環境では出力しない。 |
import Foundation | |
protocol Iterator { | |
func hasNext() -> Bool | |
func next() -> AnyObject | |
} | |
protocol Aggregate { | |
func iterator() -> Iterator | |
} |
use strict; | |
use warnings; | |
use utf8; | |
use Plack::Builder; | |
use Plack::App::WrapCGI; | |
my $script_path = "/path/to/script.cgi"; | |
my $app = Plack::App::WrapCGI->new( | |
script => 'gitweb.cgi', | |
)->to_app; |
sudo yum -y install mysql-devel | |
cpanm DBD::mysql |
# daemon tools | |
https://github.com/kteru/daemontools-rpm | |
cpanm Carton PSGI Plack Task::Plack Task::Amon2 Amon2 DBI DBD::SQLite DBD::mysql Teng FormValidator::Lite |
#!/bin/sh | |
TROKKO_ENV=$HOME/Projects/trokko | |
mkdir -p $TROKKO_ENV/tools | |
mkdir -p $TROKKO_ENV/build | |
echo "setup binutils ..." | |
cd $TROKKO_ENV/build | |
curl -O http://ftp.gnu.org/gnu/binutils/binutils-2.19.1.tar.bz2 | |
tar jxvf binutils-2.19.1.tar.bz2 |
https://atlas.hashicorp.com/boxes/search
type "bento" in the search box.
$ vagrant box add bento/centos-7.1
$ vagrant init bento/centos-7.1
$ vagrant up --provider virtualbox