Skip to content

Instantly share code, notes, and snippets.

View eagletmt's full-sized avatar

Kohei Suzuki eagletmt

View GitHub Profile
SHELL = /bin/sh
# V=0 quiet, V=1 verbose. other values don't work.
V = 0
Q1 = $(V:1=)
Q = $(Q1:0=@)
ECHO1 = $(V:1=@:)
ECHO = $(ECHO1:0=@echo)
@eagletmt
eagletmt / a.diff
Created August 27, 2015 16:27
diff -u Makefile.217 Makefile.223
--- Makefile.217 2015-08-28 01:25:12.744277586 +0900
+++ Makefile.223 2015-08-28 01:25:28.460913531 +0900
@@ -7,16 +7,17 @@
Q = $(Q1:0=@)
ECHO1 = $(V:1=@:)
ECHO = $(ECHO1:0=@echo)
+NULLCMD = :
#### Start of system configuration section. ####
#!/usr/bin/env ruby
class Log
def initialize(h)
@h = h
end
def response_time
# unit: ms
@h['reqtime'].to_f * 1000
upstream gyazo {
server unix:/tmp/gyazo.sock;
}
server {
listen 80;
listen 443 ssl;
server_name gyazo.wanko.cc;
charset utf-8;
nginx version: nginx/1.6.2
TLS SNI support enabled
configure arguments: --prefix=/etc/nginx --conf-path=/etc/nginx/nginx.conf --sbin-path=/usr/bin/nginx --pid-path=/run/nginx.pid --lock-path=/run/lock/nginx.lock --user=http --group=http --http-log-path=/var/log/nginx/access.log --error-log-path=stderr --http-client-body-temp-path=/var/lib/nginx/client-body --http-proxy-temp-path=/var/lib/nginx/proxy --http-fastcgi-temp-path=/var/lib/nginx/fastcgi --http-scgi-temp-path=/var/lib/nginx/scgi --http-uwsgi-temp-path=/var/lib/nginx/uwsgi --with-imap --with-imap_ssl_module --with-ipv6 --with-pcre-jit --with-file-aio --with-http_dav_module --with-http_gunzip_module --with-http_gzip_static_module --with-http_realip_module --with-http_spdy_module --with-http_ssl_module --with-http_stub_status_module --with-http_addition_module --with-http_degradation_module --with-http_flv_module --with-http_mp4_module --with-http_secure_link_module --with-http_sub_module
UPDATE sentry_rule SET data = 'eJxljbsOwjAMRXf/SDJZlDcjQjCy5AOqKklRpMqJ4oDUv8epUjGw+drX52iXOjDKRnKhhEisIG1BT2kH2qW9nIKT1UEG9lTyjPk9ecbfA44hc+nZe+r9Rzr4qAsj+V7jbW0K5gg8sFGDXVWnqjpX1QVef5LWQ4oljHOjP5ewoK+2cbtNBeMX2PhGnQ==' WHERE label = 'Send a notification for new events';
UPDATE sentry_rule SET data = 'eJzTSCkw5ApWT87PS8ksyczPK1bnKjDi0sgpMObSSCkwAUplpgCFTIGM4tS8kqJKvaLSnNRiPYQGvaLU9KLU4mIgOz61DKhGLwgu4AriO8OUAs0x4ypOLA5WT0yG2WUOsssCZJclVzqGLVB1enn5JZlplVDj/cAcsNGOyVBzDQ1ABusBAD+xRzo=' WHERE label = 'Send a notification for regressions';
#!/usr/bin/env ruby
require 'benchmark/ips'
require 'haml'
t1 = 1000.times.map do |i|
"%span{foo: #{i}}"
end.join("\n")
t2 = 1000.times.map do |i|
"%span{:foo => #{i}}"
#!/usr/bin/env ruby
require 'benchmark/ips'
require 'slim'
t1 = 1000.times.map do |i|
"span*{foo: #{i}}"
end.join("\n")
t2 = 1000.times.map do |i|
"span foo=#{i}"
:plain
  without empty lines


:preserve
  with empty lines


%br
:plain
  hello
  world
%br
:plain
  #{'hello'}
  world
%br