Skip to content

Instantly share code, notes, and snippets.

View jeonguk's full-sized avatar
🎯
Focusing

jeonguk jeonguk

🎯
Focusing
View GitHub Profile
@jeonguk
jeonguk / Apache-Bench.txt
Created July 18, 2019 22:20
Apache Bench Post Sample
# post_loc.txt contains the json you want to post
# -p means to POST it
# -H adds an Auth header (could be Basic or Token)
# -T sets the Content-Type
# -c is concurrent clients
# -n is the number of requests to run in the test
ab -p post_loc.txt -T application/json -H 'Authorization: Token abcd1234' -c 10 -n 2000 http://example.com/api/v1/locations/
---
buildscript {
ext {
springBootVersion = '2.1.5.RELEASE'
}
repositories {
mavenCentral()
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
}
@jeonguk
jeonguk / wrk_option.md
Created December 25, 2018 06:15
wrk options

wrk -t 12 -c 40 -d 30s http://localhost:8080/index.html

-t : 쓰레드 갯수
-c : 동접 갯수
-d : 테스트 시간
-s : Lua 스크립트를 실행할 수 있다.
  • 12개의 스레드로 40개의 연결을 유지하면서 30초 동안 localhost:8080/index.html 문서를 요청한다.
@jeonguk
jeonguk / .zshrc
Created November 25, 2018 15:18
GO .zshrc PATH
# Set variables in .zshrc file
# don't forget to set path correctly!
export GOPATH=$HOME/golang
export GOROOT=/usr/local/opt/go/libexec
export PATH=$PATH:$GOPATH/bin
export PATH=$PATH:$GOROOT/bin
@jeonguk
jeonguk / zshrc
Created November 16, 2018 14:59
zshrc
export CLICOLOR=1
export LSCOLORS=exfxcxdxbxegedabagacad; # It is the default value on OSX, so this line can be omitted
@jeonguk
jeonguk / zshrc
Created November 16, 2018 11:31
zshrc
#.bash_profile
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
export TERM="xterm-256color"
export PATH=/opt/local/bin:/opt/local/sbin:$PATH
export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_161.jdk/Contents/Home
@jeonguk
jeonguk / vimrc
Created November 16, 2018 11:26
vimrc
"=== INDENT ===
"set autoindent
"set cindent
"set smartindent
set tabstop=4
set expandtab
set shiftwidth=4
set ts=4
set ai
@jeonguk
jeonguk / open-feign-maven-config.xml
Created September 11, 2018 13:41
openfeign maven config
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-openfeign</artifactId>
<version>2.0.1.RELEASE</version>
<exclusions>
<exclusion> <!-- declare the exclusion here -->
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-netflix-ribbon</artifactId>
</exclusion>
<exclusion> <!-- declare the exclusion here -->
@jeonguk
jeonguk / open-feign-maven-config.xml
Created September 11, 2018 13:40
openfeign maven config
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-openfeign</artifactId>
<version>2.0.1.RELEASE</version>
<exclusions>
<exclusion> <!-- declare the exclusion here -->
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-netflix-ribbon</artifactId>
</exclusion>
<exclusion> <!-- declare the exclusion here -->
@jeonguk
jeonguk / my.cnf
Created August 27, 2018 02:03
MySQL Configuration utf8mb4 setting
[client]
default-character-set = utf8mb4
[mysql]
default-character-set = utf8mb4
[mysqld]
character-set-server=utf8mb4
collation-server=utf8mb4_general_ci
log_timestamps=SYSTEM