Skip to content

Instantly share code, notes, and snippets.

View mezotv's full-sized avatar

Dominik Koch mezotv

View GitHub Profile
@mezotv
mezotv / prompt.txt
Last active April 6, 2025 11:13
Vercel V0 Default Prompt
Hello v0 I for the website I am asking you to make I want you to follow a few guidelines such as the following unless I tell you otherwise, make sure most of the site can be SSR rendered and even if not create a subpage that includes metadata for the page and renders the rest client side, that being said always include some basic meta tags on each page. I want you to always use shadcn components and provide a list of the components you used + the pnpm command to install those into my project this also counts for any npm packages you want to install; I want you to think about the design first creating a structure in your memory. Unless I upload pictures, I always want you to use stock images from unsplash instead of trying to create your own. While thinking about the design also think about additional pages such as subpages, login/register etc that might be required for a seamless experience browsing the generated website and include those without me having to ask for them. While you are generating a page, pl
@mezotv
mezotv / topgg-webhook-docs.md
Last active February 22, 2025 11:42
Top.gg Webhook Documentation

Top.gg Webhook Documentation

The current documentation is outdated and no longer accurate.

Data Format

The format of the data your webhook URL will receive in a POST request.

Field Type Description
@mezotv
mezotv / automatic_typescript_build_action.md
Last active August 6, 2024 02:51
Github workflow to automate typescript builds every commit.

Automatic Build Workflow

This GitHub Actions workflow automates the process of building your project and updating the build files in the main branch. It's triggered on pushes to the main branch that affect files in the src/ directory, or manually via workflow dispatch.

Workflow Overview

  1. The workflow is triggered on:
    • Push events to the main branch (only when files in src/ are changed)
    • Manual trigger (workflow_dispatch)

Conventional Commit Messages

See how a minor change to your commit message style can make a difference. Examples

Have a look at CLI util git-conventional-commits to ensure this conventions and generate changelogs

Commit Formats

Default

@mezotv
mezotv / DailyMessage.js
Last active February 19, 2023 20:48
DailyMessage.js
const {EmbedBuilder} = require('discord.js');
const mom = require("moment-timezone");
const {ChalkAdvanced} = require("chalk-advanced");
const CronJob = require('cron').CronJob;
module.exports = class DailyMessage {
constructor(c) {
this.c = c;
}
@mezotv
mezotv / WebhookHandler.js
Created February 19, 2023 20:04
WebhookHandler.js
const {
PermissionFlagsBits,
WebhookClient,
EmbedBuilder
} = require('discord.js');
module.exports = class WebhookHandler {
constructor(client) {
this.webhooks = new Map();
this.webhookModel = require('../util/Models/webhookCache');