Skip to content

Instantly share code, notes, and snippets.

tap phinze/homebrew-cask || true
tap homebrew/versions|| true
update || true
install git || true
install hub || true
install perl-build || true
install plenv || true
install nvm || true

Untitled Slide

Welcome to Glide.

Glide is the easiest way to create useful slide for all of your Gists.

  • input key <- to go backward.
  • input key -> to go forward.

Publishing

@myfinder
myfinder / bench.pl
Created March 24, 2013 17:57
cmp Riak Perl Client
#!/usr/bin/env perl
use strict;
use warnings;
use utf8;
use Benchmark 'cmpthese';
use Data::Riak;
use Data::Riak::Fast;
use Net::Riak;
@myfinder
myfinder / Riak.pm
Created March 11, 2013 15:55
CloudForecast Data Object for Riak
package CloudForecast::Data::Riak;
use CloudForecast::Data -base;
use LWP::UserAgent;
use JSON;
=head1 NAME
CloudForecast::Data::Riak - riak resource monitor
"行番号を表示
set number
"括弧入力時に対応する括弧を表示
set showmatch
"コマンドをステータス行に表示
set showcmd
"タイトルを表示
set title
"常にステータス行を表示
set laststatus=2
@myfinder
myfinder / gist:2166469
Created March 23, 2012 03:27
.tmux.conf
$ cat .tmux.conf
## UTF-8を用いるかどうかはロケールから自動検出される(必要のある場合のみ指定)
#set-window-option -g utf8 on
#set-option -g status-utf8 on
## 既定のPrefixキー(Ctrl+b)の割り当てを解除
unbind-key C-b
## Ctrl+jをPrefixキーにする
set-option -g prefix C-j
bind-key C-j send-prefix
427c427,429
< for (civ = const_iv + sizeof (const_iv) / sizeof (const_iv [0]); civ-- > const_iv; )
---
> /* To work around MacOS llvm-gcc bug: http://llvm.org/bugs/show_bug.cgi?id=9891 */
> const void* civ_start = const_iv;
> for (civ = const_iv + sizeof (const_iv) / sizeof (const_iv [0]); civ-- > civ_start; )
@myfinder
myfinder / gist:1176590
Created August 28, 2011 12:04
OSXのApacheでmod_proxyしたいとき
$ cat /etc/apache2/other/proxy_isucon.conf
ProxyRequests Off
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
ProxyPass / http://127.0.0.1:5000/
ProxyPassReverse / http://127.0.0.1:5000/
sub bind_param {
my ($self, @args) = @_;
my $encoding = $self->{private_dbix_encoding}->{encoding};
$args[1] = Encode::encode($encoding, $args[1]);
return $self->SUPER::bind_param(@args);
}