Skip to content

Instantly share code, notes, and snippets.

View rdbartram's full-sized avatar

Ryan Bartram rdbartram

View GitHub Profile
@JustinGrote
JustinGrote / azure-pipelines.yml
Created June 3, 2019 20:30
Azure Devops Pipeline for Deploying Powershell Azure Functions via Terraform
variables:
#Specified which branch that terraform apply and azure function deploy will run
deployBranch: 'refs/heads/master'
jobs:
- job: AzureFunction
displayName: Prepare Azure Function Package
pool:
vmImage: 'vs2017-win2016'
steps:
Configuration MyDscConfig {
# Import the module that has the 'ServerType' configuration
Import-DscResource -ModuleName Platform
# Import the module that has the 'Application' Configuration
Import-DscResource -ModuleName Product
$ConfigurationData.AllNodes.Nodename {
$ConfigurationData.Roles.($Node.Role).configurations.Foreach{
$ConfigurationName = $_
$ConfigurationParameters = $ConfigurationData.Roles.($Node.Role).($ConfigurationName)
@w0rd-driven
w0rd-driven / passwords.txt
Created November 18, 2016 20:19
BFG Repo-Cleaner --replace-text example
PASSWORD1 # Replace literal string 'PASSWORD1' with '***REMOVED***' (default)
PASSWORD2==>examplePass # replace with 'examplePass' instead
PASSWORD3==> # replace with the empty string
regex:password=\w+==>password= # Replace, using a regex
regex:\r(\n)==>$1 # Replace Windows newlines with Unix newlines