Archive for the 'cli' Category

Google Analytics API via cURL

I spend a lot of time in Google Analytics creating custom reports for various things. I usually start with Google Analytics Query Explorer to make sure I’m getting the right data before creating a script to pull in the data for the report. Once I’ve got a good result set, I’ll use cygwin with cURL […]

Read lines in a text file with bash

In bash it’s very easy to read a text file line by line and do something to each line. I do this in cygwin a lot to parse logs and other large files. Your input file needs to have unix-style line endings or bash will get very confused. This trips me up a lot when […]

Add a Send To for Sysinternals Contig

One of my favorite tools is Sysinternals’ (Microsoft) Contig commandline utility to make files contiguous. However, it’s a pain having to type the full path to the file or directory you want to contig, so I fooled around until I came up with these two tricks: To create a Send To item that will contig […]

UnixKit-tiny

11/11/2012 Quad Lasers is now gone & the Wayback Machine can’t display the page due to a robots.txt so here’s the readme.txt file & a link to download a copy of  unix-kit.zip. Download for unixkit-tiny These utilities were gleaned from: http://gnuwin32.sourceforge.net Source of most of the non-archiver stuff, plus the archivers ‘arc’, ‘arj’, ‘bzip2’, ‘gzip’, ‘tar’, […]

Time & Date stamp for batch files

This has been driving me crazy – how to get a decent Time & Date stamp in a batch file. After much Googling and experimenting I came up with this.  This was tested on XP Pro with English (United States) Regional Settings and will likely not work if your Regional Settings are different. Take a […]