How To Print Matching Line and All After Using awk

Author: , August 1st, 2019

Every time I use awk, my respect for it grows! Like grep, find and rsync, it is one of the powerhouse command-line tools in my arsenal. Recently, I needed to list all MySQL binary log files from a starting file forwards in sequence. AWK to the rescue! For example, I knew the starting file was […]

Where are the logs for a Tungsten Cluster?

Author: , July 9th, 2019

Where are the logs for a Tungsten Cluster and which are the proper log files to monitor if I do a master role switch to another node?

How To Show Filenames With git log

Author: , June 3rd, 2019

To display the filenames included in each commit, just add the –name-only argument to git log:

How To Associate All Log Files with MacVim

Author: , April 12th, 2017

You can associate a file extension with an app (such as MacVim) via the “Info dialog”. Just select the file and hit Cmd-i, then go to the “Open with” tab, select app and hit “Change all…”. This will change the default application for that file type.

How To Use Apache Scalp Log Analyzer to Catch Website Attacks

Author: , August 31st, 2015

Requires Python! Scalp Home https://code.google.com/p/apache-scalp/ Download Scalp: https://code.google.com/p/apache-scalp/downloads/detail?name=scalp-0.4.py Backup Link: http://www.wyzaerd.com/scalp/scalp-0.4.py Original (Broken) XML Rules File: https://dev.itratos.de/projects/php-ids/repository/raw/trunk/lib/IDS/default_filter.xml Fixed XML Rules File: http://www.wyzaerd.com/scalp/default_filter.xml To Fix the XML file: Replace: (?:all|distinct|[(!@]*)? with (?:all|distinct|[(!@]+)? and: (?i:(\%SYSTEMROOT\%)) with (?:(\%[sS][yY][sS][tT][eE][mM][rR][oO][oO][tT]\%)) Examples:

Current options: exhaustive: Won’t stop at the first pattern matched, but will test all the patterns tough: Will […]

How To See The GIT History Of A File

Author: , January 30th, 2012

git log -p filename ~or~ git whatchanged -p filename

PainMinder™ Launched!

Author: , August 18th, 2011

Our health-related website is finally live to the public! A long time coming, but worth the effort. The site is FREE, and will handle many health-related tracking tasks quite easily. Naomi and I have worked incessantly to make the site worthy of use. We think it is ready for prime-time. Now let’s see what the […]

How To Troubleshoot Varnish

Author: , January 17th, 2011

To monitor Varnish, simply run: # varnishlog http://www.varnish-cache.org/docs/2.1/reference/index.html http://www.varnish-cache.org/docs/2.1/tutorial/increasing_your_hitrate.html Important Note: By default, Varnish will NOT cache pages that have cookies!!! http://www.varnish-cache.org/trac/wiki/VCLExampleCacheCookies sub vcl_recv { unset req.http.cookie; } sub vcl_fetch { unset beresp.http.set-cookie; }