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 / README.md
Last active August 29, 2015 14:09
Game Server VM
@chgeuer
chgeuer / wac.rb
Last active December 29, 2019 17:22
#!/usr/bin/ruby -w
# encoding: UTF-8
require 'json'
require 'waz-blobs'
class WindowsAzureConfigurator
class << self
attr_accessor :PathToAzureXPlatformTool
@chgeuer
chgeuer / t4-include.md
Last active August 29, 2015 14:08
quizzer

Include C# from github

  • New Project
  • Manage NuGet Packages - Add the "T4Include" package
  • Open "Include_T4Include.tt" and replace the contents with the stuff below:
&lt;#
GET http://signalrios.azurewebsites.net/signalr/signalr/negotiate?clientProtocol=1.4&connectionData=[%7B%22Name%22:%22protectedhub%22%7D] HTTP/1.1
User-Agent: SignalR.Client.NET45/2.1.2.0 (Microsoft Windows NT 6.2.9200.0)
userid: userid123
Host: signalrios.azurewebsites.net
Connection: Keep-Alive
HTTP/1.1 200 OK
Cache-Control: no-cache
Pragma: no-cache
GET http://signalrios.azurewebsites.net/signalr/signalr/negotiate?clientProtocol=1.3.0.0&connectionData=%5B%7B%22Name%22%3A%22protectedhub%22%7D%5D HTTP/1.1
HTTP/1.1 200 OK
POST http://signalrios.azurewebsites.net/signalr/signalr/send?transport=webSockets&connectionData=%5B%7B%22Name%22%3A%22protectedhub%22%7D%5D&connectionToken=5W1YtaGiWBh1A43IzC%2Fn2fwVpOA1e3inKJzGG8s9bczfncIx8vfu%2FVka50p1y5dD5w1MaZUPaWxXXECm5ChqdGM5aFk0hYUO%2B4OyAQ6Fe5BkmqZU3bxSHdrVLNMCflKTw2IyE5Ot8IW47uu7uOIj4g%3D%3D HTTP/1.1
Host: signalrios.azurewebsites.net
userid: appsfactoryUser
Content-Type: application/x-www-form-urlencoded
@chgeuer
chgeuer / build-testdouble-website.sh
Last active August 29, 2015 14:06
build-testdouble-website.sh
sudo apt-get install git
sudo apt-get install node
sudo apt-get install npm
sudo npm install -g lineman
git clone https://github.com/testdouble/double-takes.git
cd double-takes
npm install
gem install sass
gem install bundle
@chgeuer
chgeuer / CopyAzureBlob.ps1
Last active August 29, 2015 14:03
Copy existing Azure blob to a different Azure blob
# Copy existing Azure blob to a different Azure blob.
# Main point of this sample is to see the sample data values.
$context = New-AzureStorageContext `
-StorageAccountName storageaccount123 `
-StorageAccountKey deadbeef123==
Start-AzureStorageBlobCopy `
-SrcContext $context `
-SrcContainer "vhds" `
@chgeuer
chgeuer / IoTviaServiceBusSample.cs
Created June 23, 2014 16:54
Shows how to configure access control service with symmetric keys for device identities
namespace IoTDemo
{
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Security.Claims;
using System.Security.Cryptography;
using System.Text;
using System.Threading;
# Azure Cmdlet Reference
# http://msdn.microsoft.com/library/azure/jj554330.aspx
$vmname = "cgp$([System.DateTime]::UtcNow.ToString("yyMMddhhmmss"))"
Write-Host "Machine will be at $($vmname).cloudapp.net"
$subscriptionId = "deadbeef-2222-3333-dddd-1222deadbeef"