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 +파일크기
This uses the geolocation function to get the user’s location. If permission is denied or the browser does not support geolocation, it uses the Naver API to determine the location from the IP address. Before using this, get an API…
How to Use Launch the program. Click the File button, enter the commands as shown below, and save the file. (If you have multiple accounts, repeat these steps.) [php] # Connect to the account to create the backup files. ssh://{아이디}:{패스워드}@{아이피}:{포트}…
A plugin created to easily find backdoors (PHP) secretly installed to hack servers. It finds files containing functions that can be exploited in PHP and notifies you by email. You can easily install and use it with WordPress and…
This is the method currently used at Kilho.net to integrate WordPress and Gnuboard. I had planned to make the source code public after stabilizing the site a bit more, but I’m posting this hastily put-together version in response to a…
When using an Amazon server, retrieving the server IP returns the private IP address. So I made this to get the public IP address. <? if(in_array(substr($_SERVER[’SERVER_ADDR’], 0, 3), array(’172’))) if(strrpos(gethostname(), ’.compute.internal’)!==false) $_SERVER[’SERVER_ADDR’] = file_get_contents(’http://169.254.169.254/latest/meta-data/public-ipv4’); echo $_SERVER[’SERVER_ADDR’]; ?>
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…