Skip to content

Instantly share code, notes, and snippets.

View chgeuer's full-sized avatar
🏠
Working from Düsseldorf

Dr. Christian Geuer-Pollmann chgeuer

🏠
Working from Düsseldorf
View GitHub Profile
@chgeuer
chgeuer / MakeCtrlDWorkInPowershell.cmd
Created January 31, 2016 13:30
Globally set Ctrl-D globally to quit Powershell
@REM Globally set Ctrl-D globally to quit Powershell
%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe -ExecutionPolicy Unrestricted -Command "Add-Content $PsHome\Profile.ps1 \"`r`nSet-PSReadlineKeyHandler -Key Ctrl+d -Function DeleteCharOrExit`r`n\""
@chgeuer
chgeuer / mesos-networking.md
Last active January 26, 2016 13:03
Mesos Networking
@chgeuer
chgeuer / sql-azure-arm.json
Created October 20, 2015 18:08
sql-azure-arm.json
"variables": {
"sqlAzureServicePlan": {
"Basic": "dd6d99bb-f193-4ec1-86f2-43d3bccbc49c",
"S0": "f1173c43-91bd-4aaa-973c-54e79e15235b",
"S1": "1b1ebd4d-d903-4baa-97f9-4ea675f5e928",
"S2": "455330e1-00cd-488b-b5fa-177c226f28b7",
"S3": "789681b8-ca10-4eb0-bdf2-e0b050601b40",
"P1": "7203483a-c4fb-4304-9e9f-17c71c904f5d",
"P2": "a7d1b92d-c987-4375-b54d-2b1d0e0f5bb0",
"P3": "a7c4c615-cfb1-464b-b252-925be0a19446"
@chgeuer
chgeuer / ClanWar.txt
Last active August 29, 2015 14:22
ClanWar.txt
goo.gl/tbJRI2
419
_MuchZockt_
Aragorn
chgeuer
chiniminiz
James Cameron
Lamon
@chgeuer
chgeuer / ScriptCs.AzureManagement-on-Linux.log
Last active August 29, 2015 14:19
ScriptCs.AzureManagement-on-Linux.log
------------------------------------------
Main problem seems to be this:
Could not load signature of Microsoft.WindowsAzure.CloudCredentials:ProcessHttpRequestAsync due to:
Could not load file or assembly or one of its dependencies.
Could not load signature of Microsoft.WindowsAzure.ICloudTracingInterceptor:SendRequest due to:
Could not load file or assembly or one of its dependencies.
@chgeuer
chgeuer / DocDBMissingSlugRepro.cs
Last active August 29, 2015 14:19
DocDBMissingSlugRepro.cs
/*
* await client.CreateAttachmentAsync(document.AttachmentsLink, someStream, new MediaOptions { Slug = "attachment.jpg", ContentType = "..." });
*
* var attachments = client.CreateAttachmentQuery(attachmentsLink)...
* Attachment attachment = ...
* attachment.Id == "attachment.jpg"
*
* MediaResponse content = await client.ReadMediaAsync(attachment.MediaLink);
* content.Slug == ""
namespace Microsoft.ChGeuer
{
using Microsoft.Azure;
using Microsoft.WindowsAzure.Management.Compute;
using Microsoft.WindowsAzure.Management.Compute.Models;
using Microsoft.WindowsAzure.Management.Storage;
using Microsoft.WindowsAzure.Management.Storage.Models;
using Microsoft.WindowsAzure.Storage;
using Microsoft.WindowsAzure.Storage.Auth;
using Microsoft.WindowsAzure.Storage.Blob;
@chgeuer
chgeuer / owin.md
Created March 7, 2015 22:11
OWIN Notes
            app.Use<PureMiddleware>();
            app.Use<LoggingMiddleware>();

            app.UseHandlerAsync(async (request, response) =>
            {
                Console.WriteLine("Request " + request.Uri.AbsoluteUri);
                response.ContentType = "text/plain";
                await response.WriteAsync("Hello, World! " + request.Uri.AbsoluteUri);