Skip to content

Instantly share code, notes, and snippets.

internal static class LiteDbExtension
{
internal static void AddLiteDbRegistries(this IServiceCollection collection)
{
collection.AddTransient<LiteDB.ILiteCollection<Persistence.Entity.xxxxxx>>(serviceProvider =>
{
var database = serviceProvider.GetRequiredService<LiteDB.LiteDatabase>();
return database.GetCollection<Persistence.Entity.xxxxxx>();
});
}
@timemaster67
timemaster67 / smx8fancontrol
Last active February 24, 2022 15:27 — forked from ikus060/smx8fancontrol
Python script to edit the X8DTL-iF Registry to control fan speed.
#!/usr/bin/env python
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0