Category Archives: Code

Shell: Terminating Long-Running Processes


I’m sure everyone has had the experience of a server process that was created by some developer and continues to run indefinitely without ending. This script comes in handy in such situations. When you schedule it to run regularly with tools like crontab, it will terminate these seemingly never-ending processes for you. It’s similar to scripts like Terminating Excessive Apache (httpd) Child Processes and Listing Process Execution Directories.

Continue reading Shell: Terminating Long-Running Processes

[Simulation] the Law of Large Numbers and the Central Limit Theorem


Seeing samples, simulation in other words, is a good way to understand the concept, so I’ll explain with an example. At first, I’ll show the explanation of the law and theorem, and then I’ll provide the example.

Continue reading [Simulation] the Law of Large Numbers and the Central Limit Theorem