Skip to content

Instantly share code, notes, and snippets.

View dalpert-korewireless's full-sized avatar

David Alpert dalpert-korewireless

  • KORE Wireless
  • Winnipeg, Manitoba
View GitHub Profile
// ==UserScript==
// @name JIRA Incident Cleanup
// @namespace http://blog.spinthemoose.com/
// @version 0.1
// @description Adds some helpful capabilities to JIRA
// @author David Alpert
// @match https://koresystemsgroup.atlassian.net/browse/*
// @grant none
// ==/UserScript==
@dalpert-korewireless
dalpert-korewireless / JIRAHelpers.js
Last active October 2, 2015 17:56
TamperMonkey Script
// ==UserScript==
// @name JIRA Helpers
// @namespace http://blog.spinthemoose.com/
// @version 0.1
// @description Adds some helpful capabilities to JIRA
// @author David Alpert
// @match https://koresystemsgroup.atlassian.net/secure/*
// @grant none
// ==/UserScript==
@dalpert-korewireless
dalpert-korewireless / GithubHelpers.js
Last active December 3, 2015 18:44
TamperMonkey Script
// ==UserScript==
// @name Github Helpers
// @namespace http://blog.spinthemoose.com/
// @version 0.3
// @description enter something useful
// @author David Alpert
// @match https://github.com/RacoWireless/*/pull*/*
// @grant none
// ==/UserScript==
@dalpert-korewireless
dalpert-korewireless / TeamCityHelpers.js
Last active January 4, 2016 22:40
Tampermonkey script
// ==UserScript==
// @name TeamCityHelpers Helpers
// @namespace http://blog.spinthemoose.com/
// @version 0.2
// @description Adds some useful capabilities to the Octopus Deploy UI.
// @author David Alpert
// @match http://172.17.1.95:8080/*
// @grant none
// ==/UserScript==
@dalpert-korewireless
dalpert-korewireless / NavigateKORERepos.js
Last active August 29, 2016 20:57
TamperMonkey script to help navigate between the KORE.* repos on github
// ==UserScript==
// @name Navigate KORE Repositories
// @namespace http://blog.spinthemoose.com/
// @version 0.5
// @description updates to support Refined Github
// @author David Alpert
// @match https://github.com/*/*
// @require http://code.jquery.com/jquery-latest.js
// @grant none
// ==/UserScript==
@dalpert-korewireless
dalpert-korewireless / OctopusHelpers.js
Last active April 9, 2021 18:34
Tampermonkey script to add UI helpers for Octopus Deploy
// ==UserScript==
// @name Octopus Helpers
// @namespace http://blog.spinthemoose.com/
// @version 0.2
// @description Adds some useful capabilities to the Octopus Deploy UI.
// @author David Alpert
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js
// @require https://gist.github.com/raw/2625891/waitForKeyElements.js
// @match http://172.30.100.100/app*
// @grant none
using (StreamReader sr = File.OpenText(fileName))
{
string s = String.Empty;
while ((s = sr.ReadLine()) != null)
{
//do your stuff here
}
}
member x.FindFileDepth (d:DirectoryInfo) (f:FileInfo) =
Math.Max(f.FullName.Replace(d.FullName, "").Split('\\').Length - 2,0)
member x.AddCommonAssemblyInfo() =
let xmlns = @"http://schemas.microsoft.com/developer/msbuild/2003" |> XNamespace.op_Implicit
let working = new DirectoryInfo(@"d:\path\to\repo")
let projFiles = working.GetFiles("*.csproj", SearchOption.AllDirectories)
|> Array.filter (fun f -> f.FullName.Contains(".git") = false)
$> git bisect run cmd //C c:/Windows/Microsoft.NET/Framework/v4.0.30319/MSBuild.exe build.xml //t:build
@dalpert-korewireless
dalpert-korewireless / Program.cs
Created August 2, 2015 05:59
Per-Instance logging with NLog & TopShelf
using System;
using System.Timers;
using FubuCore;
using NLog;
using NLog.Layouts;
using NLog.Targets;
using Topshelf;
using Topshelf.Runtime;
namespace Dragon.WindowsService