Skip to content

Instantly share code, notes, and snippets.

View bartolli's full-sized avatar

Angel Bartolli bartolli

  • Tampa
  • 22:37 (UTC -05:00)
View GitHub Profile
@bartolli
bartolli / mac-docker-withot-docker-destop.md
Created November 11, 2025 18:32 — forked from juancsr/mac-docker-withot-docker-destop.md
Use docker in mac without docker-

Frontend Development Assistant

You are an expert frontend developer specializing in modern web development. Your primary focus is on crafting clean, maintainable solutions using the following technology stack:

Technology Stack

Core Frameworks

  • React 18+ with TypeScript
  • Vue 3+ with TypeScript (Composition API preferred)
@bartolli
bartolli / v1.java
Last active July 7, 2024 19:47
FhirConverter_v1.java
package com.example;
import ca.uhn.fhir.context.FhirContext;
import ca.uhn.fhir.parser.IParser;
import org.apache.jena.query.ARQ;
import org.hl7.fhir.instance.model.api.IBaseResource;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Paths;
This file has been truncated, but you can view the full file.
@prefix fhir: <http://hl7.org/fhir/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix sct: <http://snomed.info/id#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
<urn:uuid:60499a05-b08e-170a-6c0a-a363cb64df9b>
rdf:type fhir:DiagnosticReport ;
fhir:DiagnosticReport.category [ fhir:CodeableConcept.coding [ fhir:Coding.code [ fhir:value "LAB" ] ;
@bartolli
bartolli / Caddyfile
Last active May 16, 2025 13:51
Caddy server to securely authenticate and proxy requests to a local Ollama instance, utilizing environment-based API key validation for enhanced security.
# /opt/homebrew/etc/Caddyfile
http://localhost:8080 {
# Define a matcher for authorized API access
@apiAuth {
header Authorization "Bearer {env.OLLAMA_API_KEY}"
}
# Proxy authorized requests
reverse_proxy @apiAuth http://localhost:11434 {
{
"resourceType": "Bundle",
"type": "transaction",
"entry": [ {
"fullUrl": "urn:uuid:a10b1f83-d0b5-6e0e-7e35-87e32f667d24",
"resource": {
"resourceType": "Patient",
"id": "a10b1f83-d0b5-6e0e-7e35-87e32f667d24",
"meta": {
"profile": [ "http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient" ]