Excellent GIF capture tool for windows, optionally comes as portable executable!
TIL; When using Visual Studio ‘Find & Replace’, regex match groups used within the search term, can be referenced numerically in the replacement term using the $ symbol. The example below adds spaces between function parameters:
SomeFunctionCall(param1, param2, param3);
- Small installation file
- Clean and simple user interface
- Quick file indexing
- Quick searching
- Minimal resource usage
- Real-time updating
Colorcop is a neat colour picking tool for Windows, which can be used to sample any colour on screen, presenting it in multiple formats including Hex, RBG float and RGB int. The utility also has support for averaging samples from a 1,3,5×5 kernel, can be minimised to system tray, and also has a bunch of other cool features.
Installation (globally via NPM)
npm install -g node-inspector
Launch script under debugger
Launch script under debugger (+ break on first line)
node --debug-brk app.js
Sometimes it’s enough to add a program or script to the startup folder or scheduled a boot-time task, however if you need to setup a fully fledged Windows Service, the freeware NSSM (Non-Sucking Service Manager) tool can be used to quickly and easily install or remove Windows Services from the command line.
Creating a new Windows Service
The following command will pop-up a nice UI for you to select which program/script you want to run and allow you to tweak additional settings such as Automatic/Manual startup etc:
nssm install "YourNewServiceName"
Removing a Windows Service
The following command permanently un-registers and removes a Windows Service by name:
nssm remove "YourServiceName"
When searching through an entire codebase for a variable it is often useful to limit the search results to those instances where the variables is assigned a new value (or perhaps when the variable is used IN an assignment). This can be achieved with the following regular expressions…
Find usage in an assignment
List full path of all files within current directory recursively (not including directories):
dir /s /b /a-D > files.txt