CharlyBr on Sep 22nd, 2008About user agent strings
I was surprised when I saw the length of the Chrome user agent string last week:
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/525.13 (KHTML, like Gecko) Chrome/0.X.Y.Z Safari/525.13
And in our logs:
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/525.13 (KHTML, like Gecko) Chrome/0.2.149.29 Safari/525.13
a user agent string of 119 characters. It looks quite a waste of [...]
CharlyBr on Sep 16th, 2008Using Logcheck
Logcheck is a tool to parse system logs and send summaries by email. It filters out logs with a regular expressions database to suppress common/normal entries.
Are you reading / checking your log files? Too many servers? logcheck will help you in this task and eliminates the noise.
Installing on Debian
# apt-get install logcheck
Reading package lists… Done
Building [...]
CharlyBr on Sep 11th, 2008The unix touch command
This post is a quick ref on the linux touch command. All the examples have been tested on Linux.
This command is used to update the access and modification times of files.
touch’s syntax
touch [option] file_name(s)
touch file1 file2 file3
Here some examples:
# touch /tmp/file
# ls -l /tmp/file
rw-r–r– 1 charlybr charlybr 0 Sep 10 16:13 /tmp/file
Update access and modification [...]