debian
ビルド用パッケージのインストール
sudo apt-get build-dep nginx
sudo apt-get install devscripts fakeroot
sudo apt-get install ruby ruby-dev rake libcurl4-openssl-dev libev-dev
ビルド用ディレクトリ作成してcd.
This file contains hidden or 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
| post '/graphviz' do | |
| data = params[:data] | |
| if data.respond_to?(:has_key?) && data.has_key?(:tempfile) && data[:tempfile].respond_to?(:read) | |
| data = data[:tempfile].read | |
| end | |
| format = params[:format] | |
| layout = params[:layout] | |
| hash = Digest::SHA1.hexdigest(data) | |
| src_file, img_file, err_file = *filenames(hash, layout, format) | |
| if ! validate_layout(layout) |
nginx -V:
nginx version: nginx/1.4.6
built by gcc 4.8.2 (Debian 4.8.2-16)
TLS SNI support enabled
configure arguments: --with-cc-opt='-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2' --with-ld-opt=-Wl,-z,relro --prefix=/usr/share/nginx --conf-path=/etc/nginx/nginx.conf --http-log-path=/var/log/nginx/access.log --error-log-path=/var/log/nginx/error.log --lock-path=/var/lock/nginx.lock --pid-path=/run/nginx.pid --http-client-body-temp-path=/var/lib/nginx/body --http-fastcgi-temp-path=/var/lib/nginx/fastcgi --http-proxy-temp-path=/var/lib/nginx/proxy --http-scgi-temp-path=/var/lib/nginx/scgi --http-uwsgi-temp-path=/var/lib/nginx/uwsgi --with-debug --with-pcre-jit --with-ipv6 --with-http_ssl_module --with-http_stub_status_module --with-http_realip_module --with-http_addition_module --with-http_dav_module --with-http_geoip_module --with-http_gzip_static_module --with-http_image_filter_module --with-http_spdy_module --with-http_sub_module --with-http
This file contains hidden or 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
| -- debug_print("window_class: " .. get_window_class()) | |
| -- debug_print("window_type: " .. get_window_type()) | |
| if get_window_class() == "Gnome-terminal" and get_window_type() == "WINDOW_TYPE_NORMAL" then | |
| set_opacity(0.8) | |
| end |
This file contains hidden or 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
| ## for zsh user | |
| docker () { | |
| local -a peco | |
| zparseopts -D -E -peco=peco | |
| if [ $#peco -eq 1 -a "${peco[1]}" = "--peco" ] | |
| then | |
| peco-docker "$@" | |
| else | |
| command docker "$@" | |
| fi |
This file contains hidden or 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
| やりたいこと | |
| * [x] etckeeper (/etc を git でバージョン管理) | |
| * [×] ~/isucon 以下を git でバージョン管理 | |
| * [x] ruby 2.1.2 のリビルド (libgmp つきで高速化) | |
| ## etckeeper | |
| sudo yum install --enablerepo=epel etckeeper |
This file contains hidden or 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
| From 9d451e3335d5d841fb3e76f66361413876d8f0d5 Mon Sep 17 00:00:00 2001 | |
| From: YAMADA Tsuyoshi tyamada@minimum2scp.org> | |
| Date: Tue, 16 Sep 2014 16:55:40 +0900 | |
| Subject: [PATCH] lib/tdiary/core_ext.rb: emojify check if emoji exists, and | |
| use SSL site (experimental) | |
| --- | |
| lib/tdiary/core_ext.rb | 27 ++++++++++++++++++++++----- | |
| 1 file changed, 22 insertions(+), 5 deletions(-) |
This file contains hidden or 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 'rake/clean' | |
| require 'logger' | |
| directory "flags" | |
| CLEAN.include "flags" | |
| CLOBBER.include "deps.dot" | |
| logger = Logger.new($stderr) |
This file contains hidden or 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 | |
| : ${image=centos:centos6} | |
| : ${name=centos-test} | |
| : ${run_command=/sbin/init} | |
| : ${user=${USER}} | |
| : ${ssh_key=$HOME/.ssh/id_rsa.pub} | |
| set -x |