This comes in very handy. To get a log slice from a given date to the end: # sed -n ‘/15\/Nov\/2010/,$ p’ /path/to/access_log Or, get a log slice in a given date range: # sed -n ‘/5\/Nov\/2010/,/5\/Dec\/2010/ p’ /path/to/access_log Do something like this to filter and sort the results: # awk ‘{print $2,$6}’ access_log |… Continue reading Quickie sed and awk to slice up Apache logs
Author: Rolf Kaiser
Symlinks, Apache, and Windows
One of the main advantages that Linux holds over Windows is, in my opinion, symlinks and that they just work. Whatever process you want to follow them, simply does because they’re implemented at such a deep level of the OS. On Windows, on the other hand, default symbolic links (the ones you create by right-clicking… Continue reading Symlinks, Apache, and Windows
Jake 2.0 Released
In 2009 I posted an enhancement to the Jake Joomla component that allowed for the use of ordinary CakePHP URL’s to enhance readability and SEO. However, the component only worked for the current stable versions of CakePHP and Joomla (1.3 and 1.5, respectively). Since then, there have been major upgrades to both those projects and… Continue reading Jake 2.0 Released
Setting up Smart HTTP for Git on Virtualmin
I set up Virtualmin with the default git repository module and was able to push and pull over normal HTTP with no problem. However, to my dismay I later found out that none of the git hooks (specifically the all-important post-receive) were executing as per this link. From here the solution was to switch from… Continue reading Setting up Smart HTTP for Git on Virtualmin
Migrating an Amazon server to a new region
Once my free trial ran out, I decided to move to the Oregon region which was somewhat cheaper than California. In doing so, I was rather surprised at how tricky it is to move an AWS server from one region to the next. After a number of false starts, here’s how to do it: First,… Continue reading Migrating an Amazon server to a new region