Here’s how to empty logs that have grown large.
cat /dev/null > 로그파일명
For reference, here’s how to find files by size.
find ./* -size +파일크기
Here’s how to empty logs that have grown large.
cat /dev/null > 로그파일명
For reference, here’s how to find files by size.
find ./* -size +파일크기
When the “/usr/bin/rm: arg list too long” error occurs while deleting many files You can delete them with the command below. find . | xargs -n 1000 rm -f
Here’s an easy way to use threads in Delphi. Just use synchronize properly 🙂 Function [code lang=”delphi”] uses System.Classes, System.SysUtils, Vcl.Forms; procedure Wait(Proc: TProc); var Thread: TThread; begin Thread := TThread.CreateAnonymousThread(procedure() begin Proc; end); Thread.FreeOnTerminate := True; Thread.Start; while not…
For testing OpenAPI and checking whether the connection information is correct Method, host, and POST values on connection [PHP] <? $log = $_SERVER[‘REQUEST_METHOD’].’ ‘.$_SERVER[‘HTTP_HOST’].$_SERVER[‘REQUEST_URI’].”nn”; foreach($_SERVER as $k => $v) { if($k==’HTTP_HOST’) continue; if(substr($k, 0,5)!=’HTTP_’) continue; $log .= ‘$k: $v’.”n”; }…
Check after server installation short_open_tag = On Allows you to use “<?php” and “<?”. display_errors = On Displays the error message when an error occurs while running a PHP script. (When set to off, an HTTP 500 Internal Server Error…
I used CloudFlare to reduce traffic load, but found that the connection was much slower because its location was LAX (Los Angeles), so I quickly made this to use as a CDN. The server is located in Tokyo (Vultr). The…
We created this tool to monitor whether malicious PHP has been installed through server hacking and to easily check for potentially dangerous code. Write the following code and upload it to your server account. [php] &lt;? /** * Name: Kilho’s…