- ユーザ
nginx:nginx
- php-fpm想定、fastcgi有り
- uwsgi・scgi無し
- spdyアリ
- TCP-Proxy可能バージョン
- binのpath以外はapt準拠
- prefixを/usrに変えてsbin-pathを/usr/sbinにすればよい
- ngx_pagespeedをaddしているので、適宜入手、もしくは該当行を削除
- pagespeed/ngx_pagespeed
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
require 'formula' | |
class Pngout < Formula | |
url 'http://static.jonof.id.au/dl/kenutils/pngout-20110722-darwin.tar.gz' | |
homepage 'http://www.jonof.id.au/kenutils' | |
sha1 'f268caf5d5c72fc9a0dd42db38839b4a6b9c7094' | |
def install | |
prefix.install Dir['*'] | |
File.symlink(prefix+'pngout', '/usr/local/bin/pngout') |
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
socket.current = null | |
socket.on 'start', (query) -> | |
socket.current = query.name | |
($ '#main').html ' ' | |
console.log 'start' | |
socket.on 'data', (query, data) -> | |
if socket.current is query.name | |
($ '#main').append (_.template ($ '#template').html()) data |
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
Stream = require 'stream' | |
class Writable extends Stream.Writable | |
constructor: (@socket, options = {}) -> | |
super options | |
write: (chunk, encoding, callback) -> | |
@socket.emit 'data', chunk.toString(encoding) | |
end: (chunk, encoding, callback) -> | |
@socket.emit 'data', chunk.toString(encoding) if chunk |
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
::selection, *::-moz-selection { | |
text-shadow: none; | |
background-color: | |
rgba(65,131,196,0.4); | |
} | |
body { | |
font-family: Helvetica, arial, sans-serif; | |
font-size: 15px; | |
line-height: 1.7; |
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 | |
TMP=`mktemp` | |
LOL='SUQzBAAAAAACDFRYWFgAAAASAAADbWFqb3JfYnJhbmQAbXA0MgBUWFhYAAAAEQAAA21pbm9yX3ZlcnNpb24AMABUWFhYAAAAIAAAA2NvbXBhdGlibGVfYnJhbmRzAG1wNDJpc29tYXZjMQBUUEUyAAAAFAAAA+ODqeODluODqeOCpOODlu+8gQBUUEUxAAAAFAAAA+ODqeODluODqeOCpOODlu+8gQBUQUxCAAAAFAAAA+ODqeODluODqeOCpOODlu+8gQBUQ09OAAAAFAAAA+ODqeODluODqeOCpOODlu+8gQBUUkNLAAAAAwAAAzIAVFBPUwAAAAMAAAMxAFRTU0UAAAAPAAADTGF2ZjU0LjYzLjEwNAD/+1QAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABJbmZvAAAABwAAAFQAAH7AAAQHCg0QExMWGRwfIiIlKCsuMTE1ODs+QURER0pNUFNTVllcX2JiZWhrbnFxdHd6fYCDg4aJjI+SkpWYnJ+ioqWoq66xsbS3ur3Aw8PGyczP0tLV2Nve4eHk5+rt8PDz9vn8/0xhdmY1NC42My4xMDQAAAAAAAAAACQAAAAAAAAAAAAAAAAAAAAAAAD/+5RkAA/wAABpAAAACAAADSAAAAEAAAGkAAAAIAAANIAAAARMQU1FMy45OS41VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVUxBTUUzLjk5LjVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV |
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
fs = require 'fs' | |
util = require 'util' | |
http = require 'http' | |
async = require 'async' | |
{Iconv} = require 'iconv' | |
cheerio = require 'cheerio' | |
multimeter = require 'multimeter' | |
multi = multimeter process | |
class AnimeWiki |
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/zsh | |
APP='' | |
for f in *; do | |
if [[ ${f##*.} =~ 'app' ]]; then | |
APP=$f | |
fi | |
done |
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/zsh | |
[[ ! -s `which brew` ]] && echo 'brew not installed' && exit 1 | |
brew install nginx | |
[[ ! -d ~/Library/LaunchAgents ]] && mkdir ~/Library/LaunchAgents | |
ln -sfv /usr/local/opt/nginx/homebrew.mxcl.nginx.plist ~/Library/LaunchAgents/homebrew.mxcl.nginx.plist | |
cd ~/Library/LaunchAgents | |
launchctl load homebrew.mxcl.nginx.plist |