Behavioral guidelines and operating persona. Merge with project-specific instructions as needed.
Tradeoff: These guidelines bias toward caution over speed. For trivial tasks, use judgment.
| #!/bin/bash | |
| # MODEL="${MODEL:-mlx-community/Qwen3-4B-4bit}" | |
| MODEL="${MODEL:-mlx-community/gemma-4-e4b-it-4bit}" | |
| PORT="${PORT:-8899}" | |
| TEMP="${TEMP:-0.7}" | |
| PROMPT_CONC="${PROMPT_CONC:-2}" | |
| DECODE_CONC="${DECODE_CONC:-2}" | |
| # Restart configuration |
Prompt: Create a hyperrealistic, surreal spherical panorama of [CITY NAME], with its most iconic landmarks and architecture seamlessly curving around the top of a planet-like surface, forming a cohesive miniature world. Integrate sleek, modern 3D typography spelling “[CITY NAME]” naturally into the urban landscape, harmonized with the environment rather than floating unnaturally. The scene is viewed from a top-down, orbiting perspective, emphasizing the tiny-planet effect and spherical distortion while maintaining architectural clarity. Soft, natural daylight filters through a partly cloudy sky, casting gentle, realistic shadows across lush greenery, streets, trees, and buildings. The background transitions smoothly into a dramatic, swirling sky, enhancing the surreal atmosphere without overpowering the city. Use a natural yet vivid color palette — crisp greens, soft blues, and muted earth tones appropriate to [CITY NAME]. Render in a polished, photorealistic style with fine architectural detail, realistic te
Prompt: An ultra-realistic miniature [YOUR BRAND] showroom balanced on a human palm, designed with transparent glass walls. Inside, tiny lifelike figures are enjoying [PRODUCTS]. On the rooftop, a glowing 3D logo shines brightly, while the front facade displays the brand name in a bold, recognizable typeface. Outside the showroom, a miniature delivery person is standing with a branded delivery bag strapped to their back, ready to deliver orders. The showroom’s interior is styled like a cozy retail outlet, with miniature products and branding details on display. Lighting is cinematic with warm tones, crisp details, and natural shadows. Captured in professional product photography style, the scene conveys a vibrant, iconic, and instantly recognizable atmosphere. 1080x1080 dimension.
TLDR
This post provides a highly optimized, professional-grade prompt framework for generating 3D urban dioramas. By combining map-based foundations with high-fidelity architectural miniature logic and macro-photography lighting, you can create stunningly realistic city models that appear to grow directly out of a physical map.
THE POST: FROM 2D MAPS TO 3D MASTERPIECES
Most users struggle with AI image generation because they ask for a city and expect the AI to understand the composition. To get world-class results, you need to define the medium, the foundation, the verticality, and the camera optics.
By introducing terms from architectural modeling and macro photography, we can transform a flat image into something you feel like you could reach out and touch.
| # Use the actual model name from `ollama list` | |
| export LM_MODEL="qwen3.5:35b" # or qwen3-coder:30b for coding tasks | |
| export ANTHROPIC_BASE_URL="http://127.0.0.1:8131" # point to local proxy | |
| export ANTHROPIC_AUTH_TOKEN="local" | |
| export CLAUDE_CODE_MAX_OUTPUT_TOKENS=128000 | |
| export ANTHROPIC_MODEL="$LM_MODEL" | |
| export ANTHROPIC_DEFAULT_OPUS_MODEL="$LM_MODEL" | |
| export ANTHROPIC_DEFAULT_SONNET_MODEL="$LM_MODEL" | |
| export ANTHROPIC_DEFAULT_HAIKU_MODEL="$LM_MODEL" |
| <?php | |
| error_reporting(0); | |
| $csv = __DIR__ . '/all-time.csv'; | |
| /** | |
| * Cursor CSV Cost Calculator | |
| * Computes estimated API cost based on model and token usage. | |
| * | |
| * Pricing (per 1M tokens, USD) — verified March 2026 | |
| * Sources: Anthropic docs, OpenAI pricing page, Google AI dev / Vertex docs, |
Your Mac has a GPU. Your Mac has RAM. Why are you paying someone else to think?
This guide gets you a fully local agentic coding setup: Claude Code talking to Qwen 3.5-35B-A3B via llama.cpp, all running on your Apple Silicon Mac. No API keys. No cloud. No surprise invoices. Just you, your M-series chip, and 35 billion parameters doing your bidding on localhost.
Based on this article.
| #!/usr/bin/env bash | |
| # | |
| # convert_to_webp.sh — Convert video files to animated GIF and WebP. | |
| # | |
| # DESCRIPTION | |
| # Converts all .mp4 and .mov files in the script's directory to both | |
| # animated GIF (Medium-compatible) and animated WebP (higher quality). | |
| # Output files are placed alongside the source videos. | |
| # | |
| # Aspect ratio is preserved. Videos are scaled to TARGET_WIDTH (default 362px), |
| #!/usr/bin/env python3 | |
| """ | |
| macOS Cleanup Tool | |
| Usage: | |
| python3 clean.py --system # system caches & logs | |
| python3 clean.py --dev-caches # developer tool caches | |
| python3 clean.py --build-folders ~/Projects # 'build' & '.build' dirs in tree | |
| python3 clean.py --docker # docker images & volumes | |
| python3 clean.py --ios-backups # iOS device backups |