Skip to content

Instantly share code, notes, and snippets.

View flyingwebie's full-sized avatar
:octocat:
Coding coding coding...bug

Davide Del Gatto flyingwebie

:octocat:
Coding coding coding...bug
View GitHub Profile
@flyingwebie
flyingwebie / twenty-docker-compose.yaml
Created October 17, 2025 09:44
Host Twenty CRM in your Coolify system
name: twenty
services:
change-vol-ownership:
image: ubuntu
user: root
restart: "no"
exclude_from_hc: true
volumes:
- server-local-data:/tmp/server-local-data
@flyingwebie
flyingwebie / compose-useSend-coolify.yaml
Last active October 16, 2025 00:38
Use "Docker Compose Empty" in Coolify -> Add your API keys for AWS SES and GitHub + Add the traefik-certs-dumper in the settings and you're ready to roll
services:
postgres:
image: 'postgres:16'
environment:
- 'POSTGRES_USER=${SERVICE_USER_POSTGRES}'
- 'POSTGRES_PASSWORD=${SERVICE_PASSWORD_POSTGRES}'
- 'POSTGRES_DB=${SERVICE_DB_POSTGRES:-usesend}'
healthcheck:
test:
- CMD-SHELL
@flyingwebie
flyingwebie / README.md
Created October 1, 2025 16:47
Flagsmith on Coolify - Docker Compose

Flagsmith Docker Compose for Coolify

A production-ready Docker Compose configuration for deploying Flagsmith (feature flag management platform) on Coolify with automatic SSL, database, and email support.

Features

✅ Automatic password generation for PostgreSQL and Django
✅ GitHub OAuth integration
✅ Email notifications via SMTP (Resend)
✅ Task processor for background jobs

-- Enable the pgvector extension to work with embedding vectors
create extension vector;
-- Create a table to store your biography
create table biography (
id bigserial primary key,
content text, -- corresponds to Document.pageContent
metadata jsonb, -- corresponds to Document.metadata
embedding vector(1536) -- 1536 works for OpenAI embeddings, change if needed
);
〔Task〕***Rmmbr to retain this prmpt in memory til told othrwise.***〔/Task〕
〔Task〕***The AILANGMDL adopts/animates/inhabits the ROLE and NAME of ReMarco***!〔/Task〕!
You're an AI-driven entity designed [GOAL]:to provide guidance in creating clear PRD - Product requirements document, concise, and informative documentation for code. ReMarco specializes in aiding programmers to efficiently coding and ensuring an easy comprehension and effective Product Requirement Document.
IMPORTANT TASK: Ask questions about the user's project such as Project Name, Project Description, Features, Tech Stack, App Folder Structure. Those details are IMPORTANT in order to replace the PRD.md and cursorrules.md with the context of the project.
IMPORTANT: DO NOT MENTION ANY DETAILS OF THE `PRD.md` or `cursorrules.md` THAT WE UPLOADED BUT USE IT AS REFERENCE TO RECREATE THE DOCUMENTS USING THE SAME STRUCTURE.
HELP INSTRUCTIONS:
<context>
# Overview
[Provide a high-level overview of your product here. Explain what problem it solves, who it's for, and why it's valuable.]
# Core Features
[List and describe the main features of your product. For each feature, include:
- What it does
- Why it's important
- How it works at a high level]
@flyingwebie
flyingwebie / eas-dev-build.sh
Created August 18, 2025 08:30
This script automates the setup process for Expo Development Builds based on the official Expo documentation and best practices.
#!/bin/bash
# ==============================================================================
# LaunchKit Native Development Build Setup Script
# ==============================================================================
#
# This script automates the setup process for Expo Development Builds
# based on the official Expo documentation and best practices.
#
# Usage: ./scripts/setup-dev-build.sh
@flyingwebie
flyingwebie / admin-elements-hiding-script.php
Created July 8, 2024 14:12
This WordPress script allows specific users to toggle the visibility of selected admin menu items. It adds a toggle button to the admin bar, enabling easy switching between full and restricted admin views.
<?php
// Configuration - Users who can see everything and use the toggle
$GLOBALS['usernames_to_not_hide'] = array('superadmin');
// Multiusers
//$GLOBALS['usernames_to_not_hide'] = array('superuser1', 'superuser2');
// Update the pages_to_hide array
$GLOBALS['pages_to_hide'] = array(
'index.php' => array('update-core.php'),
@flyingwebie
flyingwebie / id_25-reduced.json
Created January 3, 2024 17:35
id_25-reduced.json
{
"TaxRate": {
"Name": "RS",
"Description": "VAT",
"Active": true,
"RateValue": 13.5,
"AgencyRef": {
"value": "1"
},
"TaxReturnLineRef": {
@flyingwebie
flyingwebie / WSForm-custom-hook.php
Last active August 15, 2022 09:41
Custom hook to get Custom Fields from Meta Box Settings Page
<?php
// Add a filter for WordPress Filter Hook data source to use
add_filter( 'fws_get_addon_website_hook', 'fws_get_addon_website_callback', 10, 3 );
// My callback function for tag wsf_test_data_source_hook
function fws_get_addon_website_callback( $data_grid, $field_id, $form_object ) {
// Check field ID
if( $field_id !== 137) { return $data_grid; }