Skip to content

Instantly share code, notes, and snippets.

Avatar
🍜

Manabu Matsuzaki matsumana

🍜
View GitHub Profile
View example-rollout.yml
---
apiVersion: argoproj.io/v1alpha1
kind: Rollout
metadata:
name: app1
labels:
project: app1
spec:
replicas: 1
selector:
View main.md
package main

var greeting string

func main() {
	err := dogma.WatchFile("/config.json", func(data string) {
		greeting = data
	})
	if err != nil {
@matsumana
matsumana / 0_before.txt
Last active Feb 2, 2017
avans tune up result
View 0_before.txt
# JMH 1.17.4 (released 5 days ago)
# VM version: JDK 1.8.0_111, VM 25.111-b14
# VM invoker: /Library/Java/JavaVirtualMachines/jdk1.8.0_111.jdk/Contents/Home/jre/bin/java
# VM options: <none>
# Warmup: 10 iterations, 1 s each
# Measurement: 5 iterations, 1 s each
# Timeout: 10 min per iteration
# Threads: 1 thread, will synchronize iterations
# Benchmark mode: Throughput, ops/time
# Benchmark: me.geso.avans.jackson.JacksonJsonParamReaderBenchmark.bench
View jetty-http.xml
$ diff -ur ./etc/jetty-http.xml.org ./etc/jetty-http.xml
--- ./etc/jetty-http.xml.org 2015-11-07 03:07:34.000000000 +0900
+++ ./etc/jetty-http.xml 2016-05-13 18:49:56.000000000 +0900
@@ -39,6 +39,7 @@
<Set name="soLingerTime"><Property name="jetty.http.soLingerTime" deprecated="http.soLingerTime" default="-1"/></Set>
<Set name="acceptorPriorityDelta"><Property name="jetty.http.acceptorPriorityDelta" deprecated="http.acceptorPriorityDelta" default="0"/></Set>
<Set name="acceptQueueSize"><Property name="jetty.http.acceptQueueSize" deprecated="http.acceptQueueSize" default="0"/></Set>
+ <Set name="inheritChannel"><Property name="jetty.http.inheritChannel" deprecated="http.inheritChannel" default="true"/></Set>
</New>
</Arg>
View print_nashorn_version.groovy
import javax.script.ScriptEngineManager
new ScriptEngineManager().engineFactories
.findAll{it.languageName == "ECMAScript"}
.each {
println "Engine: ${it.engineName}, Version: ${it.engineVersion}"
println "Language: ${it.languageName}, Version: ${it.languageVersion}"
}
@matsumana
matsumana / 00_ejs-react.txt
Last active Jan 16, 2016
ejs + React (改修後)
View 00_ejs-react.txt
15:11:18 type:score success:28335 fail:15 score:6125
15:12:34 type:score success:60380 fail:0 score:13047
15:13:50 type:score success:92260 fail:2 score:19931
15:15:06 type:score success:107740 fail:0 score:23276
15:16:22 type:score success:144930 fail:0 score:31309
15:17:39 type:score success:146190 fail:0 score:31582
15:18:55 type:score success:162170 fail:0 score:35033
15:20:12 type:score success:159530 fail:0 score:34463
15:21:28 type:score success:164460 fail:0 score:35528
15:22:46 type:score success:167830 fail:0 score:36255
@matsumana
matsumana / gist:7fa64acdfa80805f9461
Created Jan 9, 2016
Thymeleaf + React ベンチマーク
View gist:7fa64acdfa80805f9461
14:58:16 type:info message:launch benchmarker
14:58:16 type:warning message:Result not sent to server because API key is not set
14:58:16 type:info message:init environment
14:58:24 type:info message:run benchmark workload: 8
14:58:34 type:fail reason:Connection timeout method:GET uri:/
14:58:34 type:fail reason:Connection timeout method:GET uri:/
14:58:34 type:fail reason:Connection timeout method:GET uri:/
14:58:34 type:fail reason:Connection timeout method:GET uri:/
14:58:34 type:fail reason:Connection timeout method:GET uri:/
14:58:34 type:fail reason:Connection timeout method:GET uri:/
View gist:d7b0cb15bcf1e3f5f1ad
java version "1.8.0_40"
Java(TM) SE Runtime Environment (build 1.8.0_40-b25)
Java HotSpot(TM) 64-Bit Server VM (build 25.40-b25, mixed mode)
[C] ALPN protocols [http/1.1, h2] for 64616ca2[SSL_NULL_WITH_NULL_NULL: Socket[addr=matsumana.info/45.55.242.211,port=443,localport=49723]]
[C] ALPN protocol 'h2' selected by server for 64616ca2[SSL_NULL_WITH_NULL_NULL: Socket[addr=matsumana.info/45.55.242.211,port=443,localport=49723]]
Exception in thread "main" java.lang.IllegalAccessError: tried to access field sun.security.ssl.Handshaker.algorithmConstraints from class sun.security.ssl.ClientHandshaker
@matsumana
matsumana / gist:7aff31f5c6b95b39073f
Created Oct 29, 2015
Redis ClusterのVagrantfile
View gist:7aff31f5c6b95b39073f
# -*- mode: ruby -*-
# vi: set ft=ruby :
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.define "node0" do |node0|
node0.vm.box = "CentOS-6.6-x86_64-redis3.0"
node0.vm.network :private_network, ip: "192.168.33.10"
node0.vm.hostname = "centos6-redis-node0"
View gist:d55e5035e948b0f41a0b

before

jvm param

#!/bin/bash

java \
\
-Xms2g \
You can’t perform that action at this time.