Skip to content

Instantly share code, notes, and snippets.

View feliche93's full-sized avatar

Felix Vemmer feliche93

View GitHub Profile
@feliche93
feliche93 / discord_midjourney_automation.py
Created July 3, 2023 08:44
Discord Midjourney Image Automation
import asyncio
import os
from getpass import getpass
from pathlib import Path
from typing import Dict, List, Optional
import boto3
import requests
from dotenv import load_dotenv
from playwright.async_api import Page, async_playwright
@feliche93
feliche93 / route.ts
Created August 28, 2023 08:15
Browserless.io Next.js Edge Route, scraping Website Content
import { SScrapingResult, SWebsiteInfoInput, SWebsiteInfoOutput } from '@lib/zod-models';
import { NextResponse } from 'next/server';
import { z } from 'zod';
export const runtime = 'edge'
export async function POST(request: Request) {
const data = await request.json();
const startTime = Date.now();
@feliche93
feliche93 / app.py
Last active August 28, 2023 08:38
FastAPI App for Webscraping on Modal.com
"""
This module defines the FastAPI application and its endpoints.
It includes the endpoint for scraping a website and potentially an endpoint for finding contacts.
The application is wrapped with a stub function for deployment.
"""
from typing import Any
from common import ENV, image, secret, stub
from fastapi import FastAPI
@feliche93
feliche93 / client.ts
Created August 28, 2023 09:10
FastAPI to Typescript Fetch with openapi-fetch
import createClient from "openapi-fetch";
import { paths } from "./v1";
export const { GET, POST } = createClient<paths>({ baseUrl: "/fast-api" });
@feliche93
feliche93 / cloud_config.sh
Created January 21, 2025 14:49
Coolify Cloud Config
#cloud-config
# This config is written for Ubuntu 24.04
users:
- name: heuristiq
ssh_authorized_keys:
- "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBdhhcyVg+gFKXh3ODUtctEkIyImqFKAqUe0Q7MViiTG Hetzner Heuristiq"
sudo: ALL=(ALL:ALL) ALL
groups: sudo
shell: /bin/bash
chpasswd:

Tech Stack

Core Framework & Runtime

  • Next.js 15 (canary) - React framework with App Router and experimental features (PPR, useCache)
  • React 19.1.0 - UI library with Server Components
  • TypeScript 5.8.3 - Type-safe development
  • Bun - JavaScript runtime and package manager

Database & ORM

  • PostgreSQL - Primary database