Skip to content

Instantly share code, notes, and snippets.

View gist:3917
From 90869fbc8128f41a56d2dd1aa7526e5b36179e43 Mon Sep 17 00:00:00 2001
From: HIROSE Masaaki <hirose31@gmail.com>
Date: Tue, 5 Aug 2008 00:52:36 +0900
Subject: [PATCH] recent page show some channels recent log in mobile mode.
---
lib/App/Mobirc/ConfigLoader.pm | 5 +++--
lib/App/Mobirc/Web/C/Mobile.pm | 19 ++++++++++++++++---
lib/App/Mobirc/Web/Template/Mobile.pm | 32 +++++++++++++++++---------------
3 files changed, 36 insertions(+), 20 deletions(-)
View gist:5022
$ cowsay -f milk いぼんぬ
__________
< いぼんぬ >
----------
\ ____________
\ |__________|
/ /\
/ / \
/___________/___/|
| | |
View gist:5023
$ cowsay -f telebears ひーひー
__________
< ひーひー >
----------
\ _
\ (_) <-- TeleBEARS
\ ^__^ / \
\ (oo)\_____/_\ \
(__)\ you ) /
||----w ((
View gist:11387
memslap --concurrency=20 --execute-number=100000 --initial-load=100000 --servers=mcd1 --test get
set/s get/s
=============================
1.2.6 14457 59459
binprot ASCII 13923 92950
binprot BINARY 13985 102328
View gist:11393
#!/usr/bin/env perl
use strict;
use warnings;
use utf8;
use Carp;
use YAML;
use IO::File;
STDOUT->autoflush(1); STDERR->autoflush(1);
use Getopt::Long;
View gist:11394
#!/usr/bin/env perl
use strict;
use warnings;
use utf8;
use Carp;
use YAML;
use IO::File;
STDOUT->autoflush(1); STDERR->autoflush(1);
use Getopt::Long;
View gist:11395
commit 108d2ecb404e07e24f889cbc65ccb7c1a2b54a3a
Author: HIROSE Masaaki <hirose@sag14.klab.org>
Date: Thu Sep 18 16:15:28 2008 +0900
to count get_cmds
diff --git a/memcached.c b/memcached.c
index 6f81210..b1f858f 100644
--- a/memcached.c
+++ b/memcached.c
View gist:15752
#!/usr/bin/env perl
use strict;
use warnings;
use Net::SSL::ExpireDate;
use Crypt::OpenSSL::X509;
my @cert_files = @ARGV;
for my $cert_file (@cert_files) {
my $x509 = Crypt::OpenSSL::X509->new_from_file($cert_file);
View gist:16278
冷凍刺身用スルメイカ
・外套とゲソを分離
・ワタを分離して、塩をまぶしてキッチンペーパにくるんで水を出す
外套の処理
・適当に皮を剥く。キッチンペーパを使ってエンペラつかんでムキっとする
・身の内側の薄皮も取る
・水洗いして、アニキサスがいないかよっく見る
・干す。菜箸ぶっさしてぶらーんと
ゲソの処理
・足の吸盤をしごき落として、適当に切る
View gist:30019
chtitle ()
{
echo -ne "¥033]0;${1-${HOST-$HOSTNAME}}¥007"
}
--
PS1=¥[¥e]0;¥h:¥w¥007¥]¥[¥e[31m¥]¥h¥[¥e[0m¥]:0¥j[¥w]¥$