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
Param([string]$publishsettings, | |
[string]$storageaccount, | |
[string]$subscription, | |
[string]$service, | |
[string]$containerName="mydeployments", | |
[string]$config, | |
[string]$package, | |
[string]$slot="Staging") | |
Function Get-File($filter){ |
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
[System.Reflection.Assembly]::LoadFile("C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\16\ISAPI\Microsoft.SharePoint.Client.dll") | |
$ctx = new-object Microsoft.SharePoint.Client.ClientContext("https://<site>") | |
$pass = "<password>" | |
$s = ConvertTo-SecureString -String $pass -AsPlainText -Force | |
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
ffmpeg -i "input.mp4" -vcodec libx264 -vprofile main -preset slow -b:v 400k -maxrate 400k -bufsize 800k -vf scale=854:trunc(ow/a/2)*2 -threads 0 -acodec libvo_aacenc -ab 128k "output.mp4" |
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
Executing command vm image list | |
Fetching VM images | |
Name Category OS | |
-------------------------------------------------------------------------------------------------------------------- -------- ------- | |
03f55de797f546a1b29d1b8d66be687a__Visual-Studio-14-Professional-CTP-14.0.22129.1-AzureSDK-2.4-WS2012R2 Public Windows | |
0b11de9248dd4d87b18621318e037d37__RightImage-CentOS-6.2-x64-v5.8.8.1 Public Linux | |
0b11de9248dd4d87b18621318e037d37__RightImage-CentOS-6.3-x64-v5.8.8 Public Linux | |
0b11de9248dd4d87b18621318e037d37__RightImage-CentOS-6.3-x64-v5.8.8.5 Public Linux | |
0b11de9248dd4d87b18621318e037d37__RightImage-CentOS-6.3-x64-v5.8.8.6 Public Linux | |
0b11de9248dd4d87b1862 |
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
<# | |
.SYNOPSIS | |
Calculates cost of all blobs in a container or storage account. | |
.DESCRIPTION | |
Enumerates all blobs in either one container or one storage account and sums | |
up all costs associated. This includes all block and page blobs, all metadata | |
on either blobs or containers. It also includes both committed and uncommitted | |
blocks in the case that a blob is partially uploaded. | |
The details of the calculations can be found in this post: |
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
open System | |
type EventAction = Nothing | Something | |
type TimeEvent = {time: DateTime; Id: int; Action : EventAction} | |
let t,t2 = new System.Timers.Timer(1000.0), new System.Timers.Timer(5000.0) | |
let timer1Stream = t.Elapsed |> Observable.map(fun _ -> {time = DateTime.Now; Id = 1; Action = EventAction.Something}) | |
let timer2Stream = t2.Elapsed |> Observable.map(fun _ -> {time = DateTime.Now; Id = 1; Action = EventAction.Nothing}) |
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
<%@ Register Tagprefix="SharePointWebControls" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> | |
<SharePointWebControls:ScriptLink language="javascript" name="reputation.js" OnDemand="false" LoadAfterUI="true" runat="server" Localizable="false" /> |
NewerOlder