This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
#=============================================================================== | |
# | |
# FILE: checker.pl | |
# | |
# USAGE: ./checker.pl [filename] | |
# | |
# DESCRIPTION: check http-status from url list | |
# | |
# OPTIONS: --- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# setup script for Android SDK & NDK | |
# for macosx lion | |
PATH_DEVELOPER=$HOME/Library/Developer | |
PATH_ANDROID=$PATH_DEVELOPER/Android | |
DIR_ANDROID_SDK="android-sdk" | |
DIR_ANDROID_NDK="android-ndk" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- /usr/bin/mysqld_safe.orig 2011-05-12 03:14:52.000000000 +0900 | |
+++ /usr/bin/mysqld_safe 2011-06-07 11:02:49.000000000 +0900 | |
@@ -727,6 +727,10 @@ | |
cmd="`mysqld_ld_preload_text`$NOHUP_NICENESS" | |
+# Start mysqld with memory allocations interleaved to avoid swapping | |
+# on NUMA-based architectures. Should be harmless on non-NUMA. | |
+cmd="/usr/bin/numactl --interleave all $cmd" | |
+ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
PERL_STABLE="5.16.1" | |
echo '%< --- installing perlbrew ---' | |
echo | |
curl -kL http://install.perlbrew.pl | bash | |
source ~/perl5/perlbrew/etc/bashrc | |
perlbrew install --notest perl-${PERL_STABLE} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## /usr/local/etc/my.cnf | |
[mysqladmin] | |
user=root | |
password=hogefuga |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
GROUP="hoge-service" | |
HOST_MASTER="master" | |
HOST_SLAVE="slave01 slave02 slave03" | |
MAILTO="[email protected]" | |
TMPFILE=/tmp/slow-log.`date "+%s"`.log | |
echo "${GROUP} servers summary" > ${TMPFILE} | |
echo >> ${TMPFILE} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### .zshrc | |
### for mac + macports | |
### ver. 2012/06/15 | |
### common settings | |
# export | |
export LANG=ja_JP.UTF-8 | |
export PATH=$HOME/bin:/opt/local/bin:$PATH | |
# autoload |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[client] | |
port = 3306 | |
socket = /tmp/mysql.sock | |
[mysqld] | |
user = mysql | |
pid-file = /usr/local/var/mysql/mysqld.pid | |
socket = /tmp/mysql.sock | |
port = 3306 | |
datadir = /usr/local/var/mysql |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use JSON; | |
use Plack::Request; | |
my $app = sub { | |
my $req = Plack::Request->new(shift); | |
my $res = $req->new_response(200); | |
$res->content_type('application/json'); | |
$res->body(encode_json(+{ | |
method => $req->method, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- include/probes_mysql.h.orig 2012-08-29 17:50:46.000000000 +0900 | |
+++ include/probes_mysql.h 2012-10-10 13:30:01.000000000 +0900 | |
@@ -20,10 +20,6 @@ | |
#include <my_global.h> | |
-#if defined(HAVE_DTRACE) && !defined(DISABLE_DTRACE) | |
-#include "probes_mysql_dtrace.h" | |
-#else | |
#include "probes_mysql_nodtrace.h" |
OlderNewer