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 +파일크기
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…
Installed WordPress and still analyzing … I still haven’t gotten used to it ㅠㅠ I spent a lot of time just figuring out how to install the menu, so it was hugely delayed When a submenu item was a page…
Installation environment: CentOS 7 default, PHP 7 yum install gcc-c++ java-1.7.0-openjdk-devel python-devel zlib-devel openssl openssl-devel git -y wget https://www.python.org/ftp/python/3.6.1/Python-3.6.1.tgz tar xf Python-3.* cd Python-3.* ./configure make make altinstall pip3.6 install JPype1-py3 pip3.6 install konlpy cd .. wget https://bitbucket.org/eunjeon/mecab-ko/downloads/mecab-0.996-ko-0.9.2.tar.gz tar zxfv…
Delphi has been updated to version 10.2. This is the initial installation procedure for using it on CentOS 7. [php] # yum -y update # yum install -y firewalld # systemctl unmask firewalld # systemctl enable firewalld # systemctl start…
This shows how to automatically add or remove www when accessing a site. Add this to your .htaccess file. # Add www RewriteCond %{HTTP_HOST} ^(?!www\.)(.+) [NC] RewriteRule ^(.*) http://www.%1/$1 [R=301,NE,L] # Remove www RewriteCond %{HTTP_HOST} ^www\.(.+) [NC] RewriteRule ^(.*) http://%1/$1…
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] <? /** * Name: Kilho’s…