Skip to content

Instantly share code, notes, and snippets.

View skaji's full-sized avatar

Shoichi Kaji skaji

  • Kanagawa, Japan
  • 08:01 (UTC +09:00)
View GitHub Profile
#!/usr/bin/env perl
use strict;
use warnings;
use utf8;
use IO::Handle;
use Cwd 'getcwd';
use Filesys::Notify::Simple;
STDOUT->autoflush(1);
sub red { "\e[1;31m@_\e[m" }
#!/usr/bin/env perl
use strict;
use warnings;
use utf8;
use Plack::App::Directory;
use Plack::Builder;
use Plack::Runner;
my $app = builder {
enable 'DirIndex';
@skaji
skaji / glibc-2.19.txt
Created March 30, 2014 04:28
installed files of glibc-2.19 on centos 6.5
.
├── bin
│   ├── catchsegv
│   ├── gencat
│   ├── getconf
│   ├── getent
│   ├── iconv
│   ├── ldd
│   ├── locale
│   ├── localedef
@skaji
skaji / 00_note.txt
Last active August 29, 2015 13:57
centos 6.5
> yum list installed | grep glibc
glibc.x86_64 2.12-1.132.el6 @anaconda-CentOS-201311272149.x86_64/6.5
glibc-common.x86_64 2.12-1.132.el6 @anaconda-CentOS-201311272149.x86_64/6.5
glibc-devel.x86_64 2.12-1.132.el6 @anaconda-CentOS-201311272149.x86_64/6.5
glibc-headers.x86_64 2.12-1.132.el6 @anaconda-CentOS-201311272149.x86_64/6.5
> repoquery -lq glibc-2.12-1.132.el6.x86_64
/etc/gai.conf
/etc/ld.so.cache
/etc/ld.so.conf
@skaji
skaji / MEMO.md
Last active August 29, 2015 13:57
MEMO
#!/usr/bin/env perl
use strict;
use warnings;
use utf8;
use lib "lib";
use Pithub;
use Data::Dumper;
my $token = $ENV{TOKEN} or die;
@skaji
skaji / rrdtool-deps-install.pl
Last active August 29, 2015 14:00
deps: sudo yum install gcc xz perl gcc-c++
#!/usr/bin/env perl
use strict;
use warnings FATAL => 'all';
use utf8;
BEGIN {
package pushd;
use Cwd ();
sub pushd {
my ($dir, $sub) = @_;
my $self = bless { dir => Cwd::getcwd() }, __PACKAGE__;
#!/bin/bash
set -e
PERL_VERSION=${PERL_VERSION:-5.18.2}
PREFIX=${PREFIX:-/root/growthforecast}
LIBPTH='/usr/local/lib /lib64 /lib/x86_64-linux-gnu /lib /usr/lib64 /usr/lib/x86_64-linux-gnu /usr/lib /usr/local/lib64'
set -x
wget -q http://www.cpan.org/src/5.0/perl-${PERL_VERSION}.tar.gz
@skaji
skaji / sources.list
Created April 20, 2014 06:21
/etc/apt/sources.list ubuntu14.04 (trusty)
deb mirror://mirrors.ubuntu.com/mirrors.txt trusty main restricted universe multiverse
deb mirror://mirrors.ubuntu.com/mirrors.txt trusty-updates main restricted universe multiverse
deb mirror://mirrors.ubuntu.com/mirrors.txt trusty-backports main restricted universe multiverse
deb mirror://mirrors.ubuntu.com/mirrors.txt trusty-security main restricted universe multiverse
@skaji
skaji / Config.patch
Last active August 29, 2015 14:01
ExtUtils::MakeMaker fixes shebang line by $Config{startperl} which is the initial perl absolute path. However this conflicts relocated perl. So let's make $Config{startperl} relocatable too!
diff --git Config_heavy.pl Config_heavy.pl
index 87dbcd7..1ebbdfc 100644
--- Config_heavy.pl
+++ Config_heavy.pl
@@ -1023,7 +1023,7 @@ perl_patchlevel=''
perl_static_inline='static __inline__'
perladmin='root@3639d5d915c8.(none)'
perllibs='-lnsl -ldl -lm -lcrypt -lutil -lc'
-perlpath='/root/perl/bin/perl'
+perlpath='.../perl'