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
{ | |
"bindings": [ | |
{ | |
"name": "myBlob", | |
"type": "blobTrigger", | |
"direction": "in", | |
"path": "incontainer/{name}", | |
"connection": "buchifunctions_STORAGE" | |
}, | |
{ |
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
$adal = "${env:ProgramFiles(x86)}\Microsoft SDKs\Azure\PowerShell\ServiceManagement\Azure\Services\Microsoft.IdentityModel.Clients.ActiveDirectory.dll" | |
$adalforms = "${env:ProgramFiles(x86)}\Microsoft SDKs\Azure\PowerShell\ServiceManagement\Azure\Services\Microsoft.IdentityModel.Clients.ActiveDirectory.WindowsForms.dll" | |
[System.Reflection.Assembly]::LoadFrom($adal) | |
[System.Reflection.Assembly]::LoadFrom($adalforms) | |
$adTenant = "buchizomsdn.onmicrosoft.com" | |
# well-known ID | |
$clientId = "1950a258-227b-4e31-a9cf-717495945fc2" | |
$redirectUri = "urn:ietf:wg:oauth:2.0:oob" | |
$resourceAppIdURI = "https://management.core.windows.net/" | |
$authority = "https://login.windows.net/$adTenant" |
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 factory = MessagingFactory.Create(ServiceBusEnvironment.CreateServiceUri("sb", "test", ""), new MessagingFactorySettings() | |
{ | |
TokenProvider = TokenProvider.CreateSharedAccessSignatureTokenProvider(SasKeyName, SasKey), | |
TransportType = TransportType.Amqp | |
}); | |
var eventHubClient = factory.CreateEventHubClient(EventHubName); | |
var group = eventHubClient.GetDefaultConsumerGroup(); | |
var reciver = group.CreateReceiver(state.ToString()); | |
while (true) | |
{ |
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
@{ | |
ViewBag.Title = "Index"; | |
} | |
@model MvcApplication1.Models.HomeViewModel | |
<h2>Index</h2> | |
@using (Html.BeginForm("Index", "Home", FormMethod.Post)) | |
{ | |
<input type="submit" /> |
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
[System.BitConverter]::ToString([convert]::FromBase64String("base64な文字列")).ToUpper().Replace("-","") | |
function ConvertFrom-Base64 { | |
param([string]$Base64String) | |
$hex = foreach ($b in [convert]::FromBase64String($Base64String)) { | |
"{0:x2}" -f $b | |
} | |
-join $hex | |
} |
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
PS D:\home> [void] [System.Reflection.Assembly]::LoadWithPartialName("System.Drawing") | |
PS D:\home> $objFonts = New-Object System.Drawing.Text.InstalledFontCollection | |
$objFonts.Families | |
PS D:\home> | |
Name | |
---- |
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
javascript:(window.open(document.getElementsByTagName('track')[0].getAttribute('src'))) |
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
. '~\Documents\WindowsPowerShell\Modules\posh-git\profile.example.ps1' | |
$global:GitPromptSettings.BeforeText = ' on ' | |
$global:GitPromptSettings.BeforeForegroundColor = [ConsoleColor]::White | |
$global:GitPromptSettings.AfterText = " `ngit" |
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.IO; | |
using Microsoft.WindowsAzure.Storage; | |
using Microsoft.WindowsAzure.Storage.Auth; | |
namespace ConsoleApplication1 | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ |
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.Diagnostics; | |
using System.Text.RegularExpressions; | |
namespace ConsoleApplication1 | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ |