The Issue of the Day Before

過濾 ps 輸出不要包含 grep 自己

在使用 ps 指令查詢目前執行的 process 時,為方便通常會搭配 grep 指令來過濾結果。 但因為 grep 本身也是一個 process ,所以常常過濾的結果還會包含 grep 指令本身。 這可能不是我們想要的。那應該如何下指令?

用 AsciiMath 在瀏覽器上寫數學公式

<script >
      MathJax = {
        loader: {
          load: ['input/asciimath']
        },
        asciimath: {
          delimiters: [['\\$', '\\$']]
        }
      }
</script>
<script type="text/javascript" id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3.2.0/es5/mml-chtml.js"></script>

PM2 watch 沒作用

echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p