Skip to content

Instantly share code, notes, and snippets.

Hidetake Iwata int128

Block or report user

Report or block int128

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
int128 / kubernetes-dashboard-proxy.yaml
Last active Oct 3, 2018
Access Kubernetes Dashboard via OpenID Connect Proxy
View kubernetes-dashboard-proxy.yaml
apiVersion: extensions/v1beta1
kind: Deployment
name: kubernetes-dashboard-proxy
namespace: kube-system
replicas: 1
int128 /
Created Jan 31, 2018
Shell script to switch symbolic link
int128 /
Last active Jan 12, 2020
Spring Web filter for logging request and response
import lombok.extern.slf4j.Slf4j;
import lombok.val;
import org.springframework.http.HttpStatus;
import org.springframework.http.MediaType;
import org.springframework.web.filter.OncePerRequestFilter;
import org.springframework.web.util.ContentCachingRequestWrapper;
import org.springframework.web.util.ContentCachingResponseWrapper;
import javax.servlet.FilterChain;
import javax.servlet.ServletException;
int128 /
Last active Aug 18, 2017
Testing GitHub compatible URL access on GitBucket


  • Install and configure GitBucket at http://localhost:8080
  • Deny anonymous access
  • Create a group hello
  • Create a repository hello/foo with

Test cases

int128 / example.ldif
Created Aug 18, 2017
Example LDAP data generated by Crowd (JIRA)
View example.ldif
objectClass: glue
structuralObjectClass: glue
entryUUID: ********
creatorsName: cn=admin,dc=example,dc=org
createTimestamp: 20170817063913Z
entryCSN: 20170817063913.365569Z#000000#000#000000
modifyTimestamp: 20170817063913Z
memberOf: cn=crowd-administrators,dc=example,dc=org
modifiersName: cn=admin,dc=example,dc=org
int128 / gist:f7004b9e695b8975487d7ea1619a3e4a
Last active Aug 16, 2017
Cost Estimation of Local NUC and Cloud Instance
View gist:f7004b9e695b8975487d7ea1619a3e4a

High performance NUC

Core i5 2C4T 2.2GHz, 32GB RAM, 512GB SSD

  • NUC7i5BNH \47,000
  • SODIMM DDR4 PC4-17000 16GB x2 \30,000
  • M2.SSD 512GB \24,000

Total \101,000

int128 / gist:181c075ce966022ae1d129e450dd3051
Last active Oct 14, 2017
Example of Doc2Vec and Google Cloud Natural Language API
View gist:181c075ce966022ae1d129e450dd3051
from gensim.models.doc2vec import Doc2Vec
from gensim.models.doc2vec import TaggedDocument
from import language
def wakachigaki(text):
client = language.Client()
document = client.document_from_text(text)
annotations = document.annotate_text()
words = []
int128 /
Last active Jan 9, 2020
Watching build mode on Create React App

Create React App does not provide watching build mode oficially (#1070).

This script provides watching build mode for an external tool such as Chrome Extensions or Firebase app.

How to Use

Create a React app.

Put the script into scripts/watch.js.

int128 / nginx.conf
Created Dec 28, 2016
Nginx conf for Sonar 6.x behind SSL-termination
View nginx.conf
# Sonarqube
server {
listen 80;
location / {
proxy_pass http://sonarqube:9000;
proxy_redirect http://sonarqube:9000;
int128 /
Created Dec 6, 2016
How to handle GitHub Webook on Tag pushed on Jenkins
  • Refspec: +refs/tags/*:refs/remotes/origin/tags/*
  • Branch Specifier: */tags/*
You can’t perform that action at this time.