Skip to content

Instantly share code, notes, and snippets.

View seongilp's full-sized avatar
๐Ÿฅ•

Seongil Park seongilp

๐Ÿฅ•
View GitHub Profile
@seongilp
seongilp / ab.sh
Created March 23, 2020 23:52
ab.txt
ab -v 2 -r -n 2000000 -c 64 http://service-unsecure-zzhao.0822-3yz.qe.rhcloud.com/ > hello.log
Completed 200000 requests
Completed 400000 requests
Completed 600000 requests
Completed 800000 requests
Completed 1000000 requests
Completed 1200000 requests
Completed 1400000 requests
Completed 1600000 requests
Completed 1800000 requests
@seongilp
seongilp / openshift.md
Created March 22, 2020 11:43
OpenShift AIO

OpenShift AIO

Command

$ yum install wget git net-tools bind-utils iptables-services bridge-utils bash-completion kexec-tools sos psacct
$ yum -y update
$ yum -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm 
$ sed -i -e "s/^enabled=1/enabled=0/" /etc/yum.repos.d/epel.repo
$ yum install centos-release-openshift-origin311.noarch -y 
$ yum install openshift-ansible ansible -y 
$ yum install ntp tuned -y
@seongilp
seongilp / centos.md
Created March 22, 2020 11:41
CentOS

CentOS configuration

/etc/sudoers ์ˆ˜์ • yum -y update yum -y install wget git curl net-tools

export LC_ALL=โ€œen_US.UTF-8โ€

export PATH=$PATH:/usr/local/bin

@seongilp
seongilp / exchange.txt
Created March 22, 2020 11:40
Exchange ๊ด€๋ฆฌ
# Exchange ๊ด€๋ฆฌ ๋…ธํŠธ
[์ค€๋ฒ”์ด์˜ ์ง€์‹ ์ฐฝ๊ณ .. :: ์ค€๋ฒ”์ด์˜ ์ง€์‹ ์ฐฝ๊ณ ..](http://hope.pe.kr)
Test-replicationheatlh
Get-mailboxdatabasecopystatus
Get-MailboxDatabaseCopyStatus * | where {$_.ContentIndexState -eq "Failed"} | Update-MailboxDatabaseCopy -CatalogOnly
@seongilp
seongilp / tips.txt
Created March 22, 2020 11:39
SSH Tips
/etc/ssh/sshd_config
Subsystem sftp internal-sftp
Systemctl restart ssh
rsync -avz

Cron์„ ์‚ฌ์šฉํ•˜์—ฌ ๋ฆฌ๋ˆ…์Šค ์‹œ์Šคํ…œ ์‹œ์ž‘ ์‹œ ๋ช…๋ น์–ด ์‹คํ–‰ํ•˜๊ธฐ

@reboot์ด๋ผ๋Š” ๋ฌธ์ž์—ด์„ ๋ช…๋ น์–ด ์•ž์— ๋ถ™์ด๋ฉด ์‹œ์Šคํ…œ ์‹œ์ž‘์‹œ ํ•ด๋‹น ๋ช…๋ น์–ด๋ฅผ cron์ด ์‹คํ–‰ํ•œ๋‹ค. @reboot forever start /home/user/launch.json 0 1 * * * execute_me.sh

https://techbloc.net/archives/3716
# OpenShift 3.1 to OpenShift 3.9:
journalctl -u atomic-openshift-master-api
journalctl -u atomic-openshift-master-controllers
journalctl -u atomic-openshift-node
journalctl -u etcd # or 'etcd_container' for containerized install
# OpenShift 3.10 and later versions:
/usr/local/bin/master-logs api api
@seongilp
seongilp / kubeflow.sh
Created November 5, 2019 11:32
kubeflow
# in vm
$ sudo apt-get update
$ sudo apt-get install -y git snap vim docker.io
$ sudo snap install microk8s --classic --channel=1.13/stable
$ sudo usermod -a -G microk8s ${USER}
# re login
# add alias to profile
alias k=microk8s.kubectl
alias kubectl=microk8s.kubectl
@seongilp
seongilp / ML.md
Created October 19, 2019 14:06
๋จธ์‹ ๋Ÿฌ๋‹ ๊ณต๋ถ€

์ง€๊ธˆ๊นŒ์ง€ ๋จธ์‹ ๋Ÿฌ๋‹์„ ํ•™์Šตํ•˜๋ฉด์„œ ์ •๋ฆฌํ•œ ๋‚ด์šฉ๋“ค์„ ๊ณต์œ ํ•˜๋ ค๊ณ  ํ•ฉ๋‹ˆ๋‹ค. ์—ฌ๊ธฐ๋Š” ๊ณ ์ˆ˜๋ถ„๋“ค์ด ๋งŽ์•„์„œ ๋„์›€์ด ๋  ์ง€ ๋ชจ๋ฅด๊ฒ ์Šต๋‹ˆ๋‹ค. TT ๋ธ”๋กœ๊ทธ ์ œ๋ชฉ์€ '๋ง‰๋ผ๋จน์€ ์—”์ง€๋‹ˆ์–ด์˜ ๋จธ์‹ ๋Ÿฌ๋‹ ๊ฐœ๋ฐœ' ์ž…๋‹ˆ๋‹ค. ๋ˆ์„ ์ข‹์•„ํ•˜๊ณ  ๊ณผ๋„ํ•œ ์—…๋ฌด์—์„œ ํƒˆ์ถœ(?)์„ ๊ฟˆ๊พธ๋ฉฐ ์ƒˆ๋กœ์šด ๊ธฐ์ˆ ์„ ๋ฐฐ์›Œ ๋‚˜๊ฐ€๋Š” ์—”์ง€๋‹ˆ์–ด์˜ ์ž…์žฅ์—์„œ ๊ธ€์„ ์ผ์Šต๋‹ˆ๋‹ค. ๋ง‰๋ผ๋จน์€(?) ์—”์ง€๋‹ˆ์–ด๋ผ ๊ฒฝ์–ด์ฒด๋ฅผ ์‚ฌ์šฉํ•˜์ง€ ์•Š์•˜์Šต๋‹ˆ๋‹ค.
ํŠน์ง•์€ ๋‹ค์Œ๊ณผ ๊ฐ™์Šต๋‹ˆ๋‹ค.

  1. ๋ฌธ์ œ ํ•ด๊ฒฐ ์ค‘์‹ฌ
    ๊ณ ๊ฐ์ด๋‚˜ ๋ณด์Šค๊ฐ€ ๋ฌธ์ œ๋ฅผ ์ฃผ๊ณ  ์—”์ง€๋‹ˆ์–ด๊ฐ€ ์ด๋ฅผ ํ•ด๊ฒฐํ•˜๋Š” ๊ณผ์ •์œผ๋กœ ๊ตฌ์„ฑ๋˜์–ด ์žˆ์Šต๋‹ˆ๋‹ค. ์ด๋ก ์ ์ธ ์„ค๋ช… ๋ณด๋‹ค๋Š” ๋ชจ๋ธ๋ง๊ณผ ์•Œ๊ณ ๋ฆฌ๋“ฌ ์ฝ”๋”ฉ์— ์ค‘์ ์„ ๋‘์—ˆ์Šต๋‹ˆ๋‹ค.

  2. ๊ตฌ๊ธ€ ์ฝ”๋žฉ๊ณผ ์—ฐ๋™
    ํฌ์ŠคํŠธ์— ์žˆ๋Š” ์ฝ”๋“œ๋Š” ๊ตฌ๊ธ€ ์ฝ”๋žฉ์„ ํ†ตํ•ด์„œ ์‹คํ–‰ํ•˜๊ณ  ๊ฒฐ๊ณผ๋ฅผ ํ™•์ธํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. ์ฝ”๋“œ๋ฅผ ๋‹ค์šด๋กœ๋“œํ•˜๊ณ  ๊ฐœ๋ฐœํˆด์„ ์„ค์น˜ํ•  ํ•„์š”๊ฐ€ ์—†์Šต๋‹ˆ๋‹ค. ๋ธŒ๋ผ์šฐ์ €์—์„œ ๋ฐ”๋กœ ์‹คํ–‰์ด ๊ฐ€๋Šฅํ•ฉ๋‹ˆ๋‹ค.