Skip to content

Instantly share code, notes, and snippets.

View chuikoffru's full-sized avatar
🤓
I'm looking for a remote job as Frontend Teamlead.

Konstantin Chuykov chuikoffru

🤓
I'm looking for a remote job as Frontend Teamlead.
View GitHub Profile

1. Добавляем документацию Dify в Cursor

2. Правила для Cursor

  • Чувствительные данные храни в .env файле, не допускай утечек на клиентской стороне.
  • Инициализацию нового проекта на next.js всегда начинай с команды npx create-next-app@latest . --yes вместо генерации с нуля.

3. MCP для Cursor

@chuikoffru
chuikoffru / Dockerfile
Created October 8, 2023 15:18
Build Qwik + Bun + Prisma ORM
# syntax=docker/dockerfile:1
# Comments are provided throughout this file to help you get started.
# If you need more help, visit the Dockerfile reference guide at
# https://docs.docker.com/engine/reference/builder/
ARG DATABASE_URL
################################################################################
# Use node image for base image for all stages.
@chuikoffru
chuikoffru / fastify-prisma-session.ts
Created August 1, 2023 04:19
Get userId from prisma user db by session from cookie
import type {FastifyPluginAsync} from "fastify";
import fastifyPlugin from "fastify-plugin";
import cookie from "@fastify/cookie";
import session from "@fastify/session"
declare module 'fastify' {
interface Session {
user_id: string
}