Skip to content

Instantly share code, notes, and snippets.

@nurse
nurse / pid2line.rb
Last active December 27, 2018 08:51
Show source files and line numers of given process's threads
#!/usr/bin/env ruby
#
# pid2line.rb
#
# Show source files and line numers of given process's threads
#
# This script works only on Linux.
# https://gist.github.com/nurse/0619b6af90df140508c2
#
@pataiji
pataiji / 1.HOWTO.md
Last active February 29, 2020 22:46
S3 + CloudFront で特定のパスへのアクセスをリダイレクトさせる
  1. S3の'Static Website Hosting'を有効にする
  2. 'Edit Redirection Rules'を編集する
  3. 'bucket policy'を編集する
  4. CLoudFrontのOriginにS3の'Static Website Hosting'のEndpointを指定する
@drawks
drawks / graphite
Created February 14, 2012 21:24
Graphite on uwsgi/nginx
#This is the "site config" for nginx
upstream django {
# Distribute requests to servers based on client IP. This keeps load
# balancing fair but consistent per-client. In this instance we're
# only using one uWGSI worker anyway.
ip_hash;
server unix:/tmp/uwsgi.sock;
}
server {