This file contains hidden or 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
## | |
# Create new Service Principal with Cert configured | |
## | |
Login-AzureRmAccount -SubscriptionId XXXXXXXX-XXXX-XXXX-XXXX-86b9ebca2d13 | |
# $credValue comes from the previous script and contains the X509 cert we wish to use. | |
# $validFrom comes from the previous script and is the validity start date for the cert. | |
# $validTo comes from the previous script and is the validity end data for the cert. |
This file contains hidden or 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
# Requires PowerShell to be run as Admin-level user. | |
New-SelfSignedCertificate -CertStoreLocation cert:\localmachine\my -Provider "Microsoft Enhanced RSA and AES Cryptographic Provider" ` | |
-Subject "cn=mydemokvcert" -KeyDescription "Used to access Key Vault" ` | |
-NotBefore (Get-Date).AddDays(-1) -NotAfter (Get-Date).AddYears(2) | |
# PSParentPath: Microsoft.PowerShell.Security\Certificate::LocalMachine\my | |
# | |
#Thumbprint Subject | |
#---------- ------- |
This file contains hidden or 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
// ==UserScript== | |
// @name GitHub plain issues list | |
// @namespace some namespace | |
// @version 0.1 | |
// @description some description | |
// @match https://github.com/* | |
// @copyright 2014+, Jorge Rowies | |
// ==/UserScript== | |
var htmlList = ""; |
This file contains hidden or 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
#NOTE: This script is based on the Microsoft provided guidance example at | |
# https://www.windowsazure.com/en-us/develop/net/common-tasks/continuous-delivery/. | |
Param( | |
[parameter(Mandatory=$true)] | |
$serviceName, | |
[parameter(Mandatory=$true)] | |
$storageAccountName, | |
[parameter(Mandatory=$true)] | |
$storageAccountKey, |
This file contains hidden or 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
@echo off | |
rem | |
rem **************************************************************************** | |
rem | |
rem Copyright (c) Microsoft Corporation. All rights reserved. | |
rem This code is licensed under the Microsoft Public License. | |
rem THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF | |
rem ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY | |
rem IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR | |
rem PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT. |