Skip to content

Instantly share code, notes, and snippets.

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

Bart Plasmeijer bplasmeijer

⛑️
24x7
View GitHub Profile
Name : Sam
Serial : eJzzzU/OLi0odswsqglOzK0xsjQzNzI2NjA1q3GuMQQAnJAJjw==

Transparent Netflix only region unblock with Asuswrt Merlin

Ad-free time!, UnoTelly etc. services provide a nice way to unblock regions for Netflix and others using their custom DNS servers.

But I don't want to direct all my DNS traffic to them and I'm too lazy to manually configure all my devices (phones, tablets, media center boxes etc.). So here's how to transparently unblock Netflix for all your devices using the [Asuswrt Merlin][merlin] firmware. It's a custom router firmware which can be used on the Asus RT-N66U router for example.

Prerequisites

Enable JFFS partition and SSH login from http://<ROUTER-IP>/Advanced_System_Content.asp

@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)
{
@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 / 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 / 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 / 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 / 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 / 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
{