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
youtube-dl https://www.youtube.com/watch?v=tMO28ar0lW8
youtube-dl https://www.youtube.com/watch?v=pVHhmqYozOM
youtube-dl https://www.youtube.com/watch?v=L1-amhlGk7c
youtube-dl https://www.youtube.com/watch?v=5injICmmVII
youtube-dl https://www.youtube.com/watch?v=xzY1C_O3gDk
youtube-dl https://www.youtube.com/watch?v=xzY1C_O3gDk
youtube-dl https://www.youtube.com/watch?v=QRdZDcYq9-Y
youtube-dl https://www.youtube.com/watch?v=QRdZDcYq9-Y
youtube-dl https://www.youtube.com/watch?v=1ocF_9Nc0ik
youtube-dl https://www.youtube.com/watch?v=eXiWPiePX2E
$pfx = "C:\Users\chgeuer\Desktop\Azure Germany Management Certificate (9f64b3d5-fb63-43e6-afa2-d832f709f700)\CN_Christian Geuer-Pollmann Management AzureGermanCloud (9f64b3d5-fb63-43e6-afa2-d832f709f700).p12"
$password = "";
$rawData = [System.IO.File]::ReadAllBytes($pfx)
$authcert = New-Object -TypeName System.Security.Cryptography.X509Certificates.X509Certificate2 -ArgumentList $rawData, $password
$subID = "9f64b3d5-fb63-43e6-afa2-d832f709f700"
$baseurl = "https://management.core.cloudapi.de"
# installer which came with http://www.amazon.de/Kuman-Resolution-Display-Protective-Raspberry/dp/B01FX7909Q/
sudo mkdir /etc/X11/xorg.conf.d
sudo cp -rf ./usr/99-calibration.conf-35 /etc/X11/xorg.conf.d/99-calibration.conf
sudo cp -rf ./usr/99-fbturbo.conf /usr/share/X11/xorg.conf.d/
sudo cp ./usr/tft35a-overlay.dtb /boot/overlays/
sudo cp ./usr/tft35a-overlay.dtb /boot/overlays/tft35a.dtbo
sudo cp ./usr/cmdline.txt /boot/
sudo cp ./usr/inittab /etc/
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: