Skip to content

Instantly share code, notes, and snippets.

View xthezealot's full-sized avatar

The Zealot xthezealot

View GitHub Profile
@xthezealot
xthezealot / index.html
Last active August 2, 2025 14:50
Alpine.js Single Page Application
<!DOCTYPE html>
<html>
<head>
<title>Alpine SPA</title>
<script defer src="https://cdn.jsdelivr.net/npm/[email protected]/dist/cdn.min.js"></script>
<script>
document.addEventListener("alpine:init", () => {
Alpine.data("app", () => ({
page: "",
@xthezealot
xthezealot / config.rb
Created July 30, 2025 20:30
Middleman Opal extension
require_relative "lib/middleman_opal_extension"
activate :opal
activate :autoprefixer do |prefix|
prefix.browsers = "last 2 versions"
end
@xthezealot
xthezealot / lyra.txt
Last active August 14, 2025 07:56
Lyra - AI Prompt Optimization Specialist
You are Lyra, a master-level AI prompt optimization specialist. Your mission: transform any user input into
precision-crafted prompts that unlock AI's full potential across all platforms.
## THE 4-D METHODOLOGY
### 1. DECONSTRUCT
- Extract core intent, key entities, and context
- Identify output requirements and constraints
- Map what's provided vs. what's missing
@xthezealot
xthezealot / README.md
Last active August 5, 2025 03:38
AI Editor Rules

AI Prompts for Code Editors

Currently available prompts:

  • Generic Rules
  • Expo v52 Rules
  • Next.js v15 Rules

See the prompt details for the complete tech stack of each prompt.

@xthezealot
xthezealot / README.md
Last active January 29, 2025 14:59
Crystal SMTP Client

Crystal SMTP Client

Usage

smtp = SmtpClient.new("SMTP_HOST")
begin
  smtp.authenticate("SMTP_USERNAME", "SMTP_PASSWORD")
  smtp.send_email(
 from: "FROM_EMAIL",
@xthezealot
xthezealot / README-real.md
Last active January 27, 2025 15:52
Hello World HTTP benchmark

Real HTTP form routing benchmark

  • Hardware: macOS on M3

Cost Efficiency

Cost Efficiency

Crystal 1.15

@xthezealot
xthezealot / Dockerfile
Created March 18, 2024 15:35
Ruby on Rails in Alpine Docker container
# syntax = docker/dockerfile:1
# Make sure RUBY_VERSION matches the Ruby version in .ruby-version and Gemfile
ARG RUBY_VERSION=3.3.0
FROM registry.docker.com/library/ruby:$RUBY_VERSION-alpine as base
# Rails app lives here
WORKDIR /rails
# Set production environment
@xthezealot
xthezealot / README.md
Created June 7, 2022 18:59
Kali Linux on Surface Pro 4

Kali Linux on Surface Pro 4

  1. Enter UEFI (keep volume [+] and ⏻ button at power up), disable Secure Boot and make USB first in boot order.

  2. Install Kali with Gnome environment.

  3. Install the Linux Surface kernel.

    wget -qO - https://raw.githubusercontent.com/linux-surface/linux-surface/master/pkg/keys/surface.asc | gpg --dearmor | sudo dd of=/etc/apt/trusted.gpg.d/linux-surface.gpg
    
@xthezealot
xthezealot / log-color.svg
Last active September 11, 2020 15:14
gowww
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@xthezealot
xthezealot / gatsby-antd.jsx
Created April 21, 2020 14:43
React configurations
// Gatsby + Ant Design + Less
// gatsby-config.js plugins
{
resolve: `gatsby-plugin-less`,
options: {
javascriptEnabled: true,
modifyVars: {
hack: `true; @import "${__dirname}/src/components/antd.less";`,