Skip to content

Instantly share code, notes, and snippets.

View bplasmeijer's full-sized avatar
⛑️
24x7

Bart Plasmeijer bplasmeijer

⛑️
24x7
View GitHub Profile
@bplasmeijer
bplasmeijer / sitecore-image-tagging.md
Last active January 15, 2020 15:39 — forked from pbering/sitecore-image-tagging.md
Sitecore Docker Image Tagging

Naming and tagging

...

Naming convention

[REGISTRY/]sitecore-<TOPOLOGY>-<ROLE>[-VARIANT[-VARIANT]]:<SITECORE_VERSION>[-VARIANT_VERSION[-VARIANT_VERSION]]-<OS_REPOSITORY>-<OS_TAG>
#define WIN32_LEAN_AND_MEAN
#include <Windows.h>
#include <TlHelp32.h>
#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
#include <string.h>
#define printerr(e) (fprintf(stderr, e))
@bplasmeijer
bplasmeijer / Profile.ps1
Created November 28, 2019 08:13
PowerShell Core custom prompt (use a PowerLine or nerdfonts.com font) and history persistence per machine
#requires -Version 6
function Get-BranchName
{
$currentPath = Get-Location
while ($true)
{
try
{
@bplasmeijer
bplasmeijer / docker-compose.yml
Last active August 21, 2019 14:11
sitecore-ssr-docker-compose.yml
version: '2.4'
services:
sql:
image: sitecore-xm1-jss-11.0.1-sqldev:9.1.1-windowsservercore-ltsc2019
networks:
xyzlan:
volumes:
- .\data\sql:C:\Data
@bplasmeijer
bplasmeijer / Dockerfile
Created July 28, 2019 21:35 — forked from artisticcheese/Dockerfile
Dockerfile to build IIS + nanoserver + ASP.NET core
# escape=`
# Image with NET CORE installation to extract executables for final image
FROM microsoft/aspnetcore:2.0.0-nanoserver As CoreBuild
# Middleware image used to extract ASP.NET core module
From microsoft/iis as WindowsBuild
SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'Continue'; $verbosePreference='Continue';"]
# Installing NET CORE webhosting in middleware image so latest module and configuration schema is extracted for final image
ADD https://download.microsoft.com/download/B/1/D/B1D7D5BF-3920-47AA-94BD-7A6E48822F18/DotNetCore.2.0.0-WindowsHosting.exe ".\hosting.exe"
@bplasmeijer
bplasmeijer / k8s-pi.md
Created December 20, 2017 20:25 — forked from alexellis/k8s-pi.md
K8s on Raspbian

K8s on (vanilla) Raspbian Lite

Yes - you can create a Kubernetes cluster with Raspberry Pis with the default operating system Raspbian. Carry on using all the tools and packages you're used to with the officially-supported OS.

Pre-reqs:

  • You must use an RPi2 or 3 for Kubernetes
  • I'm assuming you're using wired ethernet (Wi-Fi also works)

Master node setup

@bplasmeijer
bplasmeijer / raspberry pi
Last active December 19, 2017 22:46
raspberry pi docker swarm cluster
quick notes
touch ssh
nano wpa_supplicant.conf
For Raspbian Jessie:
network={
ssid="YOUR_SSID"
@bplasmeijer
bplasmeijer / HabitatSolutionScript.ps1
Created January 29, 2017 21:06 — forked from akshaysura/HabitatSolutionScript.ps1
Create a Sitecore Helix solution from scratch using PowerShell
#paths to the project templates on your system
$global:classTemplate = "D:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\ProjectTemplatesCache\CSharp\Windows Root\Windows\1033\ClassLibrary\csClassLibrary.vstemplate"
$global:webTemplate = "D:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\ProjectTemplatesCache\CSharp\Web\1033\WebApplicationProject40\EmptyWebApplicationProject40.vstemplate"
#variable used to store the path for the empty Habitat folder
$global:helixPath =""
#empty variable used to store the solution name
$global:solutionName = ""
@bplasmeijer
bplasmeijer / MultilingualContentFinder.cs
Created April 22, 2016 11:38 — forked from alindgren/MultilingualContentFinder.cs
ContentFinder for multilingual sites in Umbraco
using System;
using System.Globalization;
using System.Web;
using Umbraco.Web.Routing;
using Umbraco.Core;
public class MultilingualContentFinder : IContentFinder
{
public bool TryFindContent(PublishedContentRequest contentRequest)
{