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
aad_tenant_id = "f1c9b125-e2bf-48c0-b025-23e47c410293"
client_id = "1326f47c-eaea-42aa-8aa8-ff99fbaf3da9"
client_secret = "..."
aad_host = "https://login.microsoftonline.de/"
management_url = "https://management.microsoftazure.de/"
fiddler_opts = [ proxy: "http://127.0.0.1:8888", ssl_options: [ cacertfile: "/Users/chgeuer/Desktop/fiddler.cer"] ]
token = OAuth2.Client.new([
strategy: OAuth2.Strategy.ClientCredentials,
site: aad_host <> aad_tenant_id,
token_url: "/oauth2/token?api-version=1.0",
  • BRK1036 Building applications with Microsoft Azure Service Fabric on Windows and Linux
  • BRK1042 Run Bash scripts from Windows 10
  • BRK2085 Understand the future of software development in the cloud with the Azure Application Platform
  • BRK2102 Transform yourself and build your IT cloud career path
  • BRK2122 Use Azure Security Center to prevent, detect, and respond to threats
  • BRK2156 Reinvent disaster recovery leveraging Microsoft Azure cloud infrastructure
  • BRK2158 See Why Microsoft Loves Linux and Open Source
  • BRK2194 Azure Compute and Cloud Applications
  • BRK2199 Satisfy your need for speed - Hendrick Motorsports and Azure, winning together
  • BRK2201 Dive into Scenarios and Customer Success Stories with Azure Storage

Debugging packer by logging to to the currently provisioned VM

  • Open the current packer log file in the TEMP directory, something like %TEMP%packer-log722498239, in a text editor.
  • Find the string \"osProfile\":{\"adminPassword\":\". There you can see your admin password, something like 9RQF11ZTRL1W3YfQN3LpJ7Jib9gfkgXa...
  • Figure out the public IP address of your Windows VM, for example through resources.azure.com.
  • Run the following:
$address = "13.81.111.231"
@chgeuer
chgeuer / c.md
Last active August 17, 2016 13:11

prod

24x7 über 36 Monate

2x D1v2  Apache Reverse Proxy Router
4x D2v2  E-Com AppServer
1x D3v2  E-Com Batch & Adminsvr
3x DS1v2 Solr + ZooKeeper

I created VMs (OpenLogic/CentOS/7.2/latest) with "disablePasswordAuthentication": "true" (See my template. My local username is "chgeuer".

When I launch VMs in "Europe West" / Amsterdam, the file /etc/sudoers.d/waagent reads like this:

chgeuer ALL = (ALL) NOPASSWD: ALL

So I can sudo su without a password prompt. Good!

When I look at my Germany Central / Frankfurt VM, the file /etc/sudoers.d/waagent reads like this:

echo "$2" > host.txt
apt-get update -y
apt-get install -y unzip apache2 php5 php5-mysql
/usr/sbin/a2enmod rewrite expires headers
tar xvfz "$1" --directory /
  • Whatsapp
// problem ?
// Microsoft.IdentityModel.Clients.ActiveDirectory.3.9.302111717-alpha\lib\net45\Microsoft.IdentityModel.Clients.ActiveDirectory.dll
private static X509Certificate2 FromStore(string certThumbPrint)
{
var store = new X509Store(storeName: StoreName.My, storeLocation: StoreLocation.CurrentUser);
try
{
store.Open(OpenFlags.ReadOnly);
var cert = store.Certificates.Find(