Skip to content

Instantly share code, notes, and snippets.

View leifermendez's full-sized avatar
👋
Focusing

Leifer Mendez leifermendez

👋
Focusing
View GitHub Profile
@leifermendez
leifermendez / brand.vue
Created March 25, 2025 16:28
brand.vue
<script>
import globalConfigMixin from 'shared/mixins/globalConfigMixin';
const {
LOGO_THUMBNAIL: logoThumbnail,
BRAND_NAME: brandName,
WIDGET_BRAND_URL: widgetBrandURL,
} = window.globalConfig || {};
export default {
@leifermendez
leifermendez / prompt-ai-builderbot.txt
Created March 14, 2025 12:02
prompt-ai-builderbot.txt
Guía paso a paso para desarrollar AI Builderbot
Aquí tienes una guía clara y sencilla que puedes compartir con tu programador junior para implementar la aplicación AI Builderbot:
Fase 1: Preparación del proyecto
Crear el proyecto base
Inicia un nuevo proyecto de Next.js con soporte para React y TailwindCSS
Organiza la estructura de carpetas para separar componentes, páginas y estilos
Configuración inicial
Asegúrate de que TailwindCSS esté correctamente configurado
Establece los colores y temas principales de la aplicación
Implementa la fuente "Inter" de Google Fonts como fuente principal de toda la aplicación
@leifermendez
leifermendez / template-n8n-nocode-db.json
Created January 16, 2025 19:03
template-n8n-nocode-db.json
{
"name": "Gestionar Leads",
"nodes": [
{
"parameters": {
"authentication": "nocoDbApiToken",
"operation": "getAll",
"workspaceId": "w3ec7sio",
"projectId": "pu3qowvlwu121f9",
"table": "myexlxkv6mt86w9",
@leifermendez
leifermendez / prompt-ai-learning.txt
Created December 2, 2024 20:17
prompt ai-learning
Crear una landing page diseño "pixel perfect" con muy buena UX/UI con transiciones modernas, inspirate los detalles de la captura de la landing que adjunte quiero que sea igual o casi igual, video en el centro que tiene un efecto hover, usa una imagen de upsplash que sirva como cover de un video. standard 16:9 aspect ratio.standard 16:9 aspect ratio.
Key Design Elements:
Clean, minimal design with lots of whitespace
Soft, mint/sage green background (#F7F9F8)
Modern typography with a bold headline and subtle descriptive text
Centered video player with hover effects and rounded corners
Small "Updated" badge with subtle styling
Professional navigation bar with clear hierarchy
@leifermendez
leifermendez / service.txt
Created October 28, 2024 19:53
service.txt
[Unit]
Description=Mi Contenedor Docker
Requires=docker.service
After=docker.service
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/usr/bin/docker start nombre_contenedor
ExecStop=/usr/bin/docker stop nombre_contenedor
@leifermendez
leifermendez / example.sh
Created October 28, 2024 19:48
example.sh
#!/bin/bash
# Verificar si se ejecuta como root
if [ "$(id -u)" != "0" ]; then
echo "Este script debe ejecutarse como root (sudo)"
exit 1
fi
echo "Iniciando configuración del daemon de Docker..."
@leifermendez
leifermendez / template_seller_v1.json
Created September 5, 2024 08:02
template_seller_v1.json
[
{
"options": {
"listenKeywords": false
},
"uuid": "__LINK_0__",
"name": "Bienvenida y Ofertas Iniciales",
"label": "Nuevo Flow",
"sort": 0,
"sensitive": false,
@leifermendez
leifermendez / template_calendar_v1.json
Created August 29, 2024 08:35
template_calendar_v1.json
[
{
"uuid": "__LINK_0__",
"name": "CAL/Pregunta Fecha",
"label": "Nuevo Flow",
"sort": 0,
"sensitive": false,
"keyword": [
"EVENTS.ACTION"
],
@leifermendez
leifermendez / main.ts
Created August 29, 2024 07:28
telegram and builderbot
import { createBot, createProvider, createFlow, addKeyword } from '@builderbot/bot'
import { MemoryDB as Database } from '@builderbot/bot'
import { TelegramProvider as Provider } from '@builderbot-plugins/telegram'
const PORT = process.env.PORT ?? 3008
const welcomeFlow = addKeyword<Provider, Database>(['hi', 'hello', 'hola'])
.addAnswer(`🙌 Hello welcome to this *Chatbot*`)
.addAnswer(
[
'I share with you the following links of interest about the project',
@leifermendez
leifermendez / template_asistente_general.json
Created August 26, 2024 09:00
template_asistente_general.json
[
{
"uuid": "__LINK_0__",
"name": "AI: Asistente",
"label": "Nuevo Flow",
"sort": 0,
"sensitive": false,
"keyword": [
"EVENTS.ACTION"
],