Skip to content

Instantly share code, notes, and snippets.

@harr1424
harr1424 / DbSeeder.cs
Created November 9, 2023 23:52
Programmatically Seeding Large Amounts of Data using EFCore 7.0
using System.Reflection;
using Blog.Models;
using Newtonsoft.Json;
namespace Blog.Data;
public class DbSeeder
{
private readonly PostContext _postContext;
@harr1424
harr1424 / script.service
Created July 7, 2024 23:12
systemd scheduled script execution
[Unit]
Description=Run Script
[Service]
Type=simple
ExecStart=/home/ec2-user/script.sh