Skip to content

Instantly share code, notes, and snippets.

View smagch's full-sized avatar
🗾
Japan

Shimaguchi Tomoya smagch

🗾
Japan
View GitHub Profile
@smagch
smagch / brew install haproxy
Created March 5, 2012 02:03
unable to `brew install haproxy`. `brew doctor` says `Your system is raring to brew.`
==> Downloading http://haproxy.1wt.eu/download/1.4/src/haproxy-1.4.17.tar.gz
File already downloaded in /Users/tom/Library/Caches/Homebrew
/usr/bin/tar xf /Users/tom/Library/Caches/Homebrew/haproxy-1.4.17.tar.gz
==> make TARGET=generic USE_KQUEUE=1 USE_POLL=1 USE_PCRE=1 PREFIX=/usr/local/Cellar/haproxy/1.4.17 DOCDIR=/usr/local/Cellar/haproxy/1.4.17/share/doc/haproxy CC=/usr/bin/clang CFLAGS=-Os -w -pipe -march=native -Qunused-arguments LDFLAGS= install
make TARGET=generic USE_KQUEUE=1 USE_POLL=1 USE_PCRE=1 PREFIX=/usr/local/Cellar/haproxy/1.4.17 DOCDIR=/usr/local/Cellar/haproxy/1.4.17/share/doc/haproxy CC=/usr/bin/clang CFLAGS=-Os -w -pipe -march=native -Qunused-arguments LDFLAGS= install
/usr/bin/clang -Iinclude -Iebtree -Wall -Os -w -pipe -march=native -Qunused-arguments -DTPROXY -DENABLE_POLL -DENABLE_KQUEUE -DUSE_PCRE -I/usr/local/include -DCONFIG_HAPROXY_VERSION=\"1.4.17\" -DCONFIG_HAPROXY_DATE=\"2011/09/05\" \
-DBUILD_TARGET='"generic"' \
-DBUILD_ARCH='""' \
-DBUILD_CPU='"gen
@smagch
smagch / tab-content bug
Created March 14, 2012 20:16
Twitter Bootstrap v2.0.2 bug, tab-content class with absolute position
<html>
<head>
<!-- <link rel="stylesheet" href="bootstrap.2.0.1.css" type="text/css" media="screen" title="no title" charset="utf-8"> -->
<link rel="stylesheet" href="bootstrap.2.0.2.css" type="text/css" media="screen" title="no title" charset="utf-8">
<style type="text/css" media="screen">
#wrapper {
padding: 0;
margin: 0;
width: 100%;
@smagch
smagch / app.js
Created April 20, 2012 08:51
node built-in cluster and http-proxy
/**
* Module dependencies.
*/
var express = require('express')
, routes = require('./routes')
, http = require('http')
, cluster = require('cluster')
, numCPUs = require('os').cpus().length
@smagch
smagch / seaport.conf
Created May 28, 2012 02:52
seaport server upstart
#!upstart
description "seaport server"
author "smagch"
start on started mountall
stop on shutdown
# Automatically Respawn:
respawn
respawn limit 99 5
@smagch
smagch / dogazei.conf
Created May 29, 2012 08:33
logrotate for dogazei
/var/log/seaport.log {
daily
rotate 5
copytruncate
}
/var/log/bouncer.log {
daily
rotate 5
copytruncate
@smagch
smagch / post-update
Created June 5, 2012 02:43
post-update hook for node.js
#!/bin/bash
branch=$(git rev-parse --symbolic --abbrev-ref $1)
DEPLOY_DIR=/var/www/dogazei.org/dogazei.org-latest/
echo Update pushed to branch $branch
update () {
cd $DEPLOY_DIR || exit
unset GIT_DIR
git checkout -f
@smagch
smagch / index.html
Created June 20, 2012 19:23
A web page created at CodePen.io
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>CodePen &middot; A Pen by smagch</title>
<style>
@smagch
smagch / index.html
Created June 20, 2012 19:23
A web page created at CodePen.io
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>CodePen &middot; A Pen by smagch</title>
<style>
@smagch
smagch / index.html
Created June 20, 2012 19:43
A web page created at CodePen.io
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>CSS3 3D transform mouse animation with centering demo &middot; CodePen</title>
<style>
@smagch
smagch / index.html
Created June 20, 2012 20:05
A web page created at CodePen.io
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>CSS3 3D the first person view demo using glmatrix &middot; CodePen</title>
<style>