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/sh | |
PATH=/bin:/sbin:/usr/bin:/usr/sbin:$PATH | |
IFACE="$1" | |
IPADDR="$4" | |
GATEWAY="$5" | |
DEFAULT_GATEWAY="$6" | |
case "$IFACE" in |
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
/** Main css **/ | |
@-moz-document regexp("https?://(|www\\.)google\\..*q\\=.*") { | |
/* text and background */ | |
/* http://www.w3schools.com/cssref/css_colornames.asp */ | |
html, body, table, tbody, tr, td, h1, h2, | |
h3, h4, h5, h6, .sfbgg, #appbar, #leftnav li, .mitem > .kl, #ms > .kl, #tbd, #atd, #leftnav, #tbdi, #hidden_modes, | |
#hmp, .rgsh, .gbtc, .gbmc, .gbmcc, .small #search .skunk-head, .small #search .cntrl, .small #topbar-startcol .start-edge-links, | |
.flex-endcol #topbar-startcol, .small #panelarrow2, .st, .ac, .s em, .ts td, .gl, #gbx4, #gbx3, #gbx4, .no, .wl, .wn, .wo, .wp, .wq, | |
.TO .n0, .XQRo3, .nZ, .vr, .pw, .pY .p4, .pU, .TC, .is, .z8, .T3, .s, .CDVyRd, .VP5otc-U4m8q, .VP5otc-pzeoBf, .mq, .z .m, .y .m, .z .o, .y .o, .z .h, .y .h, .hC8Wic, .TO, .xE .dW, .x .dW, .x .m, .x .o, .AL .o, .x .p, .x .h, .ii, .Bk .G2, .iq, .iI, .z .p, .y .p, .qp, #nycprv, #nycntg, .nyc_open #nycp, #wizard, #qmod, #panel1002, #opanel1002, #one *, #panel_ *, #one *.one.onmouseout, #one *.one.onmouseout, #one *.one.onmouseover #spsiz |
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
# zcompile | |
[ ! -f $HOME/.zshrc.zwc ] && zcompile $HOME/.zshrc | |
[ ! -f $HOME/.zshrc.local.zwc ] && zcompile $HOME/.zshrc.local | |
[ $HOME/.zshrc -nt $HOME/.zshrc.zwc ] && zcompile $HOME/.zshrc | |
[ $HOME/.zshrc.local -nt $HOME/.zshrc.local.zwc ] && zcompile $HOME/.zshrc.local |
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
update-alternatives --install /usr/bin/ruby ruby /usr/bin/ruby1.9.3 500\ | |
--slave /usr/bin/ri ri /usr/bin/ri1.9.3\ | |
--slave /usr/bin/irb irb /usr/bin/irb1.9.3\ | |
--slave /usr/bin/erb erb /usr/bin/erb1.9.3\ | |
--slave /usr/bin/rdoc rdoc /usr/bin/rdoc1.9.3 | |
update-alternatives --install /usr/bin/gem gem /usr/bin/gem1.9.3 500 |
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
test data log size: 87804961 bytes (about 84MB) | |
=== lzo === | |
$ brew install lzop | |
$ time lzop test_compress_log | |
lzop test_compress_log 0.25s user 0.05s system 90% cpu 0.340 total | |
$ ls -lb test_compress_log.lzo | |
-rw-r--r-- 1 n0ts wheel 61373672 Jan 22 14:31 test_compress_log.lzo |
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
Host * | |
ForwardAgent yes | |
StrictHostKeyChecking no | |
LogLevel QUIET | |
HashKnownHosts yes | |
Ciphers arcfour256,aes256-cbc,arcfour128,aes192-cbc,aes128-cbc | |
MACs hmac-sha1-96,hmac-sha1,hmac-md5-96,hmac-md5 |
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
--- configure.in.orig 2013-05-17 00:55:44.763419166 +0900 | |
+++ configure.in 2013-05-17 00:56:13.162731989 +0900 | |
@@ -278,6 +278,9 @@ | |
2.[[2-9]]* ) | |
APR_SETVAR(SINGLE_LISTEN_UNSERIALIZED_ACCEPT, [1]) | |
;; | |
+ 3.[[0-9]]* ) | |
+ APR_SETVAR(SINGLE_LISTEN_UNSERIALIZED_ACCEPT, [1]) | |
+ ;; | |
* ) |
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/sh | |
http_user=$1 | |
# Set up directories | |
mkdir -p app/tmp/cache/models | |
mkdir -p app/tmp/cache/persistent | |
mkdir -p app/tmp/cache/views | |
mkdir -p app/tmp/logs | |
mkdir -p app/tmp/sessions |
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
# pyenv | |
if [ -f "$HOME/.pyenv/version" ]; then | |
# awscli | |
if [ -f "$HOME/.pyenv/versions/$(cat $HOME/.pyenv/version)/bin/aws_zsh_completer.sh" ]; then | |
source $HOME/.pyenv/versions/$(cat $HOME/.pyenv/version)/bin/aws_zsh_completer.sh | |
fi | |
fi |
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/sh | |
if [ -x "`which aws 2> /dev/null`" ]; then | |
AZ=`curl --connect-timeout 3 -s http://169.254.169.254/latest/meta-data/placement/availability-zone` | |
if [ -n "$AZ" ]; then | |
export AWS_DEFAULT_REGION=`echo $AZ | cut -c 1-$((${#AZ} - 1))` | |
fi | |
complete -C aws_completer aws | |
fi |