Skip to content

Instantly share code, notes, and snippets.

View buchizo's full-sized avatar
🍤
( ´・ω・)つΣ;:',;',',:'',:',;',',)

kosmos.ebi buchizo

🍤
( ´・ω・)つΣ;:',;',',:'',:',;',',)
View GitHub Profile
@buchizo
buchizo / Function2.cs
Created April 23, 2019 08:12
get role assignments and userinfo using ARM and Graph API on Functions (2)
using System;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Azure.WebJobs;
using Microsoft.Azure.WebJobs.Extensions.Http;
using Microsoft.AspNetCore.Http;
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Configuration;
using Microsoft.IdentityModel.Clients.ActiveDirectory;
using System.Net.Http;
@buchizo
buchizo / Function1.cs
Created April 23, 2019 06:34
get role assignments and userinfo using ARM and Graph API on Functions
using System;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Azure.WebJobs;
using Microsoft.Azure.WebJobs.Extensions.Http;
using Microsoft.AspNetCore.Http;
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Configuration;
using Microsoft.IdentityModel.Clients.ActiveDirectory;
using System.Net.Http;
@buchizo
buchizo / msisample.cs
Created October 14, 2018 18:22
MSI Sample
using Microsoft.Azure.Management.WebSites;
using Microsoft.Azure.Services.AppAuthentication;
using Microsoft.Rest;
using System;
using System.Linq;
using System.Threading.Tasks;
namespace ConsoleApp3
{
class Program
@buchizo
buchizo / app.js
Created July 25, 2018 07:25
app.js using passport-azure-ad 3.0
/**
* Copyright (c) Microsoft Corporation
* All Rights Reserved
* Apache License 2.0
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
*
@buchizo
buchizo / test.cs
Created July 8, 2018 18:12
AADToken
Console.Write("input your AzureAD tenant name: ");
var tenantName = Console.ReadLine();
Console.Write("input your media services endpoint: ");
var endpoint = Console.ReadLine();
Console.Write("input your client id: ");
var clientId = Console.ReadLine();
Console.Write("input your client secret: ");
var clientSecret = Console.ReadLine();
var tokenCredentials = new AzureAdTokenCredentials(
2004年 : 9,010 円 2件 最高額 : 6,700 円
2005年 : 43,855 円 4件 最高額 : 25,480 円
2006年 : 36,291 円 4件 最高額 : 15,427 円
2007年 : 15,506 円 5件 最高額 : 5,250 円
2008年 : 35,504 円 8件 最高額 : 24,238 円
2009年 : 108,028 円 14件 最高額 : 31,984 円
2010年 : 123,211 円 13件 最高額 : 25,902 円
2011年 : 288,156 円 31件 最高額 : 57,443 円
2012年 : 421,244 円 95件 最高額 : 52,800 円
2013年 : 389,705 円 127件 最高額 : 43,748 円
@buchizo
buchizo / azure logo.svg
Created July 26, 2017 08:32
Azure logo (SVG)
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@buchizo
buchizo / wp-config.php
Created February 13, 2017 15:21
WordPress on Azure App Service via nginx (require any X-FORWARDED headers)
if ( array_key_exists( "HTTP_X_FORWARDED_SERVER", $_SERVER ) ) {
if ( ! empty( $_SERVER['HTTP_X_FORWARDED_PROTO'] ) && $_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https' ) {
$_SERVER['HTTPS']='on';
}
define( "WP_SITEURL", "http://" . $_SERVER["HTTP_X_FORWARDED_SERVER"] );
define( "WP_HOME", "http://" . $_SERVER["HTTP_X_FORWARDED_SERVER"] );
$_SERVER['HTTP_HOST'] = $_SERVER["HTTP_X_FORWARDED_SERVER"];
$_SERVER['SERVER_NAME'] = $_SERVER["HTTP_X_FORWARDED_SERVER"];
} else {
define( "WP_SITEURL", "http://yoursite.azurewebsites.net" );
@buchizo
buchizo / gist:534bf03aaa60cbfab147f14bbcac84a8
Created August 8, 2016 15:36
HoloLens Emulator (14393)
"C:\Program Files (x86)\Microsoft XDE\10.0.14393.0\XDE.exe" /name "HoloLens Emulator 10.0.14393.0.dngoins" /displayName "HoloLens Emulator 10.0.14393.0" /vhd "C:\Program Files (x86)\Windows Kits\10\Emulation\HoloLens\10.0.14393.0\flash.vhd" /video "1268x720" /memsize 2048 /language 409 /creatediffdisk C:\dd14393.1268x720.2048.vhd /fastShutdown /sku HDE
@buchizo
buchizo / Exception
Created May 29, 2016 20:48
Azure Function QueueTriggerCSharp sample
...at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Azure.WebJobs.Host.Blobs.Bindings.WatchableCloudBlobStream.<CommitAsyncCore>d__0.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Azure.WebJobs.Host.Blobs.Bindings.OutStringArgumentBindingProvider.StringArgumentBinding.StringValueBinder.<SetValueAsync>d__4.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Azure.WebJobs.Host.Executors.FunctionExecutor.<ExecuteWithWatchersAsync>d__33.MoveNext()