Skip to content

Instantly share code, notes, and snippets.

@gabema
gabema / web.config
Created March 13, 2017 22:46 — forked from camerow/web.config
IIS Redirect to index.html for React-Router compat
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="Rewrite to index.html">
<match url=".*" />
<conditions logicalGrouping="MatchAll">
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
@gabema
gabema / profile.ps1
Created October 3, 2016 19:50 — forked from camerow/profile.ps1
Authenticate Powershell to Azure on startup
# Will authenticate you in to Azure
$azureAccountName ="YourAzureUsername"
$azurePassword = ConvertTo-SecureString "YourPassword" -AsPlainText -Force
$psCred = New-Object System.Management.Automation.PSCredential($azureAccountName, $azurePassword)
Login-AzureRmAccount -Credential $psCred
#Selects the Subscription associated with our team.
Select-AzureRmSubscription -SubscriptionName "Development"
actions=true
ads=true
analytics=true
appindexing=true
appstate=true
auth=true
cast=true
common=true
drive=false
dynamic=true