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
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(
@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"