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
/* | |
So sorry this code has no loops or parameterization, it's terrible, just putting it somewhere that won't get lost. | |
*/ | |
#include <Bounce2.h> | |
const int buttonPin = 7; // the number of the pushbutton pin | |
int buttonState = 0; // variable for reading the pushbutton status | |
int buttonValue; | |
Bounce2::Button button = Bounce2::Button(); | |
int chargedLEDs = 0; |
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
<# | |
Much of this is direct from the Packer documentation: | |
https://www.packer.io/intro/getting-started/build-image.html#a-windows-example | |
Everything else from random other blogs. | |
'PostToSlack' is one of our in-house functions, just sends stuff to a slack channel. | |
#> | |
Write-Output "Setting the administrator password to facilitate WinRM config." |
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
param ( | |
[Parameter(Mandatory=$true)][string]$projectName, | |
[Parameter(Mandatory=$true)][string]$projectKey, | |
[Parameter(Mandatory=$true)][string]$projectVersion, | |
[Parameter(Mandatory=$true)][string]$sonarUser, | |
[Parameter(Mandatory=$true)][string]$sonarPass | |
) | |
$sonarHost = "http://sonar.domain.com:9000" | |
$sonarRunnerExe = "C:\tools\sonar\MSBuild.SonarQube.Runner.exe" |
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
$ErrorActionPreference = "Stop" | |
$modulePath = $OctopusParameters['Octopus.Action[DeployScripts].Output.Package.InstallationDirectoryPath'] | |
Import-Module AWSPowerShell | |
Import-Module WebAdministration | |
Import-Module $modulePath\scripts\modules\Elastico\Elastico.psd1 | |
Import-Module $modulePath\scripts\modules\Elasticsearch\PS-Elasticsearch.psm1 | |
Import-Module $modulePath\scripts\modules\Manager-CanaryFunctions.psm1 | |
Import-Module $modulePath\scripts\modules\FilebeatFunctions.psm1 |
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 PostToSlack { | |
Param([string]$message) | |
$wc = New-Object net.webclient | |
$wc.UploadString("https://hooks.slack.com/services/random/moreRandom", (ConvertTo-Json @{ text = ("$message") })) | |
} | |
################################### | |
### Modules ### | |
Import-Module WebAdministration | |
################################### |
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 PostToSlack { | |
Param([string]$message) | |
$slackHook = "$SlackChannel" | |
$wc = New-Object net.webclient | |
$wc.UploadString($slackHook, (ConvertTo-Json @{ text = ("$message") })) | |
} | |
$enviro = "$enviroShortName" | |
$nUnitDir = "$NUnitWorkingDirectoryPath\tests\$enviro" |