Skip to content

Instantly share code, notes, and snippets.

View iboughtbed's full-sized avatar
♥️
absolute peace

iboughtbed iboughtbed

♥️
absolute peace
View GitHub Profile
@iboughtbed
iboughtbed / Dockerfile
Created October 5, 2025 16:30
bun-turbo-docker
# Base image with Bun
FROM oven/bun:1.2.23 AS base
# Install turbo CLI
FROM base AS turbo-cli
RUN bun install -g turbo@2.5.9-canary.4
# Builder stage
FROM turbo-cli AS builder
@iboughtbed
iboughtbed / links.md
Created October 6, 2024 17:06
List of the repositories for NASA 2024 Space Apps Application
@iboughtbed
iboughtbed / button.tsx
Created September 17, 2024 10:54
vercel
'use client';
import { Children, useRef, forwardRef, useEffect } from 'react';
import type {
HTMLProps,
CSSProperties,
Ref,
MouseEventHandler,
ReactNode,
ReactElement,
@iboughtbed
iboughtbed / roadmap.md
Last active January 23, 2025 05:07
Frontend Roadmap
@iboughtbed
iboughtbed / actions.ts
Created August 13, 2024 19:05
how to think about security in next.js - server actions
"use server";
// this creates an endpoint that can be called by client-side
// it creates POST REQUEST ENDPOINT
export async function deleteUser(userId: string) {
console.log("deleting user: ", userId);
// problem: anyone can delete any user now
// why: server action becomes an endpoint, which can be accessed by anyone