Skip to content

Instantly share code, notes, and snippets.

🌴
On vacation

Kenichi Shibata kenichi-shibata

🌴
On vacation
Block or report user

Report or block kenichi-shibata

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
View chart-best-practice.yaml
metadata:
name: {{ .Release.Name }}
labels:
# The "heritage" label is used to track which tool deployed a given chart.
# It is useful for admins who want to see what releases a particular tool
# is responsible for.
heritage: {{ .Release.Service }}
# The "release" convention makes it easy to tie a release to all of the
# Kubernetes resources that were created as part of that release.
release: {{ .Release.Name }}
@kenichi-shibata
kenichi-shibata / gke_helpers.sh
Last active Feb 25, 2019
gke command line tool for setting up kubeconfig automatically on your google account
View gke_helpers.sh
#https://unix.stackexchange.com/questions/276471/piping-a-command-through-a-color-filter
# more info using man terminfo
function black() { tput setaf 0; cat; tput sgr0; }
function red() { tput setaf 1; cat; tput sgr0; }
function green() { tput setaf 2; cat; tput sgr0; }
function yellow() { tput setaf 3; cat; tput sgr0; }
function blue() { tput setaf 4; cat; tput sgr0; }
function magenta() { tput setaf 5; cat; tput sgr0; }
function cyan() { tput setaf 6; cat; tput sgr0; }
function white() { tput setaf 7; cat; tput sgr0; }
@kenichi-shibata
kenichi-shibata / tutorial.md
Created Jun 15, 2018 — forked from swalkinshaw/tutorial.md
Designing a GraphQL API
View tutorial.md

Tutorial: Designing a GraphQL API

This tutorial was created by Shopify for internal purposes. We've created a public version of it since we think it's useful to anyone creating a GraphQL API.

It's based on lessons learned from creating and evolving production schemas at Shopify over almost 3 years. The tutorial has evolved and will continue to change in the future so nothing is set in stone.

View error.log.md

$ kubectl logs pods/cert-manager-776fdbccf8-qbsbh -c ingress-shim

I0321 17:02:11.173760       1 leaderelection.go:174] attempting to acquire leader lease...
I0321 17:02:28.383702       1 leaderelection.go:184] successfully acquired lease kube-system/ingress-shim-controller
I0321 17:02:28.484614       1 controller.go:147] ingress-shim controller: syncing item 'sock-shop/frontend-ingress'
I0321 17:02:28.484886       1 sync.go:85] Certificate "front-end-tls" for ingress "frontend-ingress" already exists, not re-creating
I0321 17:02:28.484993       1 controller.go:161] ingress-shim controller: Finished processing work item "sock-shop/frontend-ingress"
I0321 17:02:28.884265       1 controller.go:147] ingress-shim controller: syncing item 'sock-shop/frontend-ingress'
I0321 17:02:28.884525       1 sync.go:85] Certificate "front-end-tls" for ingress "frontend-ingress" already exists, not re-creating
@kenichi-shibata
kenichi-shibata / expand.js
Created Mar 21, 2018 — forked from tomgp/expand.js
uses of reduce
View expand.js
var arr = [
{count:20, type:'a'},
{count:19, type:'b'},
{count:8, type:'c'},
{count:34, type:'d'}
];
var expanded = arr.reduce(function(value, d){
var l = new Array( Number(d.count) )
for(var i=0;i<d.count;i++){
@kenichi-shibata
kenichi-shibata / cols.txt
Created Mar 12, 2018 — forked from 0/cols.txt
Brief awk tutorial
View cols.txt
abc 1 2 3
def 4 5 6
ga 7 9 10
hij 1 5 99
View cidr-conversion-table.md

CIDR Conversion Table

CIDR prefix length Dotted Decimal Netmask Hexidecimal Netmask Inverse Netmask Binary Number of Classfull Networks Number of Usable IPs
/1 128.0.0.0 80 00 00 00 127.255.255.255 1000 0000 0000 0000 0000 0000 0000 0000 128 As 2,147,483,646
/2 192.0.0.0 C0 00 00 00 63.255.255.255 1100 0000 0000 0000 0000 0000 0000 0000 64 As 1,073,741,822
/3 224.0.0.0 E0 00 00 00 31.255.255.255 1110 0000 0000 0000 0000 0000 0000 0000 32 As 536,870,910
/4 240.0.0.0 F0 00
View keybase.md

Keybase proof

I hereby claim:

  • I am kenichi-shibata on github.
  • I am kenichishibata (https://keybase.io/kenichishibata) on keybase.
  • I have a public key ASBN6WTFAU74OiEm1K3jxkyiRaKx0HJoFl_1dbV7u8jJkgo

To claim this, I am signing this object:

@kenichi-shibata
kenichi-shibata / python-generators.md
Last active Apr 14, 2018
Python Generators Explained
View python-generators.md

Python Generators

Learn python generators by example.

As Iterators

Using generators (generator functions)

>>> def integers():
    i = 1 
You can’t perform that action at this time.