Skip to content

Instantly share code, notes, and snippets.

View gist:6135f0a04225d348b598187e0c04d88d
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 / smx8fancontrol
Last active Jul 19, 2020 — forked from ikus060/smx8fancontrol
Python script to edit the X8DTL-iF Registry to control fan speed.
View smx8fancontrol
#!/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