https://github.com/SEEK-Jobs/pact-net https://docs.pact.io/documentation/provider_states.html https://docs.pact.io/documentation/ruby/provider_states.html https://docs.pact.io/documentation/provider_states.html https://docs.pact.io/documentation/golang/provider/states.html https://github.com/realestate-com-au/pact/wiki/Provider-states https://github.com/pact-foundation/pact-provider-verifier#api-with-provider-states
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
# install chocolatey before running http://chocolatey.org/ | |
#note this doesn't install the web components (go into programs and features and change the install for visual studio) | |
cinst VisualStudio2013Premium | |
#cinst VS2013.1 | |
cinst VS2013.2 | |
cinst resharper | |
cinst notepadplusplus | |
cinst fiddler4 |
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
#In VSTS set Options > Allow Scripts to Access OAuth Token or you'll get an error | |
invoke-webrequest | |
-Method POST | |
https://<your site>/DefaultCollection/Digital%20Apprenticeship%20Service/_apis/build/builds?api-version=2.0 | |
-Body "{'definition':{'id': 1}}" | |
-headers @{"Authorization"="Bearer $(System.AccessToken)"} | |
-usebasicparsing | |
-ContentType "application/json" |
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
# setup octoposh first | |
# http://octoposh.net/ | |
$varset = Get-OctopusVariableSet -LibrarySetName "variable set 1" -ResourceOnly | |
$varset2 = Get-OctopusVariableSet -LibrarySetName "variable set 2" -ResourceOnly | |
$vars = $varset.Variables | ?{$_.name.StartsWith("AchievementRate")} | |
foreach ($var in $vars) {$varset2.Variables.Add($var)} | |
Update-OctopusResource -Resource $varset2 | |
# it's important to use resource only or you'll get an error about fixed collection size |
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; | |
using StructureMap; | |
namespace ConsoleApplication1 | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
var container = new 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
package main | |
import ( | |
"fmt" | |
"os" | |
"strings" | |
) | |
func main() { | |
fmt.Println(os.Args[1]) |
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 ZipFiles( $zipfilename, $sourcedir ) | |
{ | |
Add-Type -Assembly System.IO.Compression.FileSystem | |
Add-Type -Assembly System.IO.Compression | |
$archive = [System.IO.Compression.ZipFile]::Open($zipfilename, [System.IO.Compression.ZipArchiveMode]::Create); | |
try | |
{ | |
$files = [System.IO.Directory]::GetFiles($sourceDir, "*.*", [System.IO.SearchOption]::AllDirectories) |
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
git config --global gpg.program "C:/Program Files (x86)/GNU/GnuPG/pub/gpg2.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
curl -XPUT "https://10.0.2.15:9200/_xpack/watcher/watch/fat-apps-errors-prod" -d' | |
{ | |
"trigger": { | |
"schedule": { | |
"daily": { | |
"at": [ | |
"07:00" | |
] | |
} | |
} |
Setup a kubernetes cluster to handle household usage
- ZWave USB controller
OlderNewer