Skip to content

Instantly share code, notes, and snippets.

View matsumana's full-sized avatar

Manabu Matsuzaki matsumana

View GitHub Profile
(llnode) v8 bt
* thread #1: tid = 1190, 0x00001d21df54a4b0, name = 'node', stop reason = signal SIGSTOP
* frame #0: 0x00001d21df54a4b0 (anonymous)(this=0x21d2a68404b1:<undefined>) at /app/dist/bundle.js:7:243 fn=0x000030184bba2ab1
frame #1: 0x000000000138cafc <adaptor>
frame #2: 0x00000000013934a4 (this=0x30184bba2d71:<Object: s>, 0x3735bb9eab21:<Object: IncomingMessage>, 0x3735bb9ebce9:<Object: ServerResponse>, 0x3735bb9edc71:<function: s at /app/dist/bundle.js:2:57364>) at /app/dist/bundle.js:2:56122 fn=0x00001f7fec213249
frame #3: 0x00000000013934a4 s(this=0x21d2a68404b1:<undefined>, 0x21d2a68404b1:<undefined>) at /app/dist/bundle.js:2:57364 fn=0x00003735bb9edc71
frame #4: 0x00000000013934a4 (this=0x30184bba2ae9:<Object: p>, 0x3735bb9eab21:<Object: IncomingMessage>, 0x3735bb9ebce9:<Object: ServerResponse>, 0x3735bb9ec2e9:<function: w at /app/dist/bundle.js:2:52407>) at /app/dist/bundle.js:2:57215 fn=0x000003c67bd9e051
frame #5: 0x00000000013934a4 (this=0x30184bba2be1:<Object: s>, 0x3

サンプルソース

$ cat package.json
{
  "dependencies": {
    "config": "^3.3.6"
  }
}
const f = () => {
const arr = new Array();
for (let i = 0; i < 1000000; i++) {
arr.push((Math.random() * 100) | 0);
}
let sum = 0;
for (let i = 0; i < arr.length; i++) {
const value = arr[i];
sum += value;
---
apiVersion: argoproj.io/v1alpha1
kind: Rollout
metadata:
name: app1
labels:
project: app1
spec:
replicas: 1
selector:
@matsumana
matsumana / 0_before.txt
Last active February 2, 2017 04:23
avans tune up result
# 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
# JavaEE7
http://www.slideshare.net/OracleMiddleJP/java-ee-7-detail/6
# Maven
http://www.techscore.com/tech/Java/ApacheJakarta/Maven/3/
# Thymeleaf
http://www.thymeleaf.org/doc/html/Using-Thymeleaf.html
http://bufferings.hatenablog.com/entry/2013/04/04/013817
http://tech.nulab.co.jp/2012/02/thymeleaf/
@matsumana
matsumana / httpd.spec
Created July 9, 2013 17:23
SL6.3 httpd-2.2.15-28.sl6.src.rpm用
%define contentdir /var/www
%define suexec_caller apache
%define mmn 20051115
%define vstring Scientific Linux
%define mpms worker event
Summary: Apache HTTP Server
Name: httpd
Version: 2.2.15
Release: 28.sl6
@matsumana
matsumana / gist:5566690
Last active December 17, 2015 06:38
Linuxのパーティション作成〜マウント (Amazon Linuxの場合)
■デバイス・パーティションを確認
$ cat /proc/partitions
■パーティション作成
$ sudo fdisk /dev/xvdg
$ sudo fdisk /dev/xvdh
$ sudo fdisk /dev/xvdi
$ sudo fdisk /dev/xvdj
$ sudo fdisk /dev/xvdk
@matsumana
matsumana / gist:4078402
Created November 15, 2012 12:25
Fluentd受信側 fluent-plugin-rewrite版とfluent-plugin-rewrite-tag-filter版のdiff
% diff fluent_aggregate_rewrite.conf fluent_aggregate_rewrite-tag-filter.conf
6,23c6,11
< type rewrite
< add_prefix rewrited
< <rule>
< key path
< pattern \.(gif|jpe?g|png|ico|css|js)$
< ignore true
< </rule>
< <rule>
@matsumana
matsumana / fluent_web.conf
Created November 15, 2012 11:32
FluentdのWebサーバ用設定ファイル
<source>
type tail
path /var/log/httpd/access_log
pos_file /var/lib/fluent/access_log.pos
# apacheのログフォーマットは以下 (デフォルトの末尾に%Dを付けただけ)
# LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %D" combined
format /^(?<host>[^ ]*) [^ ]* (?<user>[^ ]*) \[(?<time>[^\]]*)\] "(?<method>\S+)(?: +(?<path>[^ ]*) +\S*)?" (?<status>[^ ]*) (?<size>[^ ]*)(?: "(?<referer>[^\"]*)" "(?<agent>[^\"]*)" (?<response>[^ ]*))?$/
time_format %d/%b/%Y:%H:%M:%S %z