Skip to content

Instantly share code, notes, and snippets.

View kazuph's full-sized avatar

Kazuhiro Homma kazuph

View GitHub Profile
@kazuph
kazuph / tamagoya_menu.pl
Created June 21, 2013 05:45
たまごやメニュー取得スクリプト
#!/usr/bin/env perl
use strict;
use warnings;
use utf8;
use Encode;
use feature 'say';
use Web::Query;
use Time::Piece;
my $menu_list = [];
@kazuph
kazuph / bench.pl
Last active December 19, 2015 21:29
riak perl bench
#!/usr/bin/env perl
use strict;
use warnings;
use utf8;
use Benchmark 'cmpthese';
use Data::Riak;
use Data::Riak::Fast;
use Net::Riak;
@kazuph
kazuph / file0.txt
Created July 25, 2013 14:33
githubのリポジトリをwgetでだけで取得したい時 ref: http://qiita.com/kazuph/items/73c2eea6e82896bda58c
$ wget --no-check-certificate https://github.com/fluent/fluentd/archive/master.tar.gz
$ tar xpvf master
$ rm master
$ ls
fluentd-master
@kazuph
kazuph / tamagoya.pl
Last active December 21, 2015 09:59
今日のたまご屋のメニューだけだけターミナルに表示したい(http://www.tamagoya.co.jp/menu/menu.html
#!/usr/bin/env perl
use strict;
use warnings;
use utf8;
use Encode;
use feature 'say';
use Web::Query;
use Time::Piece;
# 以下のページをパースしてメニューだけ表示する
@kazuph
kazuph / vimrc
Last active December 23, 2015 05:49
vimrc_neo
" ___ ___ ___ ___
" |\__\ /\ \ /\ \ /\ \
" | | | / \ \ / \ \ / \ \
" | | | / /\ \ \ / /\ \ \ / /\ \ \
" | |__|__ / \~\ \ \ / \~\ \ \ / / \ \ \
" / \__\ / /\ \ \ \__\ / /\ \ \ \__\ / /__/ \ \__\
" / /~~/~ \/__\ \/ / / \/__\ \/ / / \ \ \ \/__/
" / / / \ / / \ / / \ \ \
" \/__/ / / / \/__/ \ \ \
" / / / \ \__\
@kazuph
kazuph / yapc2013.pl
Last active December 23, 2015 17:08
YAPC::Asia 2013の感想ブログで特定のワードに対して言及があったかどうかだけ検出するスクリプト
#!/usr/bin/env perl
use common::sense;
use Furl;
use Web::Query;
use HTML::TagParser;
use Data::Dump qw/dump/;
use Term::ANSIColor qw(:constants);
die "Usage: perl yapc2013.pl [keyword]" unless $ARGV[0];
[color]
# colorの設定(以下のコマンドは自動で色つける)
ui = auto
status = auto
diff = auto
branch = auto
interactive = auto
grep = auto
[core]
# globalな.gitignoreの指定
@kazuph
kazuph / readme.md
Created October 29, 2013 14:11
xcodeのコードフォーマッター導入メモ
@kazuph
kazuph / Dockerfile
Last active February 9, 2020 12:46
centosのimageからsshを使えるようにするだけのDockerfile。
FROM centos
RUN yum install -y passwd
RUN yum install -y openssh
RUN yum install -y openssh-server
RUN yum install -y openssh-clients
RUN yum install -y sudo
RUN sed -ri 's/UsePAM yes/#UsePAM yes/g' /etc/ssh/sshd_config
RUN sed -ri 's/#UsePAM no/UsePAM no/g' /etc/ssh/sshd_config
@kazuph
kazuph / file0.txt
Last active December 19, 2016 08:03
iPhoneアプリに必要なアイコンを全サイズ生成するシェルスクリプト ref: http://qiita.com/kazuph/items/0f68301257d085f8e589
$ brew install ImageMagick