This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$lastCommitsFile = "C:\LastCommitsOfDeletedBranches.txt" | |
if((Test-Path $lastCommitsFile ) -eq $false){"" > $lastCommitsFile} | |
"Lets delete stuff..." | |
$repoLocations = @("C:\Dev\SomeRepo") | |
$pullTheTrigger = $false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function next() | |
{ | |
$nextFilesDir = "SomeDirContainingNextAndNextHistoryFiles" | |
$nextFilePath = "$nextFilesDir\Next.txt" | |
$nextFileContent = Get-Content ($nextFilePath) | |
"Next file content is: '$nextFileContent'" | |
$filesDir = $nextFileContent[0].Replace("files-dir:", "") | |
$fileRegex = $nextFileContent[1].Replace("file-regex:", "") | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
write-error "probably best to not execute" | |
exit 1 | |
cd C:\Dev\Abide\Abide.Digby | |
$archiveFolderName = "z-archive" | |
$oldUnmergedBranches = New-Object System.Collections.ArrayList | |
foreach($branch in git branch -r --no-merged master ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Diagnostics; | |
namespace Examples.DebuggerDisplayTestData | |
{ | |
[DebuggerDisplay("{ToDisplay}")] | |
public class SimpleClass | |
{ | |
public string SomeString { get; set; } | |
public bool SomeBool { get; set; } | |
public int SomeInt { get; set; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cls | |
$executingDir = Split-Path -parent $PSCommandPath | |
$isTest = $false | |
$startTime = Get-Date | |
function EnsureDirExists($uncDir){ | |
if(-not(Test-Path -Path $uncDir -PathType Container )){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
echo "Start sql driver install script" | |
sudo su | |
curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add - | |
curl https://packages.microsoft.com/config/ubuntu/16.04/prod.list > /etc/apt/sources.list.d/mssql-release.list | |
exit | |
echo "update apt-get sources" | |
sudo apt-get update | |
echo "updated apt-get sources" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
workflow PauseResourcesIfRunning { | |
Param | |
( | |
[Parameter (Mandatory = $true)] | |
[string] $subscriptionName | |
) | |
write-output "Started script with: | |
Subscription - $subscriptionName" | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
provider "aws" { | |
access_key = "${var.aws_access_key}" | |
secret_key = "${var.aws_secret_key}" | |
region = "${var.region}" | |
} | |
resource "aws_key_pair" "key_pair" { | |
key_name = "key_pair_key" | |
public_key = "${file("~/.ssh/id_rsa.pub")}" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#tool "nuget:?package=Microsoft.TestPlatform&version=15.7.0" | |
#tool "nuget:?package=NUnitTestAdapter&version=2.1.1" | |
var target = Argument("target", "Default"); | |
var configuration = Argument("configuration", "Release"); | |
var buildDir = Directory("./src/Example/bin") + Directory(configuration); | |
var slnFile = "./src/Example.sln"; | |
var testDllPattern = "./src/**/*Tests.dll"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
installdir="" | |
logfile="install-log.txt" | |
UPDATED=false | |
UPGRADE=false | |
PYTHON_PKG="" | |
ASK_TO_REBOOT=false | |
promptorno() { |