Skip to content

Instantly share code, notes, and snippets.

@Rensvind
Rensvind / emuelec-ng.start
Last active December 28, 2019 14:08
Add EmuELEC addon support to IAGL
#!/bin/sh
################################################################################
# Launch games using CoreELEC with EmuELEC-ng addon
################################################################################
. /etc/profile
RETROARCH_EXE="/storage/.kodi/addons/script.emuelec.Amlogic-ng.launcher/bin/retroarch"
@Rensvind
Rensvind / AutoMapper.cs
Created June 13, 2019 11:46
Problem when mapping DateTime
static void Main(string[] args)
{
var config = new MapperConfiguration(cfg =>
{
cfg.CreateMap<Period1, Period2>()
.ForMember(x => x.StartDate, o => o.MapFrom(p => p.Start))
.ForMember(x => x.EndDate, o => o.MapFrom(p => p.End));
});
config.AssertConfigurationIsValid();
@Rensvind
Rensvind / NServiceBus + Serilog
Created June 19, 2018 13:00
NServiceBus Seilog
using System;
using System.Data.SqlClient;
using System.Threading.Tasks;
using NServiceBus;
using NServiceBus.Persistence.Sql;
using NServiceBus.Serilog;
using NServiceBus.Serilog.Tracing;
using NServiceBus.Transport.SQLServer;
using Serilog;