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
mkdir /vim | |
mkdir /tmp | |
Push-Location /tmp | |
curl.exe https://ftp.nluug.nl/pub/vim/pc/vim82w32.zip -o vim.zip | |
Expand-Archive .\vim.zip | |
Copy-Item .\vim\vim\vim82\vim.exe /vim | |
$Env:PATH += ';C:\vim' | |
Pop-Location |
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 Show-JsonPaths { | |
param( | |
[Parameter(Mandatory = $true)] | |
[System.Object]$custobj, | |
[string] $JPath = "$", | |
[switch] $OutputValues | |
) | |
foreach ($k in ($custobj | Get-Member -MemberType NoteProperty).Name) { | |
$isCustomType = $($custobj.$k -is [System.Management.Automation.PSCustomObject]) |
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
[ | |
{"repositoryName" : "jlouros/StashApiCSharp"}, | |
{"repositoryName" : "jlouros/PowerShell-toolbox"}, | |
# {"repositoryName" : "jlouros/angular-auth-oidc-client"}, | |
# {"repositoryName" : "jlouros/idtoken-verifier"}, | |
# {"repositoryName" : "jlouros/auth0.js"}, | |
{"repositoryName" : "jlouros/MultiSubnetFailover-TestApp"}, | |
{"repositoryName" : "jlouros/QrCodeGenerator-ChromeExtension"}, | |
{"repositoryName" : "jlouros/Little-Ufo-WinPhone8"}, | |
{"repositoryName" : "jlouros/WalkCompanion-WinPhone8"}, |
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
#Replace "Subject" with CN (Common Name) and/or SAN (Subject Alternative Name) | |
New-SelfSignedCertificate -DnsName localhost -CertStoreLocation Cert:\LocalMachine\My | |
#Replace "Password" with your password. | |
$CertPassword = ConvertTo-SecureString -String "yourpassword" -Force –AsPlainText | |
#Replace "Thumbprint" with certificate Thumbprint and "path-to-pfx" the location where the certificate PFX will be saved. | |
Export-PfxCertificate -Cert cert:\LocalMachine\My\{thumbprint} -FilePath {path-to-cert-output.pfx} -Password $CertPassword | |
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 branch | Where-Object { $_ -notmatch 'master' } | ForEach-Object { git branch "$_".Trim() -D } |
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
const AWS = require("aws-sdk"); // from AWS SDK | |
const fs = require("fs"); // from node.js | |
const path = require("path"); // from node.js | |
// configuration | |
const config = { | |
s3BucketName: 'your.s3.bucket.name', | |
folderPath: '../dist' // path relative script's location | |
}; |
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
/* eslint import/no-extraneous-dependencies: ["off"] */ | |
/* eslint func-names: ["off"] */ | |
/* global browser */ | |
/** | |
* Jasmine reporter used to take screenshots every time a test fails | |
* on your 'protractor.conf.js' (Protractor configuration file) | |
* include a reference to this file `const ScreenshotReporter = require('./screenshotReporter.js');` | |
* and hook it up inside 'onPrepare()' `jasmine.getEnv().addReporter(new ScreenshotReporter('reports/e2e-failures'));` | |
*/ |
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
// arguments | |
string target = Argument("target", "Default"); | |
string configuration = Argument("configuration", "Release"); | |
// define directories. | |
ConvertableFilePath mainSln = File("./src/Example.sln"); | |
ConvertableDirectoryPath buildDir = Directory("./src/Example/bin") + Directory(configuration); | |
// tasks | |
Task("Clean") |
NewerOlder