'뱅뱅이론'
남들이 얘기하길래 찾아본 이론이다.
역시 내 생각과 실제는 다른 것 같다.
http://www.ddanzi.com/ddanziNews/141355230
http://news.donga.com/3/all/20130730/56737249/1
http://www.fashionchannel.co.kr/main/news.php?table=papernews&query=view&uid=5566
'뱅뱅이론'
남들이 얘기하길래 찾아본 이론이다.
역시 내 생각과 실제는 다른 것 같다.
http://www.ddanzi.com/ddanziNews/141355230
http://news.donga.com/3/all/20130730/56737249/1
http://www.fashionchannel.co.kr/main/news.php?table=papernews&query=view&uid=5566
pyenv 정리하다가 실수로 .pyenv를 삭제할 수 있다.
pip 실행시 아래와 같이 로그가 나오면...
/Users/samuel.kim/.pyenv/shims/pip: line 21: /usr/local/Cellar/pyenv/1.2.7/libexec/pyenv: No such file or directory
/Users/samuel.kim/.pyenv/shims/pip: line 21: /usr/local/Cellar/pyenv/1.2.7/libexec/pyenv: No such file or directory
-bash: /Users/samuel.kim/.spark/venv/bin/python3: No such file or directory
-bash: /Users/samuel.kim/.spark/venv/bin/activate: No such file or directory
pyenv rehash를 실행하면 pyenv 환경이 제대로 되고 위 에러가 발생하지 않는다.
늘 자주 사용하긴 하지만
kafka-01.internal.google.com에서 kafka-20.internal.google.com까지의 ip 주소를 얻고 싶다면
number=0; for i in $(seq 1 20); do if [ $i -le 9 ]; then number=0$i ; else number=$i ; fi ; ping -c1 -t 1 kafka-$number.internal.google.com ; done
결과는 나오지만 지저분하게 나오려면 다음처럼 awk를 써서 처음 라인의 호스트와 ip만 나오게 한다.
number=0; for i in $(seq 1 20); do if [ $i -le 9 ]; then number=0$i ; else number=$i ;fi ; ping -c1 -t 1 kafkatest-$numberr.internal.google.com | awk 'NR==1{print $2$3 ; exit}' ; done
kafkatest-17.internal.google.com(1.1.1.1
...
apt-get/yum : non-interactive (0) | 2019.08.10 |
---|---|
[리눅스] pip, pipenv 설치하기 (0) | 2019.06.05 |
dirname: illegal option -- b 에러 (0) | 2019.01.21 |
디스크 볼륨 추가/마운트 (/etc/fstab, blkid) (0) | 2017.12.20 |
ssh - administratively prohibited: open failed (0) | 2017.09.15 |