LUA: urlencode and urldecode phptuts June 30, 2020 function urlencode: function urldecode: Example: Result: Continue Reading
Linux: find files by date range phptuts June 27, 2020 By modification time: Example: By access time: By change time: Example: delete all mp4 files with access time older than 7 days: Note: You can… Continue Reading
Linux: how to run commands on a remote server phptuts June 26, 2020 In some cases, we need run commands on a remote server. Examples: Get disk information Get all running process … Syntax for running commands on… Continue Reading
Hetzner server: how to configure RAID-0 phptuts June 23, 2020 After order a server from Hetzner, you will receive an email with content login SSH Login SSH we will see a message: The server has… Continue Reading
Linux: how to get or delete first line of a file phptuts June 23, 2020 Linux: how to get first line of a file Example: Linux: how to get last line of a file Example: Linux: how to delete first… Continue Reading
Linux: How to check your Local and Public IPv4/v6 address phptuts June 22, 2020 Local IPv4 address Method 1: Method 2: Method 3: Method 4: Method 5: for eth0 interface: Public IPv4 address Method 1: Method 2: Method 3:… Continue Reading
Linux: how to replace contents of file phptuts June 22, 2020 Example we have many html files with content like: How to replace <br> to new line of all html files with a command line in… Continue Reading
Linux: How to generate list of unique lines in a text file phptuts June 22, 2020 We have two methods: Method 1: Method 2: Continue Reading
Linux: How to append contents of multiple files into one phptuts June 22, 2020 Example we have many html file: How to join them into one file? Continue Reading
How to fix Error Nginx: (13: Permission denied) while connecting to upstream phptuts June 21, 2020 How to fix Error Nginx: (13: Permission denied) while connecting to upstream This error is due by SELinux, so, we can fix this error by… Continue Reading