Skip to content

Instantly share code, notes, and snippets.

View alex-oswald's full-sized avatar

Alex Oswald alex-oswald

View GitHub Profile
@alex-oswald
alex-oswald / MockDb.cs
Last active September 17, 2020 06:08
MockDb Helper
namespace MockDbHelper
{
using Microsoft.Data.Sqlite;
using Microsoft.EntityFrameworkCore;
using System;
public class MockDb<TContext> : IDisposable
where TContext : DbContext
{
private readonly SqliteConnection _connection = new SqliteConnection("DataSource=:memory:");
@alex-oswald
alex-oswald / disable-sleep-timer-on-a-fire-stick.md
Last active September 17, 2020 05:42
Disable Sleep Timer on a Fire Stick

Turn off Screensaver

  1. Settings > Display & Sounds > Screensaver > Start Time > Never
settings get system screen_off_timeout

Disable Sleep Timeout

@alex-oswald
alex-oswald / FluentBuilderExample.cs
Created December 9, 2021 09:50
Fluent builder example
var person = PersonBuilder.Create()
.Age(30)
.FirstName("First")
.LastName("Last")
.Build();
Console.WriteLine(person);
public interface IPersonBuilder
{