Introduction to algorithms 가장 유명한 알고리즘 입문서이자 개발자 필독서에 항상 꼽히는 책이다. 1300 페이지에 달하는 어마어마한 분량과 엄청난 무게의 압박때문에 쉽사리 손대지도, 막상 손댄다고해도 완독하기 쉽지 않은 책으로도 유명하다. 하지만 명서라고 꼽히는 이유가 있는 만큼 이번 기회에 나름대로 쉽게 정리하면서 읽어 볼 생각이다. 언어 공부도 할 겸 예제 소스는 Go언어로 작성할 생각이다. 영 안맞으면 언제 언어가 바뀔지는 모름... 알고리즘의 역할 알고리즘(Algorithm)이란? 어떤 값이나 값의 집합을 입력으로 받아 또 다른 값이나 값의 집합을 출력하는 잘 정의된 계산 절차 잘 정의된 계산 문제를 풀기 위한 도구 입력과 출력의 관계를 명확하게 나타내기 위한 도구 어떤 문제..
개요스카우터 + 스카우터 웹 UIScouter설치wget https://github.com/scouter-project/scouter/releases/download/v2.6.1/scouter-all-2.6.1.tar.gz최신버전이 필요하면 위의 git url에서 release 중 최신 다운로드다운로드 후 tar zxvf scouter-all-2.6.1.tar.gzserver, host agent, java agent 등 모든게 다 있음.우리는 server만 필요하므로 적당한 곳에다가 server를 위치시킴설정 방법conf/scouter.confnet_http_server_enabled=true // 웹 api를 사용하기 위한 옵션net_http_api_enabled=true // 웹 api를 사용하기 ..
'''Follow these steps to configure the webhook in Slack: 1. Navigate to https://.slack.com/services/new 2. Search for and select "Incoming WebHooks". 3. Choose the default channel where messages will be sent and click "Add Incoming WebHooks Integration". 4. Copy the webhook URL from the setup instructions and use it in the next section. To encrypt your secrets use the following steps: 1. Create ..
Slack API Message formatting 문서 Bash 코드 #!/bin/sh webhook_url=$1 message=$2 severity="" color="" pretext="" if [[ $message == *"Problem"* ]]; then severity="장애" color="#ffa900" else severity="심각" color="#ff0000" fi if [[ $message == *"Recovery"* ]]; then pretext="[$severity]자빅스 에러 복구" color="#00e200" else pretext="[$severity]자빅스 에러 발생" fi curl -k -X POST -d "payload={\"username\":\"서버가터졌어요\", \"..
Solr 이란?Solr는 Apache Lucene을 기반으로 만들어진 오픈소스 검색엔진이다. 검색은 크게 데이터 수집, 데이터 색인, 데이터 검색의 프로세스를 가지는데 Lucene은 색인과 검색 API를 제공해주는 라이브러리다. Solr는 색인과 검색은 Lucene 엔진을 사용하면서 HTTP 처리와 응답을 하는 웹 기반 검색엔진이라고 할 수 있다.자세한 내용은 https://en.wikipedia.org/wiki/Apache_Solr 참고 Solr 설치하기Mac OS X 기준으로 설명 우선 설치하기전에 brew부터 업데이트 해준다. 필수 항목은 아니지만 되도록 업데이트해주는게 좋으니까λ leeda [~] → brew update Updated 2 taps (homebrew/core and homebrew..
1. 데스크탑 GUI 종료하는 법ctrl + alt + f1 을 눌러 로그인 후sudo service lightdm stop 2. GUI 모드대신 CLI모드로 부팅하는 법 2-1. grub 수정vi /etc/default/grub1) GRUB_CMDLINE_LINUX_DEFAULT 라인 #붙여 주석처리2) GRUB_CMDLINE_LINUX="" 라인을 GRUB_CMDLINE_LINUX="text" 로 수정3) 몇줄 아래 '#GRUB_TERMINAL=console' 라인에서 주석처리된 부분을 #제거해서 'GRUB_TERMINAL=console' 로 수정update-grub 명령으로 grub 업데이트2-2 systemctl 변경 systemctl set-default multi-user.target 나중에 ..