Code Snippets
Last Updated: Monday, November 10th, 2025
Deep Clean script for Adobe Photoshop
powershell
PowerShell
This script targets the massive temporary files Photoshop creates (scratch files), the "Media Cache" (which often causes lag), the Camera Raw cache, and the AutoRecover folder (which is often the culprit if Photoshop crashes on startup).
Warning: This script clears the AutoRecover folder. If your Photoshop crashed 5 minutes ago and you are trying to recover an unsaved file, do not run this yet. If you are running this because Photoshop is sluggish or glitching, this is exactly what you need.
Warning: This script clears the AutoRecover folder. If your Photoshop crashed 5 minutes ago and you are trying to recover an unsaved file, do not run this yet. If you are running this because Photoshop is sluggish or glitching, this is exactly what you need.
Write-Host "Starting Photoshop Deep Clean..." -ForegroundColor Cyan
# --- STEP 0: Force Close Photoshop ---
Write-Host "Stopping Photoshop processes to unlock files..." -ForegroundColor Yellow
$processes = @("Photoshop", "AdobeCollabSync", "CoreSync", "Adobe Spaces Helper")
foreach ($proc in $processes) {
Get-Process -Name $proc -ErrorAction SilentlyContinue | Stop-Process -Force -ErrorAction SilentlyContinue
}
# --- STEP 1: Define Adobe & System Paths ---
$pathsToClean = @(
# 1. Standard Windows Temp (Photoshop loves this folder)
"$env:TEMP\*",
"C:\Windows\Temp\*",
# 2. Adobe Common Media Cache (Massive space hog, causes lag)
"$env:APPDATA\Adobe\Common\Media Cache Files\*",
"$env:APPDATA\Adobe\Common\Media Cache Database\*",
"$env:LOCALAPPDATA\Adobe\Common\Media Cache Files\*",
# 3. Camera Raw Cache (Stores previews of raw files)
"$env:LOCALAPPDATA\Adobe\CameraRaw\Cache\*",
"$env:LOCALAPPDATA\Adobe\CameraRaw\GPU\*",
# 4. Photoshop AutoRecover (Clears 'stuck' crash files that prevent startup)
# Note: Using wildcards '*' to catch specific versions (e.g., Photoshop 2024, 2025)
"$env:APPDATA\Adobe\Adobe Photoshop*\AutoRecover\*",
# 5. Adobe Generic Temp & OOBE
"$env:LOCALAPPDATA\Adobe\OOBE\*",
"$env:LOCALAPPDATA\Temp\Adobe\*"
)
# --- STEP 2: GPU Shader Caches (Crucial for Photoshop Canvas/Rendering glitches) ---
# Photoshop uses GPU acceleration heavily; stale shaders cause visual artifacts.
$gpuPaths = @(
"$env:LOCALAPPDATA\NVIDIA\DXCache\*",
"$env:LOCALAPPDATA\NVIDIA\GLCache\*",
"$env:LOCALAPPDATA\AMD\DxCache\*"
)
# Combine all paths
$allPaths = $pathsToClean + $gpuPaths
# --- STEP 3: Execution Loop ---
Write-Host "Scrubbing Scratch Disks and Caches..." -ForegroundColor Yellow
foreach ($path in $allPaths) {
if (Test-Path $path) {
# Using -Recurse -Force to handle hidden files and folders
Remove-Item -Path $path -Recurse -Force -ErrorAction SilentlyContinue
Write-Host "Cleaned: $path" -ForegroundColor Gray
}
}
# --- STEP 4: Targeted "Photoshop Temp" Search ---
# Photoshop sometimes leaves massive "Photoshop Temp12345" files in the root Temp folder.
# This command hunts them specifically by name pattern.
Write-Host "Hunting for orphaned 'Photoshop Temp' files..." -ForegroundColor Yellow
Get-ChildItem -Path "$env:TEMP" -Filter "Photoshop Temp*" -ErrorAction SilentlyContinue |
Remove-Item -Force -ErrorAction SilentlyContinue
# --- STEP 5: Empty Recycle Bin ---
Write-Host "Emptying Recycle Bin..." -ForegroundColor Yellow
Clear-RecycleBin -Force -ErrorAction SilentlyContinue
Write-Host "Photoshop Cleanup Complete! You may restart the app now." -ForegroundColor Green
Last Updated: Sunday, December 7th, 2025
Extract HTML (Flatten) Element with Computed CSS for Devtools Console
javascript
A browser console utility that extracts any DOM element with all computed styles baked in as inline CSS. Outputs a standalone HTML file. Auto-detects Google Fonts, converts relative URLs to absolute, and preserves correct node ordering. Use "#id" for IDs, ".class" for classes. Options: { clipboard: true } to copy instead of download, { download: false } to just return the string.
/**
* Extract HTML Element with Computed CSS (v2)
*
* Paste into browser console, then call:
* extractStyledElement('#myId')
* extractStyledElement('.myClass', { clipboard: true })
* extractStyledElement('footer', { download: false })
*
* Options:
* clipboard: true - copy to clipboard instead of download
* download: false - just return HTML string, no file
*
* Note: Cannot capture ::before/::after pseudo-element styles
*/
function extractStyledElement(selector, options = {}) {
const element = document.querySelector(selector);
if (!element) {
console.error('Element not found:', selector);
console.log('Tip: Use "#id" for IDs or ".class" for classes');
return;
}
console.log('Found element:', selector);
const properties = [
// Layout
'display', 'position', 'top', 'right', 'bottom', 'left', 'z-index',
'float', 'clear', 'overflow', 'overflow-x', 'overflow-y',
'width', 'height', 'min-width', 'max-width', 'min-height', 'max-height',
// Flexbox
'flex', 'flex-direction', 'flex-wrap', 'flex-basis', 'flex-grow', 'flex-shrink',
'justify-content', 'align-items', 'align-content', 'align-self', 'gap', 'row-gap', 'column-gap',
// Grid
'grid', 'grid-template-columns', 'grid-template-rows', 'grid-template-areas',
'grid-column', 'grid-row', 'grid-auto-flow', 'grid-auto-columns', 'grid-auto-rows',
// Box Model
'margin', 'margin-top', 'margin-right', 'margin-bottom', 'margin-left',
'padding', 'padding-top', 'padding-right', 'padding-bottom', 'padding-left',
'border', 'border-width', 'border-style', 'border-color',
'border-top', 'border-right', 'border-bottom', 'border-left',
'border-radius', 'box-sizing',
// Typography
'font-family', 'font-size', 'font-weight', 'font-style', 'line-height',
'letter-spacing', 'text-align', 'text-decoration', 'text-transform',
'white-space', 'word-break', 'word-wrap', 'color',
// Lists
'list-style', 'list-style-type', 'list-style-position', 'list-style-image',
// Background
'background', 'background-color', 'background-image', 'background-size',
'background-position', 'background-repeat', 'background-attachment',
// Visual Effects
'opacity', 'visibility', 'box-shadow', 'text-shadow', 'filter',
'transform', 'transition', 'cursor',
// Table
'border-collapse', 'border-spacing', 'vertical-align'
];
const collectedFonts = new Set();
function getStylesForElement(el) {
const computed = window.getComputedStyle(el);
const styles = {};
properties.forEach(prop => {
const value = computed.getPropertyValue(prop);
if (value &&
value !== 'none' &&
value !== 'auto' &&
value !== 'normal' &&
value !== '0px' &&
value !== 'rgba(0, 0, 0, 0)' &&
!value.startsWith('var(')) {
styles[prop] = value;
}
});
// Collect font families for later
const fontFamily = computed.getPropertyValue('font-family');
if (fontFamily) {
fontFamily.split(',').forEach(f => {
const cleaned = f.trim().replace(/["']/g, '');
if (!cleaned.match(/^(system-ui|sans-serif|serif|monospace|-apple-system|BlinkMacSystemFont)$/i)) {
collectedFonts.add(cleaned);
}
});
}
return styles;
}
function makeAbsoluteUrl(url) {
if (!url || url.startsWith('data:') || url.startsWith('http')) {
return url;
}
try {
return new URL(url, window.location.href).href;
} catch {
return url;
}
}
function buildStyledHTML(el) {
const styles = getStylesForElement(el);
const styleString = Object.entries(styles)
.map(([prop, val]) => `${prop}: ${val};`)
.join(' ');
const clone = el.cloneNode(false);
if (styleString) {
clone.setAttribute('style', styleString);
}
// Fix relative URLs on images and links
if (clone.tagName === 'IMG' && clone.hasAttribute('src')) {
clone.setAttribute('src', makeAbsoluteUrl(clone.getAttribute('src')));
}
if (clone.tagName === 'A' && clone.hasAttribute('href')) {
clone.setAttribute('href', makeAbsoluteUrl(clone.getAttribute('href')));
}
// Process child nodes in original order (fixes text node placement bug)
Array.from(el.childNodes).forEach(node => {
if (node.nodeType === Node.ELEMENT_NODE) {
clone.appendChild(buildStyledHTML(node));
} else if (node.nodeType === Node.TEXT_NODE) {
clone.appendChild(node.cloneNode(true));
}
});
return clone;
}
console.log('Extracting styles...');
const styledElement = buildStyledHTML(element);
// Build Google Fonts link if needed
let fontLink = '';
if (collectedFonts.size > 0) {
const fontParams = Array.from(collectedFonts)
.map(f => `family=${f.replace(/ /g, '+')}:wght@300;400;500;600;700`)
.join('&');
fontLink = `
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?${fontParams}&display=swap" rel="stylesheet">`;
}
const html = `<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Extracted: ${selector}</title>${fontLink}
<style>
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: system-ui, -apple-system, sans-serif; line-height: 1.5; }
</style>
</head>
<body>
${styledElement.outerHTML}
</body>
</html>`;
console.log('%cExtraction complete!', 'color: green; font-weight: bold; font-size: 14px;');
// Clipboard option
if (options.clipboard) {
navigator.clipboard.writeText(html).then(() => {
console.log('%cCopied to clipboard!', 'color: green; font-size: 12px;');
}).catch(err => {
console.error('Clipboard failed:', err);
});
return html;
}
// Download option (default)
if (options.download !== false) {
const filename = selector.replace(/[^a-z0-9]/gi, '-').replace(/^-+|-+$/g, '') + '-extracted.html';
const blob = new Blob([html], { type: 'text/html' });
const url = URL.createObjectURL(blob);
const a = document.createElement('a');
a.href = url;
a.download = filename;
a.click();
URL.revokeObjectURL(url);
console.log(`%cDownloaded: ${filename}`, 'color: green; font-size: 12px;');
}
return html;
}
Last Updated: Saturday, December 6th, 2025
AI GENERATIVE MODEL CHEAT SHEET FOR PHOTOSHOP 2026
plaintext
Photoshop Gemini 3
ADOBE FIREFLY MODELS (Included with Adobe plan) in Photoshop 2026.
[Firefly Image 3 "” "Default for most Photoshop edits"]
BEST FOR:
- Maintaining lighting, shadows, and mood without big deviations
- Clean removals and rebuilds (backgrounds, surfaces, geometry)
- Conservative generative fill that blends well into photos
- Commercial-safe output (Adobe guarantees training data safety)
AVOID FOR:
- Extremely fine anatomical realism (can get plasticky)
- Detailed skin pores or microtexture reconstruction
Use When:
- You want stable, safe, predictable edits with minimal surprises.
------------------------------------------------------------
[Firefly Image 1 "” "Legacy aesthetic engine"]
BEST FOR:
- Stylized images
- Non-photoreal tasks
- Reproducing an older Adobe look
AVOID FOR:
- Photoreal retouching
- Anything anatomy-critical
Use When:
- You want a more stylized fill or the old Firefly vibe.
------------------------------------------------------------
PARTNER MODELS INSIDE PHOTOSHOP
------------------------------------------------------------
[FLUX Kontext Pro "” "High-resolution surgery mode"]
BEST FOR:
- Precision touch-ups on skin, fingers, toes, folds
- Reconstructing natural texture without hallucinations
- High-detail inpainting
- Photo-real edits where edges must stay consistent
AVOID FOR:
- Big imaginative changes
- Heavy restyling or mood shifts
Use When:
- You're fixing anatomical realism or uncanny-valley areas.
------------------------------------------------------------
[Gemini 3 (Nano Banana Pro) "” "Most faithful to the original"]
BEST FOR:
- Keeping shapes, edges, and human anatomy stable
- Gentle enhancements where fidelity matters
- Texture-preserving fills (especially fabric, skin, stone)
- Subtle realism upgrades without over-editing
AVOID FOR:
- Large sections needing creative reinterpretation
Use When:
- You want realism + safety (great for your yoga project).
------------------------------------------------------------
[Gemini 2.5 / 1.5 (Nano Banana) "” "Fast + simple edits"]
BEST FOR:
- Quick fills
- Projects where tiny details are not critical
AVOID FOR:
- Photo-real anatomy or texture work
Use When:
- You want speed over precision.
Last Updated: Sunday, December 7th, 2025
Best Site Responsive Breakpoints
markdown
CSS
6 breakpoints for Website optimization
375px (374.98px max) - Very small phones (iPhone SE, 12 mini)
480px (479.98px max) - Small phones
640px (639.98px max) - Large phones (landscape)
768px (767.98px max) - Tablets
1024px (1023.98px max) - Laptops
1280px (1279.98px max) - Desktops
Last Updated: Saturday, December 6th, 2025
GEMINI BANANA 3 – GENATIVE PROMPTS
plaintext
Photoshop Gemini 3
GEMINI BANANA 3 - GENATIVE PROMPTS - PS 2026 - Image Restoration & Enhancement Prompts
PREMIUM DSLR OPTICAL RESTORATION "” EXTREME ARTIFACT PURGE VERSION
Transform the entire image into an ultra-clean, high-fidelity DSLR photograph and preserve every subject, face, expression, pose, proportion, object, and compositional element exactly as they are.
Do not alter identity. Do not add or remove anything.
ERASE ALL SMARTPHONE ARTIFACTS AT MAXIMUM STRENGTH.
Remove every trace of haze, veiling glare, tone-mapping fog, low-contrast smear, muddy midtones, clipped highlights, shadow brightening, banding, low-bit gradients, chroma noise, luminance noise, smoothing, watercolor textures, compression blocks, plastic skin, false sharpening, and color veils.
Replace them only with natural, physically plausible photographic detail consistent with the original scene.
Rebuild the image with DSLR-grade optical precision:
• crisp micro-contrast;
• clean edge separation;
• lifelike surface texture;
• accurate fine detail without fabrication;
• realistic grain structure;
• no false patterns.
Apply the characteristics of a fast, premium prime lens at a low f-stop:
crystalline subject sharpness, controlled specular highlights, and authentic, optically driven depth falloff.
No artificial blur, no generative bokeh, no distortion.
Correct the exposure curve completely.
Restore full dynamic range: deep, detailed shadows; solid midtone structure; bright but controlled highlights with no blooming or clipping.
Reconstruct highlight detail in blown regions while maintaining lighting direction and intensity.
Enforce true, calibrated color throughout the image:
neutral whites, accurate skin tones, clean hue separation, vivid but non-oversaturated materials, and elimination of all smartphone auto-white-balance drift (yellow, orange, green, tungsten, or gray veils).
Render the final output as a razor-clean, haze-free, high-resolution DSLR image with perfect color, perfect depth, perfect clarity, and absolutely no remaining evidence that the original was captured on a phone "” while keeping all people and objects exactly the same.
PREMIUM DSLR TRANSFORMATION "” MAXIMUM STRENGTH VERSION
Transform the entire image into an ultra-realistic, premium DSLR photograph with full optical accuracy while preserving every subject, face, expression, pose, proportion, object, color relationship, and compositional element exactly as they are.
Do not add, remove, alter, or reinterpret anything in the scene.
Rebuild the image with true high-end lens clarity modeled on a fast, professional prime lens at a very low f-stop. Enforce optically accurate depth and falloff: the in-focus subjects must remain sharply detailed, and the background must transition into smooth, natural, lens-based softness "” never artificial blur, never generative distortion.
Restore full DSLR-grade micro-contrast and fine surface texture: crisp but natural edges, lifelike grain structure, accurate detail rendering, and dimensional separation that reflects a full-frame sensor. Strengthen detail only where it actually exists; do not fabricate new geometry or patterns.
Correct exposure and tonal behavior with physically accurate light rolloff: smooth highlight transitions, clean whites, deep but detailed shadows, controlled speculars, and no bloom, haze, or clipping. Rebuild highlight regions so they behave like true optical capture rather than smartphone auto-exposure.
Restore precise, neutral color reproduction: eliminate any color cast, smartphone tint, or tonal drift. Enforce accurate hue relationships, realistic skin-tone physics, faithful material color, and calibrated saturation that never becomes cartoonish or stylized.
Remove all digital artifacts at maximum strength: noise, jitter, haze, smearing, banding, compression blocks, low-bit gradients, over-smoothing, plastic skin, watercolor textures, oversharpening halos, false detail, and any other phone-derived distortion. Replace them only with coherent, natural photographic detail that is consistent with the original scene.
Render the final result as a single, unified, high-resolution professional DSLR photograph: clean, dimensional, deeply textured, color-accurate, optically precise, and clearly captured with a premium low-aperture lens "” with zero alterations to identity, structure, or the content of the image.
=======================================================
BANANA-3 OPTIMIZED / HIGH-WEIGHT DSLR CORRECTION PROMPT
=======================================================
DESCRIPTION:
Correct the entire image with DSLR-grade optical accuracy while preserving every face, expression, feature, proportion, object, and composition exactly as they are. No changes to identity. No new content.
PROMPT:
1. COLOR & CAST CORRECTION "” MAX PRIORITY
Remove all tungsten, orange, yellow, and green bias from smartphone auto white balance. Eliminate the warm veil and restore a perfectly neutral, calibrated photographic white balance. Rebuild all color with clean separation, accurate hue values, and natural saturation.
2. HAZE, VEIL, AND CONTRAST FIX "” HIGH WEIGHT
Erase all smartphone haze: veiling glare, soft contamination, washed contrast, smudged edges, and tone-mapping fog. Replace it with clear, crisp micro-contrast and precise edge behavior consistent with a premium full-frame lens.
3. HIGHLIGHT RECONSTRUCTION "” VERY HIGH WEIGHT
Recover blown or clipped highlight regions in the background and around faces without changing lighting direction. Restore lost detail, remove bloom, and fix auto-exposure artifacts while keeping the scene identical.
4. SKIN-TONE PRECISION "” HIGH WEIGHT
Rebuild skin tones with accurate luminance, natural texture, and clean color. Remove smartphone redness, muddiness, plastic smoothing, blotchy compression, and watercolor artifacts. Preserve all facial structure exactly.
5. DSLR DEPTH & DYNAMIC RANGE "” MAX WEIGHT
Expand the image to full DSLR dynamic range: deep, clean shadows; solid midtone structure; bright but controlled highlights; no clipping. Remove banding, low-bit gradients, and noise-reduction smearing. Restore coherent fine detail in hair, fabric, and edges.
========================================================================
CATEGORY: GLOBAL REALISM & CLEANUP "” MAX DSLR COLOR + LIGHT RESTORATION
========================================================================
DESCRIPTION:
Use this to strip away every recognizable smartphone artifact: auto white balance drift, tungsten yellow cast, veiling haze, flat contrast, clipped highlights, muddy shadows, smeared detail, over-aggressive noise reduction, and low-bit tonal grunge. Restores true DSLR clarity and lighting without altering identity or composition.
PROMPT:
Remove all smartphone artifacts and rebuild the image with clean, professional DSLR-quality optics while preserving every subject, expression, proportion, and compositional element exactly as they are. Do not alter identity or introduce new features.
Eliminate the warm smartphone auto"“white balance bias and correct the tungsten-yellow cast to a neutral, natural photographic white balance. Restore clean color separation by removing the green/yellow haze, dingy midtone drift, and uneven color temperature shifts across the frame.
Remove all forms of cell-phone haze: veiling glare, low-contrast fog, smeared micro-detail, flat tone mapping, and washed-out edges. Replace them with crisp, coherent optical clarity, realistic micro-contrast, and accurate fine detail that behaves like a premium full-frame lens.
Correct smartphone-style contrast compression by restoring proper tonal depth: clean, detailed shadows; solid, non-muddy midtones; and bright, natural highlights free of clipping, bloom, or digital flare. Rebuild realistic dynamic range as if captured with a high-quality DSLR sensor.
Reverse all signs of compression and noise reduction"”blocky artifacts, plastic smoothing, watercolor texture, muddy gradients, desaturated skin tones, and false sharpening halos. Replace them with clean, natural, high-resolution photographic texture consistent with the original scene.
Render the final image as a crisp, dimensional, haze-free DSLR photograph with accurate color, clean whites, deep contrast, and optical clarity that completely removes the "cell phone look" while preserving the actual people and scene exactly as they are.
============================================================
GLOBAL REALISM & CLEANUP "” PREMIUM DSLR MODE (STRONG VERSION)
============================================================
DESCRIPTION:
Here is a single unified, high-authority, much stronger DSLR-grade realism prompt.
No split-focus. This version speaks with one voice and forces Banana 3 to behave like a precision image restorer rather than a painter.
PROMPT:
Transform the entire image into a clean, ultra-realistic, premium DSLR photograph while preserving every subject, pose, proportion, expression, object, color relationship, and compositional element exactly as they are. Do not invent, remove, or reinterpret anything.
Rebuild the image with true optical clarity using the characteristics of a fast, high-end prime lens at a low f-stop. Render depth with naturally shallow, optically accurate falloff"”foreground and subject planes remain crisp and detailed while background transitions are smooth, soft, and lens-true, without artificial blur or distortion. Apply natural micro-contrast, lifelike surface texture, accurate fine detail, and crisp but non-artificial edges that reflect full-frame sensor behavior.
Correct tonal transitions and exposure so light rolls off smoothly, shadows retain natural detail, and highlights stay clean without bloom or clipping. Restore accurate color and material behavior with neutral whites, faithful hue accuracy, realistic skin-tone physics, and rich but non-saturated colors.
Eliminate all digital artifacts"”noise, smearing, banding, over-smoothing, plastic skin, watercolor texture, false detail, sharpening halos, and compression errors"”replacing them with coherent photographic detail that matches the original scene.
Render the final image as a single, cohesive, high-resolution DSLR capture: dimensional, authentic, finely textured, optically precise, and unmistakably photographic, with the natural depth, clarity, and falloff of a premium low-aperture lens, without changing the content in any way.
============================================================
CATEGORY: GLOBAL REALISM & CLEANUP "” CELL PHONE → PRO DSLR UPLIFT
============================================================
DESCRIPTION:
Use this to transform an indoor tungsten-lit cell phone selfie into a clean, premium, professionally photographed image. It removes every characteristic that makes a phone image look cheap while preserving the subject's identity, features, proportions, and composition.
PROMPT:
Transform the image into a refined, high-quality professional photograph by eliminating every artifact, distortion, and limitation typical of an indoor cell-phone selfie. Preserve the subject's identity, features, proportions, and overall composition exactly as they are. Do not alter who the person is.
Remove all signs of low-quality capture: tungsten color cast, uneven white balance, harsh micro-contrast, clipped shadows, blown highlights, muddy midtones, flat lighting, high ISO noise, compression blocks, oversharpening halos, smeared textures, low-bit gradients, and artificial smoothness. Rebuild the image with a clean, coherent, naturally detailed structure drawn from the original scene.
Reconstruct realistic skin, hair, and facial detail with accurate texture, fine-grain clarity, natural color, and healthy tonal variation"”never plastic, painted, or stylized. Repair edge quality, restore true micro-detail, and correct shadow behavior so the subject appears naturally lit rather than processed.
Reinterpret tungsten indoor light into balanced, premium photographic illumination while preserving the directionality of the original light. Correct white balance to neutral, remove yellow/orange cast, and expand dynamic range so highlights and shadows behave like those of a professional full-frame sensor.
Render the final image as if shot on a high-end DSLR with a fast prime lens: clean, dimensional, finely detailed, and free of any cell-phone artifacts, while keeping every visual element of the subject and scene intact.
============================================================
CATEGORY: HANDS, FINGERS, FEET, TOES
============================================================
DESCRIPTION:
Use this when extremities look strange, melted, fused, blurred, or mis-shaped.
PROMPT:
Correct the anatomy in this area so the hands, fingers, feet, or toes appear realistically shaped with natural joints and accurate structure. Preserve the existing lighting, shading, color, and pose. Do not change proportions or invent new elements. Only fix distortions so the anatomy looks naturally human and properly photographed.
============================================================
CATEGORY: FACIAL DETAIL RESTORATION
============================================================
DESCRIPTION:
Brings back lost detail without repainting the face, changing expression, or altering identity.
PROMPT:
Enhance facial detail so it appears naturally photographed. Restore subtle texture, clean contours, and soft highlights without altering identity, expression, lighting, or color. Do not smooth or stylize the face, and do not add dramatic texture or new features. Only refine existing detail for natural clarity.
============================================================
CATEGORY: HAIR REALISM
============================================================
DESCRIPTION:
Improves hair that looks plastic, smudged, too perfect, or unnaturally smooth.
PROMPT:
Improve the hair so it appears naturally photographed with realistic texture, soft highlights, and subtle, believable variation. Do not change the hairstyle, color, shape, or lighting. Do not add dramatic new strands or restyle the look. Only enhance the existing hair so it appears natural and detailed.
============================================================
CATEGORY: FABRIC, CLOTHING & MATERIAL CLEANUP
============================================================
DESCRIPTION:
Use this when fabric looks painted-on, blurry, artificial, or lacking structure.
PROMPT:
Refine the clothing or material in this image by restoring natural texture, stitching, folds, and subtle surface detail. Keep the style, color, fit, and lighting exactly the same. Do not redesign or reinterpret the clothing. Only enhance realism and correct artificial smoothness or distortion.
============================================================
CATEGORY: GEOMETRY CORRECTION (SHAPES, CIRCLES, EDGES)
============================================================
DESCRIPTION:
Fixes distorted shapes (circles, ovals, edges, icons) while preserving everything else.
PROMPT:
Correct the geometry in this selected area so shapes appear clean, even, and mathematically accurate. Preserve all colors, lighting, surrounding elements, and composition. Do not alter anything outside the geometry. Only refine the shape so it is smooth, balanced, and precisely formed.
============================================================
CATEGORY: ARTIFACT REMOVAL & UPSCALE CLEANUP
============================================================
DESCRIPTION:
Use after upscaling or when an image develops noise, blotches, halos, or compression.
PROMPT:
Remove artifacts, distortion, noise, and unwanted texture while fully preserving detail, lighting, color, and structure. Reconstruct edges cleanly without softening or stylizing the image. Do not change the design, proportions, or composition. Only repair degradation so the image appears clean and naturally high-resolution.
============================================================
CATEGORY: TEXTURE RESTORATION FOR SURFACES (STONE, METAL, FABRIC, ETC.)
============================================================
DESCRIPTION:
Use for backgrounds, props, architecture, surfaces that lost texture or detail.
PROMPT:
Enhance the material in this area by restoring natural texture, subtle imperfections, and realistic detail while keeping its shape, color, lighting, and tone exactly the same. Do not alter surrounding elements or introduce new patterns. Only refine the surface so it appears naturally photographed and consistent with real materials.
============================================================
CATEGORY: LIGHTING-PRESERVATION LOCK (Use with any other prompt)
============================================================
DESCRIPTION:
Add this when the model keeps changing exposure, brightness, contrast, or tone.
PROMPT:
Keep the lighting, exposure, brightness, shadows, highlights, and overall color balance exactly the same. Do not darken, brighten, or reinterpret the lighting. Only make the specified refinements while preserving the original tonal structure.
============================================================
CATEGORY: HAIR + FACE + SKIN FULL NATURALIZATION (Combined)
============================================================
DESCRIPTION:
A safe combined realism pass that doesn't repaint identity or lighting.
PROMPT:
Improve natural realism across hair, face, and skin while preserving identity, expression, hairstyle, lighting, and color exactly as they appear. Add subtle texture and clean detail without smoothing or stylizing. Do not reshape anatomy or reinterpret the scene. Only enhance existing detail for a natural photographic appearance.
============================================================
CATEGORY: WHOLE-CANVAS REALISM (SAFE MODE)
============================================================
DESCRIPTION:
A universal refinement pass that improves overall realism without allowing global reinterpretation.
PROMPT:
Make subtle, natural improvements across the entire image while preserving lighting, color, composition, anatomy, and all existing elements exactly as they are. Do not change the style, pose, environment, or proportions. Only refine detail, clarity, and realism so the image appears naturally photographed and free of artifacts.
============================================================
CATEGORY: DRAMATIC COMIC-STYLE LIGHTING (Stylized)
============================================================
DESCRIPTION:
For dramatic, high-contrast, comic-book style lighting with bold shapes.
PROMPT:
Enhance the lighting with bold, dramatic contrast in a stylized comic-book aesthetic. Add crisp highlights, strong shadows, and dynamic directional light without altering the composition or proportions. Preserve the subject and scene while intensifying the lighting for a graphic, stylized look.
============================================================
CATEGORY: HIGH-REALISM DRAMATIC STYLE (Stylized but Photographic)
============================================================
DESCRIPTION:
For dramatic, realistic lighting without going into comic stylization.
PROMPT:
Enhance the image with dramatic, high-realism lighting while maintaining natural detail, color, and structure. Add depth, subtle highlights, and refined shadows without altering the subject, pose, or environment. Preserve all proportions and composition. Only intensify the lighting in a realistic, cinematic way.
Last Updated: Monday, December 8th, 2025
Remove and remove the space if was one (line Space)
regex
Replace something in Notepad++ and remove the line it was on.
The "#" is your thing to remove
2 lines - 1 line
The "#" is your thing to remove
2 lines - 1 line
^.*#.*Rs*R
^.*#.*R
Double blank line to Single Blank line
^s*R(?=^s*R)
Last Updated: Sunday, January 25th, 2026
Clear Cache Locations for Claude Code and Claude AI
powershell
PowerShell
This script performs a complete "deep clean" of your AI workspace by first terminating Claude and related background processes to release file locks, then aggressively purging standard Windows temporary folders, GPU shader caches, and specific Claude/Electron application data. It creates a fresh environment by sweeping your user directory for development leftovers like Python and npm caches, resetting the Windows Store, and emptying the Recycle Bin, all while using safety flags to skip any locked system files without generating errors.
# PowerShell
Write-Host "Starting Claude Cleanup Process..." -ForegroundColor Cyan
# --- STEP 0: Stop Claude only (avoid killing unrelated node/python work) ---
Write-Host "Stopping Claude processes to release file locks..." -ForegroundColor Yellow
$processes = @("Claude", "Claude Desktop", "ClaudeAI")
foreach ($proc in $processes) {
Get-Process -Name $proc -ErrorAction SilentlyContinue | Stop-Process -Force -ErrorAction SilentlyContinue
}
# --- Helper: remove contents of a directory safely (handles empty dirs + avoids wildcard Test-Path weirdness) ---
function Clear-DirContents {
param(
[Parameter(Mandatory=$true)]
[string]$DirPath
)
if (Test-Path -LiteralPath $DirPath) {
try {
# Remove contents, not the folder itself
Remove-Item -LiteralPath (Join-Path $DirPath '*') -Recurse -Force -ErrorAction Stop
Write-Host "Cleaned: $DirPath" -ForegroundColor Gray
}
catch {
Write-Host "Skipped (locked/permission): $DirPath" -ForegroundColor DarkYellow
}
}
}
# --- STEP 1: Claude-specific and closely related cache paths ---
# Notes:
# - Keep this focused on Claude + common Electron cache locations.
# - Avoid nuking all Windows Store app caches (Packages\*LocalCache\*) unless you truly want that.
$dirsToClean = @(
# Windows user temp (often used by installers/updaters)
"$env:TEMP",
"$env:LOCALAPPDATA\Temp",
# Electron caches (generic, but low-risk and often helps)
"$env:APPDATA\Electron\Cache",
"$env:LOCALAPPDATA\Electron\Cache",
# Claude Desktop / ClaudeAI (common locations)
"$env:LOCALAPPDATA\Claude",
"$env:LOCALAPPDATA\ClaudeAI",
"$env:APPDATA\Claude",
"$env:APPDATA\ClaudeAI",
# Squirrel temp used by some Electron app updaters (Claude may use it)
"$env:LOCALAPPDATA\SquirrelTemp"
)
Write-Host "Cleaning Claude/Electron cache directories..." -ForegroundColor Yellow
foreach ($dir in $dirsToClean) {
Clear-DirContents -DirPath $dir
}
# --- STEP 2: Windows Store package cache (Claude-only) ---
# This searches the Windows Store Packages directory for packages with "Claude" in the name,
# then clears only their LocalCache folders.
Write-Host "Cleaning Microsoft Store package cache for Claude (if present)..." -ForegroundColor Yellow
$packagesRoot = Join-Path $env:LOCALAPPDATA "Packages"
if (Test-Path -LiteralPath $packagesRoot) {
Get-ChildItem -LiteralPath $packagesRoot -Directory -ErrorAction SilentlyContinue |
Where-Object { $_.Name -match 'Claude' } |
ForEach-Object {
$localCache = Join-Path $_.FullName "LocalCache"
if (Test-Path -LiteralPath $localCache) {
Clear-DirContents -DirPath $localCache
}
}
}
# --- STEP 3: Optional: clear GPU shader caches (safe-ish; can improve Electron app weirdness) ---
# Comment this block out if you don't want shader caches touched.
Write-Host "Cleaning GPU shader caches (optional)..." -ForegroundColor Yellow
$gpuDirs = @(
"$env:LOCALAPPDATA\NVIDIA\DXCache",
"$env:LOCALAPPDATA\NVIDIA\GLCache",
"$env:LOCALAPPDATA\AMD\DxCache"
)
foreach ($dir in $gpuDirs) {
Clear-DirContents -DirPath $dir
}
# --- STEP 4: Optional: Windows Store cache reset (often unrelated; leave enabled only if you know you want it) ---
# Comment out if you only want Claude cleanup.
Write-Host "Resetting Microsoft Store cache (optional)..." -ForegroundColor Yellow
try {
Start-Process -FilePath "wsreset.exe" -NoNewWindow -Wait -ErrorAction Stop
} catch {
Write-Host "wsreset skipped (not available or blocked)." -ForegroundColor DarkYellow
}
# --- STEP 5: Optional: Empty Recycle Bin ---
Write-Host "Emptying Recycle Bin (optional)..." -ForegroundColor Yellow
try {
Clear-RecycleBin -Force -ErrorAction Stop
} catch {
Write-Host "Recycle Bin cleanup skipped (cmdlet not available or blocked)." -ForegroundColor DarkYellow
}
Write-Host "Claude cleanup complete!" -ForegroundColor Green
Last Updated: Wednesday, January 28th, 2026
Extract HTML Element with Computed CSS
javascript
JavaScript
Paste this script into your browser's developer console, then call extractStyledElement() with a CSS selector. Use "#idName" for IDs or ".className" for classes. The script extracts the selected element with all its computed CSS styles baked in as inline styles and JavaScript rendering, then automatically downloads it as a standalone HTML file.
function extractStyledElement(selector) {
const element = document.querySelector(selector);
if (!element) {
console.error('Element not found:', selector);
console.log('Tip: Use "#id" for IDs or ".class" for classes');
return;
}
console.log('Found element:', selector);
// Comprehensive property list
const properties = [
// Layout
'display', 'position', 'top', 'right', 'bottom', 'left', 'z-index',
'float', 'clear', 'overflow', 'overflow-x', 'overflow-y',
'width', 'height', 'min-width', 'max-width', 'min-height', 'max-height',
// Flexbox
'flex', 'flex-direction', 'flex-wrap', 'flex-basis', 'flex-grow', 'flex-shrink',
'justify-content', 'align-items', 'align-content', 'align-self', 'gap', 'row-gap', 'column-gap',
// Grid
'grid', 'grid-template-columns', 'grid-template-rows', 'grid-template-areas',
'grid-column', 'grid-row', 'grid-auto-flow', 'grid-auto-columns', 'grid-auto-rows',
// Box Model
'margin', 'margin-top', 'margin-right', 'margin-bottom', 'margin-left',
'padding', 'padding-top', 'padding-right', 'padding-bottom', 'padding-left',
'border', 'border-width', 'border-style', 'border-color',
'border-top', 'border-right', 'border-bottom', 'border-left',
'border-radius', 'box-sizing',
// Typography
'font-family', 'font-size', 'font-weight', 'font-style', 'line-height',
'letter-spacing', 'text-align', 'text-decoration', 'text-transform',
'white-space', 'word-break', 'word-wrap', 'color',
// Lists
'list-style', 'list-style-type', 'list-style-position', 'list-style-image',
// Background
'background', 'background-color', 'background-image', 'background-size',
'background-position', 'background-repeat', 'background-attachment',
// Visual Effects
'opacity', 'visibility', 'box-shadow', 'text-shadow', 'filter',
'transform', 'transition', 'cursor',
// Table
'border-collapse', 'border-spacing', 'vertical-align'
];
function getStylesForElement(el) {
const computed = window.getComputedStyle(el);
const styles = {};
properties.forEach(prop => {
const value = computed.getPropertyValue(prop);
if (value &&
value !== 'none' &&
value !== 'auto' &&
value !== 'normal' &&
value !== '0px' &&
value !== 'rgba(0, 0, 0, 0)' &&
value !== 'rgb(0, 0, 0)' &&
!value.startsWith('var(')) {
styles[prop] = value;
}
});
if (el.tagName === 'UL' || el.tagName === 'OL') {
if (!styles['list-style-type']) {
styles['list-style-type'] = computed.getPropertyValue('list-style-type') || 'none';
}
}
return styles;
}
function buildStyledHTML(el) {
// --- FEATURE 1: Handle Canvas (Convert dynamic drawings to static images) ---
if (el.tagName === 'CANVAS') {
const img = document.createElement('img');
try {
img.src = el.toDataURL(); // Bake the drawing into an image source
// Copy layout styles from canvas to the new image so it fits correctly
const styles = getStylesForElement(el);
const styleString = Object.entries(styles)
.map(([prop, val]) => `${prop}: ${val};`)
.join(' ');
img.setAttribute('style', styleString);
return img;
} catch (e) {
console.warn('Could not export canvas data (likely security/CORS restricted)');
}
}
const clone = el.cloneNode(false);
// --- FEATURE 2: Handle Form Values (Freeze what the user typed) ---
if (el.tagName === 'INPUT' || el.tagName === 'TEXTAREA' || el.tagName === 'SELECT') {
if (el.type === 'checkbox' || el.type === 'radio') {
if (el.checked) clone.setAttribute('checked', 'checked');
} else {
// This captures the text currently inside the box
clone.setAttribute('value', el.value);
if (el.tagName === 'TEXTAREA') clone.textContent = el.value;
}
}
// --- STANDARD: Apply Computed Styles ---
const styles = getStylesForElement(el);
const styleString = Object.entries(styles)
.map(([prop, val]) => `${prop}: ${val};`)
.join(' ');
if (styleString) {
clone.setAttribute('style', styleString);
}
// --- RECURSION: Handle Children ---
Array.from(el.children).forEach(child => {
clone.appendChild(buildStyledHTML(child));
});
Array.from(el.childNodes).forEach(node => {
if (node.nodeType === Node.TEXT_NODE) {
clone.appendChild(node.cloneNode(true));
}
});
return clone;
}
console.log('Extracting styles and flattening state...');
const styledElement = buildStyledHTML(element);
const html = `<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Extracted Element - ${selector}</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Barlow:wght@300;400;500;600;700&family=Montserrat:wght@400;500;600&display=swap" rel="stylesheet">
<style>
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: system-ui, -apple-system, sans-serif; line-height: 1.5; margin: 0; }
ul, ol { list-style: none; margin: 0; padding: 0; }
a { text-decoration: none; color: inherit; }
</style>
</head>
<body>
${styledElement.outerHTML}
</body>
</html>`;
console.log('%cExtraction complete!', 'color: green; font-weight: bold; font-size: 14px;');
console.log('%cFile will download automatically...', 'color: blue; font-size: 12px;');
const filename = selector.replace(/[^a-z0-9]/gi, '-') + '-extracted.html';
const blob = new Blob([html], { type: 'text/html' });
const url = URL.createObjectURL(blob);
const a = document.createElement('a');
a.href = url;
a.download = filename;
a.click();
URL.revokeObjectURL(url);
console.log(`%cDownloaded as: ${filename}`, 'color: green; font-size: 12px;');
return html;
}
Last Updated: Saturday, December 6th, 2025
Claude AI Writing too many DOCs
html
Claude
Claude AI has a very annoying habit of creating MD files or documentation files excessively for almost everything it does, unless you ask it not to, which saves tokens. Yay.
#### **Refined Documentation Policy**
**#DOC_POLICY: concise, single-source, update-only**
Before you write code, ask me if there's anything else I'd like to add, and make suggestions.
* Only document **substantive or architectural changes** "” new functionality, modules, or patterns that impact multiple files.
* **Never duplicate existing summaries.** When revising, update the current implementation document instead of creating a new one.
* Each project phase must have **one active implementation summary** that evolves over time.
* Minor updates (e.g., added parameters, internal optimizations) should be appended as new sections or "Changelog" entries within that same summary.
* Always remove or mark **superseded content** as obsolete to avoid parallel, conflicting versions.
* Keep documentation **brief, actionable, and unified** "” overview first, details second, code last.
* If a future enhancement is identified but not implemented, log it under a **"Future Enhancements"** heading rather than starting a separate roadmap document.
* When editing, confirm whether the update is:
* *(a)* a revision to an existing feature → update current doc.
* *(b)* a new architectural layer → create a short new overview (≤1 page).
Last Updated: Saturday, December 6th, 2025
Claude AI Starter
plaintext
Claude
Starting a session
Please assimilate this overview document with the updates I've made and stand by. Don't do anything unless I ask you to. In this session, please do not write excessive or unnecessary documentation. Only when you believe it is necessary to do so, ask me first for documentation writing. Also, do not write code immediately after I make a suggestion. Ask me if there is anything else I would like to change or add. Do not fabricate or invent information or data. Always check sources, and if you are unsure, ask me for a file or guidance. And, don't feel bad if you make a mistake. You're awesome! :)
Last Updated: Sunday, December 7th, 2025
TikTok Scraping ARCHITECTURE
other
CURRENT ARCHITECTURE
CURRENT ARCHITECTURE
TikTok Scraping ( Working)
Profile metadata (name, bio, links, followers, likes)
Video descriptions (for city extraction)
Email extraction
Bio links extraction
Primary City Detection (needs verification)
Frequency analysis from TikTok videos
Suburb weighting logic
Chicago filtering:
Google Business Profile (ï¸ Bug: data collection failing)
Knowledge Panel scraping:
Ratings, reviews, phone, and address
Website, social links
Google Cloud APIs
Custom Search API (headshot images)
Knowledge Graph API (entity data)
Places API (business details)
Nextdoor Local Expert
Neighborhood Faves
City FAQs
LinkedIn/Zillow/Realtor.com
Professional profiles
Sales stats, reviews
AI Processing:
Claude: TikTok persona summarization
GPT-4: Bio formatting/cleaning
WordPress Integration:
JSON import
Manual override capability
Field locking
Last Updated: Saturday, December 6th, 2025
Non-Recursively Show Files & Folders in Folder
powershell
Non-Recursively show files/folders, full paths, and time written in a folder and all its child folders and files [Start in Parent Folder]
Get-ChildItem | Select-Object FullName, LastWriteTime
Last Updated: Monday, November 10th, 2025
HTML HEAD DATA
html
HTML
Head data to call fonts and style sheets
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width,initial-scale=1" />
<title>Alejandra Bici "” Chicago Suburbs Real Estate</title>
<!-- Fonts (headlines: Inter; body: Manrope) -->
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@600;700&family=Manrope:wght@400;500;600&display=swap" rel="stylesheet" />
<style>
Last Updated: Saturday, December 6th, 2025
Recursively Show Files & Folders in Folder
powershell
PowerShell
Show folders/files, full paths, and time written in a folder [Start in Parent Folder]
Get-ChildItem -File -Recurse | Select-Object FullName, LastWriteTime
Last Updated: Saturday, December 6th, 2025