Add Hostname, Date, Time, Uptime, Load Average to Linux Terminal Title
This tip is really useful if you need/want to monitor multiple servers at the same time. This Tip works, as the tip, by which you can add...
Read MorePHP CLI Colors – PHP Class Command Line Colors (bash)
PHP Command Line Interface (CLI) has not built-in coloring for script output, like example Perl language has...
Read MorePHP stdClass to Array and Array to stdClass – stdClass Object
I think every PHP coders have come accross Arrays and stdClass Objects (belongs to PHP Predefined Classes). Sometimes it’s very...
Read MoreDelete files securely on Linux – Journaled file systems
Few days ago I write about shred, which work fine for old systems, like EXT2, but not so nice with journaled file systems. Modern file...
Read MoreDelete files permanently with shred command in Linux – Remove absolutely
Sometimes need to delete files whose contents should disappear absolutely, completely and safely. Linux command rm just remove file and it...
Read MoreFormat bytes with PHP – B, KB, MB, GB, TB, PB, EB, ZB, YB converter
Simple PHP function that formats the bytes to the desired form. Possible unit options are: Byte (B) Kilobyte (KB) Megabyte (MB) Gigabyte...
Read MorePHP: Loop through dates (from date to date) with strtotime() function
This is very easy way loop through dates (from date to date) with PHP strtotime() function. This example only echo dates, but of course...
Read MoreHide Apache ServerSignature/ServerTokens/PHP X-Powered-By
By default almost all Apache installation shows sensitive server information with Apache version number, server operating system details,...
Read MoreAdd date and time to Linux terminal title (Gnome Terminal, xterm, urxvt, rxvt)
Here is easy way add date and time to Linux terminal title. This trick works at least following terminals Gnome Terminal, xterm, urxvt,...
Read MoreGoogle search from Linux and UNIX command line
Today I started thinking that how cool is do some Google searches straight from command line. First I try to find some ready tricks from...
Read MoreLinux Tip: How to handle a files with a dash as first character from command line
Sometimes you maybe have to handle files with a dash (-) as first character from Linux command line. It can be difficult, because the...
Read MorePrevent the browsers to use old cached CSS and JS files
Browser cache is very useful when users download the same CSS and JS files multiple times. Some browsers, however, use the old CSS and JS...
Read MorePostgresql (psql) .psqlrc tips and tricks
Psql is a good tool for the PostgreSQL database management and use. Psql client functioning can easily be improved by adding a few lines...
Read More