Skip to content

Instantly share code, notes, and snippets.

View laurentkempe's full-sized avatar
🚀
❤✨

Laurent Kempé laurentkempe

🚀
❤✨
View GitHub Profile
@laurentkempe
laurentkempe / docker-compose.exe
Last active February 2, 2017 15:03
Free HTTPS certificates for Docker containers running ASP.NET Core RC2 on Microsoft Azure
> docker-compose.exe up -d
Starting hipchatconnect_hipchatconnect_1
Starting hipchatconnect_https-portal_1
C:\Users\Laurent
> docker-machine create --driver azure --azure-location westeurope --azure-subscription-id ADDYOURS hipchatconnect
Running pre-create checks...
(hipchatconnect) Completed machine pre-create checks.
Creating machine...
(hipchatconnect) Querying existing resource group. name="docker-machine"
(hipchatconnect) Resource group "docker-machine" already exists.
(hipchatconnect) Configuring availability set. name="docker-machine"
(hipchatconnect) Configuring network security group. name="hipchatconnect-firewall" location="westeurope"
(hipchatconnect) Querying if virtual network already exists. name="docker-machine-vnet" location="westeurope"
@laurentkempe
laurentkempe / Dockerfile
Last active May 17, 2016 20:17
ASP.NET Core RC2, Docker and HipChat Connect add-on
FROM microsoft/dotnet
# Set environment variables
ENV ASPNETCORE_URLS="http://*:5000"
ENV ASPNETCORE_ENVIRONMENT="Development"
# Copy files to app directory
COPY . /app
# Set working directory
Set-ExplorerOptions -showHiddenFilesFoldersDrives -showProtectedOSFiles -showFileExtensions
cinst 7zip
cinst 7zip.install
cinst autohotkey.portable
cinst win32diskimager.portable
cinst testdisk-photorec
cinst crystaldiskmark
<#
.SYNOPSIS
This is a Powershell script to upload a file to DropBox using their REST API.
.DESCRIPTION
This Powershell script will upload file to DropBox using their REST API with the parameters you provide.
.PARAMETER SourceFilePath
The path of the file to upload.
@laurentkempe
laurentkempe / build.cake
Created April 1, 2016 09:09
build.cake sample
//////////////////////////////////////////////////////////////////////
// ARGUMENTS
//////////////////////////////////////////////////////////////////////
var target = Argument("target", "Default");
var configuration = Argument("configuration", "Release");
//////////////////////////////////////////////////////////////////////
// PREPARATION
//////////////////////////////////////////////////////////////////////
Task("Run-Unit-Tests")
.IsDependentOn("Build")
.Does(() =>
{
DotCoverCover(tool => {
tool.NUnit3(testDlls, new NUnit3Settings {
NoResults = true,
TeamCity = isOnTeamCity
});
},
@laurentkempe
laurentkempe / CakeReSharperCodeInspectionTask.cs
Created March 24, 2016 06:42
Cake ReSharper Code Inspection Task
Task("ReSharper-Code-Inspection")
.IsDependentOn("Run-Unit-Tests")
.Does(() =>
{
var result = new FilePath(buildArtifacts + "/_ReSharperReports/inspectcode-report.xml");
InspectCode("InspecCode.sln",
new InspectCodeSettings() {
SolutionWideAnalysis = true,
Profile = "InspectCode.DotSettings",
@laurentkempe
laurentkempe / Microsoft.PowerShell_profile.ps1
Created March 10, 2016 08:13
Function to start VS and ReSharper on RamDisk
function vs([string]$solution) {
$env:TEMP = "R:\VsTemp";
$env:TMP = "R:\VsTemp";
& "C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\devenv.exe" $solution
# startProcessHigh "C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\devenv.exe" . $solution
}
@laurentkempe
laurentkempe / Bootstrapper.cs
Last active September 10, 2015 21:48 — forked from codeprogression/Bootstrapper.cs
StructureMapBootstrapper for WPF Prism Applications
using System;
using System.Windows;
using Microsoft.Practices.Prism.Modularity;
namespace CodeProgression.Common.Prism
{
public class Bootstrapper : StructureMapBootstrapper
{
protected override void ConfigureContainer()
{