Apache2-utils usage for performance test
Introducing apache bench
curl 명령어로 brew 를 설치한다
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew 명령어 설치 확인
$ brew --help
brew 업데이트 확인하고 없으면 설치
$ brew update
$ brew install zsh
zsh 버전 확인 (최근의 맥에는 기본 설치가 되어있다.)
$ zsh --version
현재 쉘 프로그램 및 zsh 위치 확인
$ echo $SHELL
/bin/bash
$ which zsh
/usr/local/bin/zsh
zsh로 쉘을 설치 변경했더니 다음과 같은 결과가 나온다면
$ chsh -s /usr/local/bin/zsh
Changing shell for blackdog.
Password for blackdog:
chsh: /usr/local/bin/zsh: non-standard shell
아래의 방법으로 변경한다.
$ ls /bim/zsh
/bin/zsh
chsh -s /bin/zsh
brew uninstall zsh
터미널 세션을 종료하고 새로 실행시켜서 다음과 같다면 변경완료
$ echo $SHELL
/bin/zsh
아래의 경로에 bash쉘이 기본이다. bash 쉘로 되 돌리고 싶다면
chsh -s /bin/bash
oh-my-zsh 를 설치한다( zsh 용 확장 플러그인)
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
.zshrc 파일을 vi 에디터로 편집한다
ZSH_THEME="robbyrussell"
ZSH_THEME="agnoster" # (this is one of the fancy ones)
# you might need to install a special Powerline font on your console's host for this to work
# see https://github.com/robbyrussell/oh-my-zsh/wiki/Themes#agnoster
아래의 코드를 붙여넣고 실행했을 때 똑깥이 출력된다며 정상세팅된 것이다.
$ echo "\ue0b0 \u00b1 \ue0a0 \u27a6 \u2718 \u26a1 \u2699"
± ➦ ✘ ⚡ ⚙
폰트가 깨진다면 패치가 됐거나 다른 테마를 덮어서 해결한다.
세션을 종료하고 다시 쉘을 실행했는데 경로를 나타내는 폰트가 ‘?’ 와 같은 식으로 꺠진다면 아래의 폰트를 설치하고
#clone
git clone https://github.com/powerline/fonts.git
#install
cd fonts
./install.sh
#clean-up a bit
cd ..
rm -rf fonts
Iterm2 에서 “iTerm > Preferences > Profiles > Text” 로 powerline 이 표기 되어있는 폰트로 변경하여 제대로 표현되는지 확인한다.
zsh을 사용하는데 PATH에 뭔가를 추가하고 싶다면
export aaa=file path
export PATH=${PATH}:${aaa}
필자는 기본 터미널은 /bin/bash 다시 적용하고 테마만 적용해 놓았다. 복작한 설정을 필요로하거나 디폴트 셋업이 bash로 되어 있는 툴을 설치하고 사용할 때는 기본쉘을 쓰고 싶을 때는 터미널, 다른 기능을 쓰고 싶을 때만 iTerm2사용하는 셋업으로 구성했다.
Introducing apache bench
Create from files kubectl create configmap helm-config-data --from-file=/root/.helm/repository/repositories.yaml -n usernamespace
Spring doesn’t allow to inject value into static variables, for example:
#Add labels to PV
Retrofit2
Velocity sample source
Setting up NGINX ingress request body size
Setup time zone for helm chart
How to add secret for image registry kubectl create secret docker-registry rediikey --docker-server=<imagerepourl> --docker-username=<username> -...
Add certificates for python through https
How to add user
How to install docker-ce on ubuntu Xenial(16.04) on x86_64
file, diff, grep, find
Mac os sierra dns reset sudo killall -HUP mDNSResponder;sudo killall mDNSResponderHelper;sudo dscacheutil -flushcache;
Jenkins Kubernetes Plugin tips
WGET
CA certificate on linux
Kubernetes kubectl Deployment object usage
Docker Proxy Setup
Samsung-cnct’s How we work
Travel around Seattle - vol.1
안녕하세요? 최근 연구소에서 개발 센터로 둥지를 옮긴 개발혁신팀 Devops Lab의 김광영 프로라고 합니다. 저는 CICD 셀에서 배포툴을 개발하던 중 Global Exchange Program(이하 GEP)에 선발되어 현재 미국 Seattle의 Cloud Native Com...
Ansible Trouble shooting guide
산호세 SDSRA 방문기 및 샌프란시스코 산책하기
맥용 개발 환경 셋업하기 - iTerm2 + zsh + oh-my-zsh