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 / 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);
@chgeuer
chgeuer / Dockerfile
Last active May 29, 2018 21:59
Running Orleans in Docker
FROM ubuntu:14.04.2
MAINTAINER [email protected]
RUN apt-get update && \
apt-get install mono-complete curl unzip && \
mkdir /usr/local/orleans && \
curl https://chgeuer.blob.core.windows.net/public/orleans1_0.zip > /usr/local/orleans/orleans1_0.zip && \
cd /usr/local/orleans && \
unzip orleans1_0.zip

Agenda

  1. Microsoft and Open Source - Past and Future
  2. Azure IaaS changed everything : Microsoft loves Linux
  3. Examples of OSS Projects

Microsoft und OpenSource:

@chgeuer
chgeuer / brainpoolp256r1.cs
Last active April 22, 2022 11:17
Demonstrates how to use BouncyCastle with brainpoolp256r1 curve
namespace microsoft.chgeuer.crypto
{
// compile this baby against https://github.com/bcgit/bc-csharp
// or against NuGet <package id="BouncyCastle" version="1.7.0" targetFramework="net45" />
using Org.BouncyCastle.Asn1.X9;
using Org.BouncyCastle.Crypto.Generators;
using Org.BouncyCastle.Crypto.Parameters;
using Org.BouncyCastle.Security;
@chgeuer
chgeuer / DNSQuery.cs
Created January 30, 2015 09:43
Retrieve DNS Records
// <package id="Heijden.Dns" version="1.0.0" targetFramework="net45" />
var aRecord = new Heijden.DNS.Resolver().Query("somedomain.de", Heijden.DNS.QType.A);
foreach (var x in aRecord.Answers)
Console.WriteLine("Answer: {0} is an {1} record for {2} (TTL {3})",
x.NAME, x.Type, x.RECORD, TimeSpan.FromSeconds( x.TTL));
Func<string, Task<bool>> CheckNameAvailabilityAsync = async (cloudServiceName) =>
{
var computeManagementClient = new Microsoft.WindowsAzure.Management.Compute.ComputeManagementClient( // Microsoft.WindowsAzure.Management.Compute.8.0.0
new Microsoft.Azure.CertificateCloudCredentials( // Microsoft.Azure.Common.2.0.1
subscriptionID, subscriptionManagementCertificateThumbprint.FindX509CertificateByThumbprint(storeLocation)));
var result = await computeManagementClient.HostedServices.CheckNameAvailabilityAsync(cloudServiceName, cancellationToken);
return result.IsAvailable;
};