Skip to content

Instantly share code, notes, and snippets.

View munkyjunky's full-sized avatar

Simon W munkyjunky

View GitHub Profile
@munkyjunky
munkyjunky / nightwatch-coverage.js
Created May 5, 2016 21:01
Coverage collection for Nightwatch.js browser tests
/**
* Dependencies: js-yaml (for reading .istanbul.yml)
*
* Nightwatch coverage collection for browser testing, and writes the collected reports to the nightwatch
* reports folder. These reports can then be used in conjunction with istanbul report to generate coverage
* reports.
*/
var fs = require('fs');
var path = require('path');
var yaml = require('js-yaml');
@munkyjunky
munkyjunky / Octopus-Teamcity.ps1
Last active July 22, 2020 18:21
Powershell script to trigger a TeamCity build from Octopus Deploy, and wait for the build to finish
# Powershell script to trigger a Team City build from Octopus Deploy, and wait for it to be finished
# Use case for this is running an automated script (such as test scripts) from Team City as part of
# a deployment, and holding the deployment until the script has finished
# teamcity-host teamcity host url
# teamcity-username teamcity api username
# teamcity-password teamcity api password
# teamcity-build-configuration-id teamcity build configuration
# teamcity-changeset (optional) changeset to build from - NOTE: this is a VCS changeset
@munkyjunky
munkyjunky / combined
Last active March 20, 2016 21:20
DVD Rip Script
#!/bin/bash
##### VARIABLES #####
# LOCATIONS
SOURCE_DRIVE=/dev/sr0
OUTPUT_DIR=/tmp/ripdvd
MOVIES_DIR=/media/sdc/movies
TELEVISION_DIR=/media/sdd/television