Skip to content

Instantly share code, notes, and snippets.

@gnue
gnue / Dockerfile
Last active August 29, 2015 13:56
goreman を使って docker で複数プロセスを起動する
# sshd+nginx
#
# VERSION 0.0.1
FROM ubuntu
RUN apt-get update
# sshd
RUN apt-get install -y openssh-server
@hayajo
hayajo / Vagrantfile
Created March 13, 2014 04:15
VagrantShareでカレントディレクトリのファイルを公開する
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Usage:
# $ vagrant up
# $ vagrant login
# $ vagrant share
#
# access to http://<shared_name>.vagrantshare.com
@Jxck
Jxck / README.md
Last active August 29, 2015 13:57
Go Kyoto(Go勉強会 そうだ京都、行こう) のハンズオン資料 (http://www.zusaar.com/event/4367004)
@hayajo
hayajo / INSTALL.md
Last active August 29, 2015 14:00
VMWare PlayerにXubuntuで開発環境構築

VMWare PlayerにXubuntuで開発環境構築

VirtualBoxだとグラフィック周りが不安定なの。

  1. VMにXubuntuインストール

    • メモリ 4GB
    • HDD てきとうに
    • CPU てきとうに
@hayajo
hayajo / gist:07cbf3ce45be34634a9a
Last active August 29, 2015 14:12
MojoliciousでエラーをJSONで返す
#!/usr/bin/env perl
use Mojolicious::Lite;
hook before_render => sub {
my ($c, $args) = @_;
my $template = $args->{template};
return unless $template;
my $status = $args->{status};
@hayajo
hayajo / gist:2848763
Created June 1, 2012 04:27
fluentd qmail-send log format
format /^(?<tai64>[^ ]+) (?<message>(((?:new|end) msg (?<key>[0-9]+)|info msg (?<key>[0-9]+): bytes (?:\d+) from <(?<address>[^>]*)> |starting delivery (?<delivery_id>[0-9]+): msg (?<key>[0-9]+) to (?:local|remote) (?<address>.+)|delivery (?<delivery_id>[0-9]+))?.*))$/
@hayajo
hayajo / 001.md
Created October 26, 2012 07:58
チラ裏だくそにっき【終】

チラ裏だくそにっき

サヨナラ偽ッパイ

11月27日 火 最終回

最初の火の炉で薪の王グウィンを灰に還す。 そして闇の王へ...

@hayajo
hayajo / begincheck.pl
Created December 2, 2012 23:42
BEGIN, UNITCHECK, CHECK, INIT and END
#!/usr/bin/env perl
# begincheck
print "10. Ordinary code runs at runtime.\n";
END { print "16. So this is the end of the tale.\n" }
INIT { print " 7. INIT blocks run FIFO just before runtime.\n" }
UNITCHECK {
print " 4. And therefore before any CHECK blocks.\n"
}
CHECK { print " 6. So this is the sixth line.\n" }
print "11. It runs in order, of course.\n";
@hayajo
hayajo / 001_noto.md
Last active December 10, 2015 23:19
能登との疑似夫婦生活日記

能登との擬似夫婦生活日記

能登かわいいよ能登

パンドラの塔のプレイ日記ですよ。

@hayajo
hayajo / MyValidator.pm
Last active December 20, 2015 12:09
FV::Liteのラッパー
package MyValidator;
use strict;
use warnings;
use parent 'Exporter';
use FormValidator::Lite;
use Clone qw/clone/;