Skip to content

Instantly share code, notes, and snippets.

Minoru Mizutani mmizutani

  • Tokyo
View GitHub Profile
mmizutani /
Created Jun 6, 2020 — forked from so0k/
Playing with kubectl output

Kubectl output options

Let's look at some basic kubectl output options.

Our intention is to list nodes (with their AWS InstanceId) and Pods (sorted by node).

We can start with:

kubectl get no
mmizutani / nginx.conf
Created Jul 23, 2019 — forked from v0lkan/nginx.conf
Configuring NGINX for Maximum Throughput Under High Concurrency
View nginx.conf
user web;
# One worker process per CPU core.
worker_processes 8;
# Also set
# /etc/security/limits.conf
# web soft nofile 65535
# web hard nofile 65535
# /etc/default/nginx
mmizutani / config.yml
Created Jun 7, 2019 — forked from trev/config.yml
CircleCI 2.0 with parallelism & simplecov for Rails
View config.yml
# Ruby CircleCI 2.0 configuration file
# Check for more details
defaults: &defaults
working_directory: ~/split_app
parallelism: 2
- image: circleci/ruby:2.5.0-node-browsers
View CircleCI 2.0 Parallel builds SimpleCov coverage report merging locally

Simplecov aggregated coverage report from CircleCI 2.0 parallel builds (focused on storing locally/within CI containers as artifacts)

Problem Statement

We have Rails application which is running tests on circleCI 2.0, we have simplecov configured to track the coverage of our test suite. Now the problem is with parallelism enabled, we have partial coverage reports in all different containers according to the tests those containers ran.

We obviously want to have consolidated simplecov coverage report which actually shows us overall coverage report.

mmizutani /
Created Apr 1, 2019 — forked from alopresto/
Steps to enable GPG signing of git commits.

If anyone is interested in setting up their system to automatically (or manually) sign their git commits with their GPG key, here are the steps:

  1. Generate and add your key to GitHub
  2. $ git config --global commit.gpgsign true ([OPTIONAL] every commit will now be signed)
  3. $ git config --global user.signingkey ABCDEF01 (where ABCDEF01 is the fingerprint of the key to use)
  4. $ git config --global alias.logs "log --show-signature" (now available as $ git logs)
  5. $ git config --global alias.cis "commit -S" (optional if global signing is false)
  6. $ echo "Some content" >> example.txt
  7. $ git add example.txt
  8. $ git cis -m "This commit is signed by a GPG key." (regular commit will work if global signing is enabled)
mmizutani / nginx.conf
Created Dec 10, 2018 — forked from nateware/nginx.conf
Nginx sample config for EC2
View nginx.conf
# Sample nginx.conf optimized for EC2 c1.medium to xlarge instances.
# Also look at the haproxy.conf file for how the backend is balanced.
user "nginx" "nginx";
worker_processes 10;
error_log /var/log/nginx_error.log info;
mmizutani / main.go
Created Oct 11, 2018 — forked from enricofoltran/main.go
A simple golang web server with basic logging, tracing, health check, graceful shutdown and zero dependencies
View main.go
package main
import (
mmizutani /
Created Sep 2, 2018 — forked from wassname/
Convert .gitignore to .dockerignore: quick and dirty.
Convert .gitignore to .dockerignore: quick and dirty.
This is a quick and dirty script to convert this:
Into this:
mmizutani / elasticsearch-cheatsheet.txt
Created Aug 27, 2018 — forked from stephen-puiszis/elasticsearch-cheatsheet.txt
Elasticsearch Cheatsheet - An Overview of Commonly Used Elasticsearch API Endpoints and What They Do
View elasticsearch-cheatsheet.txt
# Elasticsearch Cheatsheet - an overview of commonly used Elasticsearch API commands
# cat paths
You can’t perform that action at this time.