Skip to content

Instantly share code, notes, and snippets.

View lucianmachado's full-sized avatar
:octocat:

Lucian lucianmachado

:octocat:
  • 18:26 (UTC -03:00)
View GitHub Profile
@AndrewAltimit
AndrewAltimit / !README.md
Last active December 8, 2025 19:22
AI Toolkit MCP Server (local diffusion AI model trainer)

AI Toolkit MCP Server (local diffusion AI model trainer)

Warning: Requires a powerful GPU!

A containerized AI Toolkit setup with MCP (Model Context Protocol) integration for training LoRA models and fine-tuning diffusion models. This provides a complete solution for training custom LoRA models with full MCP integration, allowing AI assistants to manage the entire training workflow.

Usage

See the template repository for a complete example. Also includes the ComfyUI MCP Server used for creating images/videos from the trained models.

mcp-demo

@AndrewAltimit
AndrewAltimit / !README.md
Last active December 8, 2025 19:22
ComfyUI MCP Server (local image/video generation)

ComfyUI MCP Server (local image/video generation)

Warning: Requires a powerful GPU!

A containerized ComfyUI setup with MCP (Model Context Protocol) integration for AI-driven image generation workflows. Includes both standard MCP (stdio) access and HTTP API access.

Usage

See the template repository for a complete example. Also includes the model training mcp used for creating checkpoints / loras.

mcp-demo

@AndrewAltimit
AndrewAltimit / !README.md
Last active December 8, 2025 19:22
LaTeX MCP Integration
@AndrewAltimit
AndrewAltimit / !README.md
Last active December 8, 2025 19:22
Manim MCP Integration

MCP Server Manim Integration

A complete implementation guide for integrating Manim (Mathematical Animation Engine) with MCP (Model Context Protocol) servers, enabling AI assistants to create programmatic animations and visualizations.

Example Output

Nanite System
@AndrewAltimit
AndrewAltimit / !README.md
Last active December 10, 2025 22:37
Claude Code and Gemini CLI Integration

Gemini AI Integration MCP Server

A Model Context Protocol (MCP) server that integrates Google's Gemini AI for code review, technical consultation, and AI-assisted development workflows. This server provides seamless integration with Claude Code and other MCP-compatible clients.

Usage

@kaustavdm
kaustavdm / main.go
Last active January 17, 2025 00:15
Embed NATS in Go
package main
import (
"flag"
"log"
"github.com/nats-io/nats-server/v2/server"
nats "github.com/nats-io/nats.go"
)
# Install these packages (use your favorite AUR tool here)
yay -S minikube-bin kubectl-bin docker-machine-driver-kvm2 libvirt qemu-headless docker-machine ebtables
# Get libvirt going
sudo systemctl enable libvirtd.service
sudo usermod -a -G libvirt $(whoami)
# This fix thanks to http://blog.programmableproduction.com/2018/03/08/Archlinux-Setup-Minikube-using-KVM/
sudo virsh net-autostart default
@ivan-marquez
ivan-marquez / polling.js
Last active February 3, 2024 00:13
Long polling implementation in Js
const axios = require('axios').default;
function getAPIClient() {
const axiosConfig = {
baseURL: 'https://csrng.net/csrng/csrng.php',
timeout: 5000,
};
return axios.create(axiosConfig);
}
@hanserya
hanserya / ConfigServerApplication.java
Last active March 2, 2022 15:23
Use Mounted Volume for SSH Key-Based Authentication in Dockerized Spring Cloud Config Server
@EnableConfigServer
@SpringBootApplication
@Import(SshLocationOverrideConfiguration.class)
public class ConfigServerApplication {
public static void main(String[] args) {
SpringApplication.run(ConfigServiceApplication.class, args)
.start(); //<-- THIS IS IMPORTANT!
}
}
@CMCDragonkai
CMCDragonkai / nix_ca_certificate_handling.md
Created October 16, 2018 07:02
Nix CA Certificate Handling #nix

Nix CA Certificate Handling

Some applications requires contacting HTTPS endpoints. In those cases you need to supply the CA certificates.

Most Nix applications won't package in the CA certificates, this is because they can make use of the OS provided CA certificate store.

The NixOS location for this is at: /etc/ssl/certs.

The OpenSSL library in Nixpkgs is compiled to use that path if there is no environment variables such as SSL_CERT_FILE.