Skip to content

Instantly share code, notes, and snippets.

View alnutile's full-sized avatar

Alfred Nutile alnutile

View GitHub Profile
https://www.youtube.com/@AlfredNutile
https://DailyAi.Studio
https://bit.ly/m/alnutile
@alnutile
alnutile / Alfred Nutile
Last active March 13, 2025 20:16
Alfred Nutile
____ _ _ _ ___ ____ _ _ _
| _ \ __ _ (_)| | _ _ / \ |_ _| / ___|| |_ _ _ ___ | | (_) ___
| | | | / _` | | || | | | | | / _ \ | | \___ \| __|| | | | / _ \| | | | / _ \
| |_| || (_| | | || | | |_| | / ___ \ | | ___) | |_ | |_| || (_) | | | || (_) |
|____/ \__,_| |_||_| \__, |/_/ \_\ |___| |____/ \__| \__,_| \___/|_| |_| \___/
|___/
$ _
Alfred Nutile @ DailyAi.Studio
Learn more at https://www.youtube.com/@AlfredNutile
@alnutile
alnutile / supabase
Last active March 13, 2025 14:21
Getting supabase setup with flowise
-- Enable the pgvector extension to work with embedding vectors
create extension vector;
-- Create a table to store your documents
create table documents (
id text primary key, -- CHANGE TO TEXT
content text,
metadata jsonb,
embedding vector(1536)
);
@alnutile
alnutile / Dockerfile
Created March 1, 2025 19:05
Might be a better way to host lovable on coolfiy
# Build stage
FROM node:20-alpine as builder
WORKDIR /app
# Copy package files
COPY package*.json ./
COPY bun.lockb ./
# Install dependencies
@alnutile
alnutile / claude_install_notes.md
Created January 1, 2025 07:11
All the install notes from Claude

N8N Running on Main Server

Here's a comprehensive README for setting up n8n on Ubuntu with Nginx:

n8n Server Setup Guide

Prerequisites

  • Ubuntu Server
  • Node.js >= 18.17
@alnutile
alnutile / AboutTheBook.md
Created October 5, 2024 12:41
🚀 PHP and LLMs - the practicaal guide

About the Book

This book is a practical guide for PHP developers navigating the rapidly evolving landscape of Large Language Models (LLMs). Moving beyond the hype, it delves into real-world applications and solutions, providing step-by-step instructions on how to integrate LLMs into your existing projects.

From mastering prompts to building reusable tools and working with various LLMs, this book equips you with the skills needed to leverage the power of Ai in everyday development tasks.

Whether you’re looking to automate complex workflows, enhance content verification, or simply stay ahead in a changing industry, this book offers the insights and hands-on examples to get you there. This isn’t just another “Hello World” guide—it’s a deep dive into the future of PHP development, focusing on real solutions that drive real results.

Sample book here https://bit.ly/php_llms_sample

@alnutile
alnutile / session
Created November 25, 2023 19:29
session inertia
request()->session()->flash('flash.banner', 'Message sent, Thank you!');
<?php
namespace App\Services;
use Spatie\Tags\Tag;
use Ramsey\Uuid\Uuid;
use App\Models\Recall;
use App\Tagging\Subscribables;
use Illuminate\Database\Eloquent\Model;
use Google\Cloud\Firestore\FirestoreClient;
@alnutile
alnutile / coverage-checker.php
Created January 1, 2019 11:50
Code Coverage Checker
<?php
// coverage-checker.php
//https://ocramius.github.io/blog/automated-code-coverage-check-for-github-pull-requests-with-travis/
$inputFile = $argv[1];
$percentage = min(100, max(0, (int) $argv[2]));
if (!file_exists($inputFile)) {
throw new InvalidArgumentException('Invalid input file provided');
}
<?xml version="1.0" encoding="UTF-8"?>
<phpunit bootstrap="vendor/autoload.php"
backupGlobals="false"
backupStaticAttributes="false"
colors="true"
verbose="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="false"