Skip to content

Instantly share code, notes, and snippets.

View BoManev's full-sized avatar
💭
wasting CPU cycles

Bozhidar Manev BoManev

💭
wasting CPU cycles
View GitHub Profile
@BoManev
BoManev / emailoctopus-tRPC-example
Last active August 7, 2023 01:42
Example how to call EmailOctopus API using tRPC and zod
import { z } from "zod";
import { createTRPCRouter, publicProcedure } from "~/server/api/trpc";
import { env } from "../../../env.mjs";
import { TRPCError } from "@trpc/server";
const Sub = z.object({
id: z.string(),
});
export const SubscriptionRouter = createTRPCRouter({
@BoManev
BoManev / minimal-samba-config
Created August 7, 2023 01:47
Minimal unrestricted samba config for use in private LAN
// smb.conf
[global]
server string = File Server
workgroup = WORKGROUP
client min protocol = NT1
security = user
map to guest = Bad User
name resolve order = bcast host
include = /etc/samba/shares.conf