<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>미니옵빠의 code stubs</title>
    <link>https://tod2.tistory.com/</link>
    <description></description>
    <language>ko</language>
    <pubDate>Wed, 6 May 2026 17:48:10 +0900</pubDate>
    <generator>TISTORY</generator>
    <ttl>100</ttl>
    <managingEditor>미니옵빠</managingEditor>
    <image>
      <title>미니옵빠의 code stubs</title>
      <url>https://t1.daumcdn.net/cfile/tistory/237A6F4F550D0C5221</url>
      <link>https://tod2.tistory.com</link>
    </image>
    <item>
      <title>Text File 내 특정 column 기반으로 aggeration (group by) count 출력</title>
      <link>https://tod2.tistory.com/246</link>
      <description>운영 중 자주 사용하는 명령어 기록.
cat access.log | awk '{ print $1 }' | sort -nr | uniq -c | sort -nr -k 1
File 기반 access log 에서, 특정 column 기반으로 aggeration (group by) count 출력. count 높은 순으로 desc.특정 사이트 접속이 많을 때, 접속량이 많은 도메인 추출 등에 활용e.g.아래와 같은 형태의 access log raw 가 있을 때..</description>
      <category>OS/Linux</category>
      <author>미니옵빠</author>
      <guid isPermaLink="true">https://tod2.tistory.com/246</guid>
      <comments>https://tod2.tistory.com/246#entry246comment</comments>
      <pubDate>Wed, 29 Dec 2021 18:17:38 +0900</pubDate>
    </item>
    <item>
      <title>Docker client 실행 시 ca.pem 오류</title>
      <link>https://tod2.tistory.com/245</link>
      <description>Docker 최초 설치 후 client 명령어 실행 시 아래와 같이 인증서 오류가 나는 경우

unable to resolve docker endpoint: open /Users/username/.docker/ca.pem: no such file or directory

Docker client 19.0x 부터 클라이언트에 ca 인증서가 강제되고 있음. (이하 버전에선 no problem)
아무 인증서 파일을 ca.pem 으로 rename, 해당 위치에..</description>
      <category>Docker</category>
      <author>미니옵빠</author>
      <guid isPermaLink="true">https://tod2.tistory.com/245</guid>
      <comments>https://tod2.tistory.com/245#entry245comment</comments>
      <pubDate>Tue, 22 Dec 2020 17:30:50 +0900</pubDate>
    </item>
    <item>
      <title>MongoDB aggregate + unwind + out 조합에서 duplicate ID 오류를 만날 경우</title>
      <link>https://tod2.tistory.com/244</link>
      <description>MongoDB aggregate + unwind + out 조합에서 duplicate ID 오류를 만날 경우projection 시 _id 를 없애면 됨.$out 으로 생성되는 신규 collection 의 PK 로 기존 문서의 _id 가 입력되다보니, unwind 로 array field 가 deconstructs 되었을 때 (left join 처럼) 중복 키가 발생됨. 그래서 _id 를 제거해 버리면, 신규 collection 내 신규 _id 가 생성되..</description>
      <category>Database/MongoDB</category>
      <author>미니옵빠</author>
      <guid isPermaLink="true">https://tod2.tistory.com/244</guid>
      <comments>https://tod2.tistory.com/244#entry244comment</comments>
      <pubDate>Sat, 19 Jan 2019 16:59:10 +0900</pubDate>
    </item>
    <item>
      <title>mongoexport 관련 Tips</title>
      <link>https://tod2.tistory.com/243</link>
      <description>MongoDB 사용 시, 데이터 추출을 위해 mongoexport 를 활용1. aggregate 사용하지 못함가장 기본적인 export 도구이기 때문. 이럴 땐 aggregate 의 $out 기능을 활용하여&quot;집계 결과를 신규 컬렉션에 저장&quot; &amp;gt; &quot;해당 컬렉션을 mongoexport&quot; 로 추출 이라는 절차로 진행2.6+ 이상에서만 가능Ref:&amp;nbsp;https://stackoverflow.com/questions/16468602/mongoexpor..</description>
      <category>Database/MongoDB</category>
      <author>미니옵빠</author>
      <guid isPermaLink="true">https://tod2.tistory.com/243</guid>
      <comments>https://tod2.tistory.com/243#entry243comment</comments>
      <pubDate>Sat, 19 Jan 2019 16:50:32 +0900</pubDate>
    </item>
    <item>
      <title>MongoDB : Sort exceeded memory limit of 104857600 bytes</title>
      <link>https://tod2.tistory.com/242</link>
      <description>mongoDB 에서 aggregate 후 sort 를 할 때 요런 오류 메시지를 만날 때가 있음MongoDB : Sort exceeded memory limit of 104857600 bytes아래와 같이 쿼리 내 allowDiskUse 옵션을 추가하여 해결 가능db.getCollection('hello').aggregate(&amp;nbsp; &amp;nbsp; [&amp;nbsp; &amp;nbsp; &amp;nbsp; {&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $projec..</description>
      <category>Database/MongoDB</category>
      <author>미니옵빠</author>
      <guid isPermaLink="true">https://tod2.tistory.com/242</guid>
      <comments>https://tod2.tistory.com/242#entry242comment</comments>
      <pubDate>Fri, 18 Jan 2019 23:03:44 +0900</pubDate>
    </item>
    <item>
      <title>특정 시간 이상 살아있는 process kill</title>
      <link>https://tod2.tistory.com/241</link>
      <description>apache 의 child process 중 일부가 안 죽고 오래 살아있는 경우가 있어, 거기다 cpu 사용량까지 높아 서버 자원이 부족한 사태가 발생.서버 모니터링 문자 등을 받아 수작업으로 kill 시켜주다가, 귀찮아서 스크립트로 작성.사실 원인 파악을 하고 해결해야 하지만, 여러 복잡한 관계가 얽혀있다보니 임시조치로 -_-방법은 많겠지만 간단하게. 요런 스크립트를 하나 만들어 crontab 돌려두면 됨.참고로 5분 이상 돌고 있으면 죽여버리게 했는..</description>
      <category>OS/Linux</category>
      <author>미니옵빠</author>
      <guid isPermaLink="true">https://tod2.tistory.com/241</guid>
      <comments>https://tod2.tistory.com/241#entry241comment</comments>
      <pubDate>Thu, 3 Jan 2019 15:13:36 +0900</pubDate>
    </item>
    <item>
      <title>개발자 인증서 옮기기</title>
      <link>https://tod2.tistory.com/240</link>
      <description>개발자 인증서 및 PP 는 해당 개발자 인증서&amp;nbsp;+ 해당 mac 기기에 한해 인증됨기기 변경 또는 두 개 이상 기기에서 개발 시, 본래 기기의 키체인에서 필요한 인증서&amp;nbsp; 파일을 export 하여 사용하면 됨Ref:&amp;nbsp;https://soooprmx.com/archives/2260</description>
      <category>App/iOS</category>
      <author>미니옵빠</author>
      <guid isPermaLink="true">https://tod2.tistory.com/240</guid>
      <comments>https://tod2.tistory.com/240#entry240comment</comments>
      <pubDate>Sun, 4 Nov 2018 14:20:43 +0900</pubDate>
    </item>
    <item>
      <title>pm2 cluster 모드 사용 시 log4js 로그 미출력 시</title>
      <link>https://tod2.tistory.com/239</link>
      <description>Node 에서 log4js 를 사용하고, pm2 cluster 모드 사용 시 log4js 로그가 출력되지 않는 현상이 있음.pm2-intercom 을&amp;nbsp;활용하여 해결.pm2 worker 에서는 log4js 출력이 되지 않고, master 프로세스에서만 출력 된다고 합니다.pm2-intercom 에서 logEvent 를 받아 모든 프로세스로 broadcast 해준다고 하네요. 아래 그림 참고.그림 ref: https://github.com/log4..</description>
      <category>Language/Node.js</category>
      <author>미니옵빠</author>
      <guid isPermaLink="true">https://tod2.tistory.com/239</guid>
      <comments>https://tod2.tistory.com/239#entry239comment</comments>
      <pubDate>Sun, 12 Aug 2018 13:39:08 +0900</pubDate>
    </item>
    <item>
      <title>Linux 에서 인증서 만료일 확인 방법</title>
      <link>https://tod2.tistory.com/238</link>
      <description>openssl 로 확인 가능openssl x509 -in ./인증서파일.crt -noout -text</description>
      <category>OS/Linux</category>
      <author>미니옵빠</author>
      <guid isPermaLink="true">https://tod2.tistory.com/238</guid>
      <comments>https://tod2.tistory.com/238#entry238comment</comments>
      <pubDate>Mon, 6 Aug 2018 20:07:54 +0900</pubDate>
    </item>
    <item>
      <title>yarn install 시 node_modules 에 일부 package 가 누락될 때</title>
      <link>https://tod2.tistory.com/237</link>
      <description>yarn install 시 node_modules 에 일부 package 가 누락될 때.대부분 devDependencies 가 빠져있을 것임NODE_ENV=production 설정되었을 때, yarn install 할 경우 devDependencies 가 제외되며&amp;nbsp;production 모드이지만 build 를 위해 devDependencies 가 필요할 경우 아래와 같이 --production=false 옵션을 주어 해결하면 된다.yarn ins..</description>
      <category>Tools/npm, yarn</category>
      <author>미니옵빠</author>
      <guid isPermaLink="true">https://tod2.tistory.com/237</guid>
      <comments>https://tod2.tistory.com/237#entry237comment</comments>
      <pubDate>Wed, 1 Aug 2018 22:44:32 +0900</pubDate>
    </item>
  </channel>
</rss>