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
/** | |
* My first CSS dabble | |
*/ | |
background: #f06; | |
background: linear-gradient(45deg, #f06, yellow); | |
min-height:100%; |
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
#requires -version 2.0 | |
[CmdletBinding()] | |
param( | |
[parameter(Mandatory=$true)] | |
[ValidateScript({ $_ | Test-Path -PathType Leaf })] | |
[string] | |
$Path | |
) | |
function New-XmlNamespaceManager ($XmlDocument, $DefaultNamespacePrefix) { |
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
public class DataContext | |
{ | |
private TableServiceContext _context; | |
public DataContext() | |
{ | |
var account = CloudStorageAccount.FromConfigurationSetting("DataContext"); | |
_context= account.CreateCloudTableClient().GetDataServiceContext(); | |
} |
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
var account = CloudStorageAccount.FromConfigurationSetting("DataContext"); | |
CloudTableClient.CreateTablesFromModel(typeof(DataContext), | |
account.TableEndpoint.AbsoluteUri, | |
account.Credentials); |
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 System.IO; | |
using System.Threading; | |
using Microsoft.WindowsAzure; | |
using Microsoft.WindowsAzure.Diagnostics; | |
using Microsoft.WindowsAzure.ServiceRuntime; | |
using log4net; | |
using log4net.Config; | |
namespace WorkerRole |
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
#Print Strings | |
"Hello World" | |
#Run Commands | |
ping google.com | |
#Use Variables |
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
Get-AzureRmLog -StartTime 2016-01-05 -EndTime 2016-01-06 ` | |
| select ` | |
Caller,EventTimestamp,ResourceGroupName, ` | |
@{Name="LocalTime";Expression={[System.TimeZone]::CurrentTimeZone.ToLocalTime($_.EventTimestamp)}}, ` | |
OperationName ` | |
| sort EventTimestamp |
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
$subscriptionName = "IAAS"; | |
$storageAccountName = "demop2svpndisks"; | |
$storageAccountResourceGroupName = "Demo2"; | |
$containerName = "vhds"; | |
$blobName = "Jumpbox34.vhd"; | |
Login-AzureRmAccount | |
Select-AzureRmSubscription -SubscriptionName $subscriptionName |
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
# Description: Boxstarter Script | |
# Author: Tyler Doerksen | |
# Common dev settings for azure dev | |
Disable-UAC | |
#--- Windows Features --- | |
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowProtectedOSFiles -EnableShowFileExtensions |
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
# Description: Boxstarter Script | |
# Author: Tyler Doerksen | |
# Azure Development Box | |
Disable-UAC | |
#--- Windows Features --- | |
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowProtectedOSFiles -EnableShowFileExtensions | |
#--- File Explorer Settings --- |
OlderNewer