Skip to content

Instantly share code, notes, and snippets.

View steffstefferson's full-sized avatar

Stef Chäser steffstefferson

  • Swiss Post
  • Berne, Switzerland
View GitHub Profile
@barahilia
barahilia / run-jasmine.js
Last active March 24, 2022 11:38 — forked from dlidstrom/run-jasmine.js
Runs Jasmine tests using PhantomJS. Adapted for use within TeamCity..Compatible with Jasmine 2.0.
var system = require('system'),
env = system.env;
/**
* Wait until the test condition is true or a timeout occurs. Useful for waiting
* on a server response or for a ui change (fadeIn, etc.) to occur.
*
* @param testFx javascript condition that evaluates to a boolean,
* it can be passed in as a string (e.g.: "1 == 1" or "$('#bar').is(':visible')" or
* as a callback function.
@mu88
mu88 / DeleteGitTags.ps1
Last active July 19, 2022 07:32
Delete several tags from Git repo
#!/usr/bin/pwsh
Clear-Host
$repository = "<<Git repository path to work on>>"
$releaseName = "<<Name of release>>"
$tagsToKeep = @("<<Tag to keep>>")
Set-Location -Path $repository