My ZSH, BASH, git, and VIM configuration files, aliases, and daily use scripts.
An open-source Powershell script to customise your prompt colour scheme rather than using the hard-to-change properties dialog, forked from another quality repo. Makes it easy to set new colours to the shell, or reset them back to Windows default! Set up for my favourite editor scheme, Monkai
A script, directly modified from this StackOverflow response, to watch a source code folder and then run a compiler on on modified files. To successfully modify this script, I needed to understand the .NET object IO.FileSystemWatcher, PowerShell’s Register-ObjectEvent, and PowerShell’s ScriptBlock concept, which are akin to anonymous functions or closures.
The script is written to compile Sass files for web design, but could work with any language’s command line compiler. The reason needed this script is because the –watch feature of Sass wasn’t behaving properly on Windows 10, and none of the solutions I found fixed the issues, so I scripted a solution to watch it myself. It’s better to create a solution than to give up!
This automation script was created to quickly access multiple records in a web-based database. The requirement was to search for a numeric ID, update some properties in the resultant HTML form via the DOM, save, and print the results. Initially developed with a co-worker, the finalized script was revised, debugged, commented, and tested by me for final use by the team on a whole. VBScript was chosen for compatibility with Windows.
Functions include: connect to an Internet Explorer COM object, load a page into IE, wait for pages to load and properly reconnect to page, read information from an HTML form’s DOM, submit information into the page, write to log files, read and write to CSV files, print web pages, & get verified input from user.
(Script has been modified to remove identifying information, but core VBScript methods to work with IE COM objects and the HTML DOM are left intact for reference.)
A script to resize a directory of images destined for a web site into web-friendly sizes and matching thumbnails. Uses vbscript to walk the directory structure and process filenames, and the Windows Image Acquisition framework to perform the resizing.
A script to write a nested XML file based on file names and properties of a hierarchical directory tree. Uses WIA to read jpeg EXIF data, and then writes those properties to a file, keeping track of the XML tags and indentation level. This is a simple script, and the tags are hard coded into the vbscript, but I built the script with some generic functions and the idea that it could be extended. The purpose of this script is to build an XML document to describe an album of geotagged pictures for a map.