Skip to content

Instantly share code, notes, and snippets.

@Oluwasetemi
Oluwasetemi / transcript.txt
Created April 9, 2026 21:25
ai personal productivity - ed watal
We all know about user personas. You've heard about personas, buyer personas. So imagine if you as your business created a buyer persona agent that you could ask customers to. It's like literally hiring a customer and having them sit in your business all day. And they'll answer all your questions. And just imagine the power of doing that for your business. So now, and that's something we recommend any business should do. Now the question is, how many do you create? And literally, we could do this exercise today if you want to. And let's do that. If you have your computers, let's pull them up. Let's go and create a buyer persona agent. And let's see if it works. You want to do this exercise? Yeah? OK, let's do it. Let's pull up ChatGPT again. Yeah, you need the paid version. Yes, you need the paid version. So yeah, you could use Claude. Yeah, again, you could use Gemini. Yeah, I just keep gravitating to ChatGPD because that's what I use all the time. No, I have faith in Sam Altman but no stock in him. That's g
@Oluwasetemi
Oluwasetemi / README.md
Created March 29, 2026 23:35 — forked from kettanaito/README.md
Publishing to npm in 2026

Prerequisites

  • Use Node.js v24. Trusted Publishing does not work on earlier versions of Node.js.

Steps

  1. Go to "Account > Access Tokens" and click "Generate Access Token".
  2. Give the new token "read and write" persmissions to "All packages".
  3. If you have 2FA enabled on npm (which you should), check the "Bypass 2FA" checkbox neatly hidden in the UI. Otherwise, npm will fail with an error demanding an OTP during automatic publishing.
  4. Create the token.
@Oluwasetemi
Oluwasetemi / crud.jsx
Created March 27, 2026 18:05
CRUD - Create Read Update Delete - Array - UseState
// CRUD - Create Read Update Delete
function SimpleCrud() {
// array of names of student in the class @ this very moment
const [name, setName] = React.useState('');
const [names, setNames] = React.useState([]);
const handleNameChange = (e) => {
setName(e.target.value);
@Oluwasetemi
Oluwasetemi / README.md
Created November 12, 2025 22:37
something to reproduce the deploy bug

PartyKit Servers

This directory contains PartyKit server implementations for real-time multiplayer features.

Available Servers

1. Polls Server (polls.ts)

Real-time polling system where users can create polls, vote, and see results update live.

@Oluwasetemi
Oluwasetemi / index.html
Created November 7, 2025 18:41
teaching modules to my student. To run this code becareful with the comments
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Learning ES Modules</title>
</head>
<body>
<h1>Learning ES Modules</h1>
<script type="module" src="index.js"></script>
@Oluwasetemi
Oluwasetemi / clone.sh
Created October 29, 2025 14:55
An iterated version of my git clone or gh repo clone
function clone() {
if [[ -z $1 ]]; then
echo "Error: Repository name or URL is required."
return 1
fi
input_url="$1"
branch=""
repo_url=""
github_user=""
@Oluwasetemi
Oluwasetemi / vite-plugin-content-assets.ts
Created August 25, 2025 20:49
Sample vite plugin for asset management
import type { Plugin } from "vite";
import fs from "node:fs";
import path from "node:path";
export function contentAssetsPlugin(): Plugin {
return {
name: "content-assets",
configureServer(server) {
// Serve images from content directory
Uncaught Error: can't access property "compileAG", n is null
Ei@https://react.oluwasetemi.dev/assets/modules/shiki-Cx6-teRe.js:2:4914
hl@https://react.oluwasetemi.dev/assets/modules/shiki-Cx6-teRe.js:2:4278
gl@https://react.oluwasetemi.dev/assets/modules/shiki-Cx6-teRe.js:2:3984
d@https://react.oluwasetemi.dev/assets/modules/shiki-Cx6-teRe.js:2:1860
Si@https://react.oluwasetemi.dev/assets/modules/shiki-Cx6-teRe.js:2:1813
_tokenize@https://react.oluwasetemi.dev/assets/modules/shiki-Cx6-teRe.js:3:127
tokenizeLine2@https://react.oluwasetemi.dev/assets/modules/shiki-Cx6-teRe.js:2:8786
tokenize@https://react.oluwasetemi.dev/assets/modules/shiki-Cx6-teRe.js:147:22292
@Oluwasetemi
Oluwasetemi / Nixpack.log
Last active July 14, 2025 12:53
Build Logs
11:42:38 am Initializing build 🏗️
11:42:38 am
11:42:38 am ╔══════════════════════════════ Nixpacks v1.37.0 ══════════════════════════════╗
11:42:38 am ║ setup │ nodejs_18, npm-9_x ║
11:42:38 am ║──────────────────────────────────────────────────────────────────────────────║
11:42:39 am ║ caddy │ pkgs: caddy ║
11:42:39 am ║ │ cmds: caddy fmt --overwrite /assets/Caddyfile ║
11:42:39 am ║──────────────────────────────────────────────────────────────────────────────║
11:42:39 am ║ install │ npm ci ║
11:42:39 am ║──────────────────────────────────────────────────────────────────────────────║
// Run this command to generate base config and vs code settings:
// pnpm dlx @antfu/eslint-config@latest
import antfu from "@antfu/eslint-config";
export default antfu({
type: "app",
typescript: true,
formatters: true,
stylistic: {