Skip to content

Instantly share code, notes, and snippets.

View sostenesapollo's full-sized avatar

Sóstenes Apollo sostenesapollo

View GitHub Profile
function fish_prompt --description 'Uma linha de info + linha do ➜'
set -l laststatus $status
if test $laststatus -eq 127
and set -q __fish_autocd_ok
set laststatus 0
end
set -e __fish_autocd_ok
set -l home_norm (string trim -r / $HOME)
set -l pwd_norm (string trim -r / $PWD)
@sostenesapollo
sostenesapollo / typebot-coolify.yaml
Created March 10, 2026 11:38 — forked from itxtoledo/typebot-coolify.yaml
Docker Compose for deploying a Typebot instance on Coolify with little to no configuration
x-typebot-common: &typebot-common
depends_on:
postgresql:
condition: service_healthy
# redis:
# condition: service_healthy
maildev:
condition: service_started
x-typebot-env: &typebot-env
@sostenesapollo
sostenesapollo / docker-compose.yml
Created January 21, 2025 12:56
Elastic search and kibana Docker compose
version: '3.7'
services:
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:8.10.1
container_name: elasticsearch
environment:
- discovery.type=single-node
- xpack.security.enabled=false
ports:
- "9200:9200"
import { createCheckoutSession } from "@/stripe.server";
import { ActionFunctionArgs, json, redirect } from "@remix-run/node";
import { nanoid } from "nanoid";
import { createClient } from "@/supabase.server";
import { sendMail } from "./mail.$name/send-mail";
export const action = async ({ request }: ActionFunctionArgs) => {
const body = await request.json();
// USD - Price as default
@sostenesapollo
sostenesapollo / template.ejs
Created October 1, 2024 11:17
template.ejs
<!DOCTYPE html>
<html>
<head>
<title>Email Subject</title>
</head>
<body>
<h1>Hello, {{ name }}!</h1>
<p>Your order has been shipped.</p>
<p>Order ID: {{ orderId }}</p>
</body>
import { memo } from 'react';
import { Handle, Position } from 'reactflow';
import { nodesConfigs } from '@/routes/dashboard.whatsapp';
import { NodeBase, NodeDescription, NodeTitle } from './node-base';
import { MessagesPreview } from './messages-preview/messages-preview';
import { decisionAlternatives } from '@/components/whatsap-flow/alternatives-alternatives-if-node-message/alternatives-alternatives-if-node-message';
import Divider from '@/components/ui/divider';
import { Icons } from '@/components/icons/icons';
function IfNode({ data, id, ...props }) {
@sostenesapollo
sostenesapollo / Ubuntu 16.04
Created June 20, 2024 13:50 — forked from dhoeric/Ubuntu 16.04
install-docker-aws-ec2-user-data
#!/bin/bash
# Install docker
apt-get update
apt-get install -y apt-transport-https ca-certificates curl software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) \
stable"
apt-get update
function pressRightArrow() {
// Identifica o elemento que deve receber o evento de tecla
const element = document.activeElement || document.body;
// Cria o evento de pressionamento da tecla (keydown)
const keydownEvent = new KeyboardEvent('keydown', {
key: 'ArrowRight',
code: 'ArrowRight',
keyCode: 39,
which: 39,
import axios from "axios"
import { ModalTop } from "~/components/modal-top"
import { notify } from "~/components/snackbar"
import { useAddProductContext } from "./helpers/use-add-product-context"
import CurrencyInput from "~/components/money-field"
import Label from "./label"
import { Input } from "~/components/input"
import { useStockContext } from "../../stock/helpers/use-stock-context"
import { defaultProductData } from "./helpers/use-add-product-context"
import CategorySelection from "./category-selection"