Skip to content

Instantly share code, notes, and snippets.

Takayuki Sugita sugilog

Block or report user

Report or block sugilog

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
shyouhei / gist:266178ffedab5767a5b69b972c76f88a
Created Sep 27, 2017
View gist:266178ffedab5767a5b69b972c76f88a






madhums / base64-image-upload.js
Created Sep 14, 2014
save base64 encoded image
View base64-image-upload.js
* Taken from
var fs = require('fs');
// string generated by canvas.toDataURL()
var img = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0"
+ "3gAAAABJRU5ErkJggg==";
// strip off the data: url prefix to get just the base64-encoded bytes
hgfischer /
Last active Oct 7, 2019
Benchmarking Nginx with Go

Benchmarking Nginx with Go

There are a lot of ways to serve a Go HTTP application. The best choices depend on each use case. Currently nginx looks to be the standard web server for every new project even though there are other great web servers as well. However, how much is the overhead of serving a Go application behind an nginx server? Do we need some nginx features (vhosts, load balancing, cache, etc) or can you serve directly from Go? If you need nginx, what is the fastest connection mechanism? This are the kind of questions I'm intended to answer here. The purpose of this benchmark is not to tell that Go is faster or slower than nginx. That would be stupid.

So, these are the different settings we are going to compare:

  • Go HTTP standalone (as the control group)
  • Nginx proxy to Go HTTP
  • Nginx fastcgi to Go TCP FastCGI
  • Nginx fastcgi to Go Unix Socket FastCGI
frsyuki /
Last active Jun 11, 2018
MessagePack for Ruby version 5

MessagePack for Ruby version 5

MessagePack for Ruby の新版をリリースしました!


すべてのコードをゼロから再設計し、 シリアライズの大幅な高速化 を達成しました。 ruby-serializers を使って過去のバージョン(v4)と比較したところ、Twitter, 画像, 整数列, 地理データ, 3Dモデル のすべてのデータセットで高速化しました。

y-yu /
Created Aug 9, 2012




function f () {
	// Class
View NoSQLデータモデリング技法.markdown


原文:NoSQL Data Modeling Techniques « Highly Scalable Blog

I translated this article for study. contact matope[dot]ono[gmail] if any problem.


本稿をレビューして文法を清書してくれたDaniel Kirkdorfferに感謝したいと思う

You can’t perform that action at this time.