Skip to content

Instantly share code, notes, and snippets.

View laurentkempe's full-sized avatar
🚀
❤✨

Laurent Kempé laurentkempe

🚀
❤✨
View GitHub Profile
@laurentkempe
laurentkempe / Program.cs
Created October 10, 2020 13:06
Fixing blog permalinks in front matter
using System;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
using Markdig;
using Markdig.Extensions.Yaml;
using Markdig.Syntax;
using YamlDotNet.Serialization;
namespace blogFix
@laurentkempe
laurentkempe / azure-chocolatey-release-pipelines.yml
Last active March 5, 2019 17:27
Azure DevOps for Visual Studio Extensions
steps:
- task: gep13.chocolatey-azuredevops.chocolatey-azuredevops.ChocolateyCommand@0
displayName: 'Chocolatey push'
inputs:
command: push
pushWorkingDirectory: '$(System.DefaultWorkingDirectory)/_GitDiffMargin CI/GitDiffMargin'
pushNupkgFileName: 'GitDiffMargin.$(Build.BuildNumber).nupkg'
pushApikey: 'YOUR_API_KEY'
@laurentkempe
laurentkempe / Compiler.cs
Last active December 14, 2020 16:10
DynamicRun
using System;
using System.IO;
using System.Linq;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.CSharp;
using Microsoft.CodeAnalysis.Text;
namespace DynamicRun.Builder
{
internal class Compiler
@laurentkempe
laurentkempe / Program.cs
Last active June 4, 2017 20:39
ASPNET-Core-MVC-app-running-on-raspberry-pi
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.Logging;
namespace mvc
sudo apt-get install libunwind8 libunwind8-dev gettext libicu-dev liblttng-ust-dev libcurl4-openssl-dev libssl-dev uuid-dev unzip
mkdir hello
cd hello
..\dotnet\dotnet.exe new console
..\dotnet\dotnet.exe restore
..\dotnet\dotnet publish -r ubuntu.16.04-arm
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp2.0</TargetFramework>
<RuntimeFrameworkVersion>2.0.0-preview1-001887-00</RuntimeFrameworkVersion>
<RuntimeIdentifiers>win8-arm;ubuntu.14.04-arm;ubuntu.16.04-arm</RuntimeIdentifiers>
</PropertyGroup>
</Project>
sudo apt-get update
sudo apt-get install openssh-server
sudo ufw allow 22
sudo /etc/init.d/ssh restart
hipchatconnect:
autoredeploy: true
environment:
- 'BASE_URL=https://hipchat.laurentkempe.com'
image: 'laurentkempe/hipchatconnect:latest'
https-portal:
environment:
- 'DOMAINS=hipchat.laurentkempe.com -> http://hipchatconnect:5000'
- STAGE=production
image: 'steveltn/https-portal:latest'