Skip to content

Instantly share code, notes, and snippets.

@wtw24
wtw24 / README.md
Created April 10, 2025 07:18 — forked from butschster/README.md
Useful prompts

Context Generator: Shared Prompts Gist

I've created this Gist with a collection of ready-to-use prompts for Context Generator's MCP server. This showcases one of its most powerful features - the ability to import shared prompts from external sources.

Introduction

This Gist provides a library of pre-configured prompts that can be easily imported into any Context Generator project. These prompts are designed to help with common development tasks when working with Context Generator and LLMs.

Why This Is Extremely Useful

#Reference: https://www.smarthomebeginner.com/traefik-reverse-proxy-tutorial-for-docker
# Setup bitwarden database
# docker exec -it mariadb mysql -uroot -p$MYSQL_ROOT_PASSWORD
# CREATE DATABASE bitwarden CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci;
# GRANT ALL PRIVILEGES ON bitwarden.* TO 'bitwarden'@'bitwarden.traefik_proxy' IDENTIFIED BY '<password>';
# FLUSH PRIVILEGES;
# exit
@wtw24
wtw24 / n-errorbag.js
Created March 9, 2019 23:23 — forked from nonsocode/n-errorbag.js
A simple Frontend Validation Error bag meant to work with Laravel validation
class ErrorBag {
constructor(errors = {}) {
this.setErrors(errors);
}
hasErrors() {
return !!this.keys.length;
}
get keys() {
@wtw24
wtw24 / tokens.md
Created June 11, 2018 13:18 — forked from zmts/tokens.md
Про токены, JSON Web Tokens (JWT), аутентификацию и авторизацию. Token-Based Authentication

Про токены, JSON Web Tokens (JWT), аутентификацию и авторизацию. Token-Based Authentication

Preconditions:

В данной заметке рассматривается работа JWT с симметичным алгоритмом шифрования (HS256/HS384/HS512)

Основы:

Аутентификация(authentication, от греч. αὐθεντικός [authentikos] – реальный, подлинный; от αὐθέντης [authentes] – автор) - это процесс проверки учётных данных пользователя (логин/пароль). Проверка подлинности пользователя путём сравнения введённого им логина/пароля с логином/паролем, сохранённым в базе данных пользователей.

Авторизация(authorization — разрешение, уполномочивание) - это проверка прав пользователя на доступ к определенным ресурсам.