Recently I use git for versioning Cisco router/switch configurations. One problem here is the ‘ntp clock-period’ line. Cisco equipments have a clock adjustment value for NTP in their configuration and its value changes without any manual configuration changes. So even though I have made no changes in their configuration, git-diff shows lines like following. -ntp … Continue reading How to make git-diff ignore specific lines→
With the msysGit package (Git for Windows), we can use Git easily under Windows environments. Even if you want repositories on Windows servers, you can make it in shared folders. Yes, you need only shared folders instead of running git-daemon on your server. When you manipulate repositories on shared folders, you can use a syntax … Continue reading Git and Windows Shared Folders→
Though WordPress has wp-cron functionality to do scheduled tasks, I still like Unix crontab to do them. Fortunately, we can write script programs in PHP to run from a command line even if the scripts call WordPress functions. To do WordPress operation in a script, we have to include ‘wp-load.php’ before the operation. Below is … Continue reading WordPress in command line scripts→