Skip to content

Instantly share code, notes, and snippets.

@xwero
xwero / column.js
Last active November 25, 2018 01:32
Sanity static generator POC
export default {
title: 'Column',
name: 'column',
type: 'object',
fieldsets: [
{name: 'content', title: 'Content', description: 'Only add content to one of the options'}
],
fields: [
{
title: 'Name',
@xwero
xwero / check-netflix-genres.ps1
Last active August 20, 2025 16:22
Fixed issues with firefox hardcoding
$defaultBrowserValue = "chrome.exe"
$browserInput = Read-Host "Enter browser executable (or press Enter for default [$defaultBrowserValue])"
$browserValue = if ([string]::IsNullOrEmpty($browserInput)) { $defaultBrowserValue } else { $browserInput }
$defaultBrowserSuffixValue = ""
$browserInput = Read-Host "Enter browser suffix when added to the window (or press Enter for default [$defaultBrowserSuffixValue])"
$browserSuffixValue = if ([string]::IsNullOrEmpty($browserInput)) { $defaultBrowserSuffixValue } else { $browserInput }
$defaultDelayValue = "3"
$delayInput = Read-Host "Enter tab appearance delay (or press Enter for default [$defaultDelayValue])"
@xwero
xwero / image-gallery
Last active October 11, 2025 07:50
LLM image gallery generator first prompt output
<?php
declare(strict_types=1);
namespace App\Pages\Frontend;
use App\NotFound;
use App\Pages\Database\FieldBooleanValues;
use App\Pages\Database\FieldFloatValues;
use App\Pages\Database\FieldIntegerValues;
name description
ssg
build websites from markdown files when generate ssg is prompted

SSG

Orchestrator

  1. When generate ssg is added to the prompt read src/content. When there are no markdown files display "Please add source files to the src/content directory."