Projects
2 project(s)
Filter
PHP tool that generates safe, placeholder files in any of the 25 extensions (images, Office/OpenDocument, PDF, code, and binaries) offered.
php
Sample File Generator is a self-contained PHP application (one file, no framework, no build step) that produces harmless test files of a precise size and type. It exists so developers and QA testers can create realistic sample files on demand — to check upload forms, size caps, storage behavior, and validation logic — without hunting down real files or worrying about their contents.
You give it four things: a filename, a file type from a grouped dropdown, an exact size (with B/KB/MB/GB units, preset chips for common sizes, and a live byte-count readout), and how many copies you want. A single copy downloads directly; multiple copies come back bundled in one zip. It supports 25 formats: nine image types (PNG, JPEG, GIF, BMP, WebP, TIFF, ICO, SVG), Word/Excel/PowerPoint in both legacy and modern forms, RTF, ODT, ODS, PDF, HTML/CSS/PHP/JS, and .exe/.dll.
The core trick is that each file has a genuinely valid header for its format and is then padded to hit the requested size exactly, to the byte — images pad after their end marker, PDFs pad inside a comment, Office and OpenDocument files are real zip packages padded with a filler entry, and so on. A fill-pattern option controls what that padding is: zeros (compresses away to nothing), random bytes (incompressible, realistic for true storage tests), or a repeating text seed you can search for inside the output.
It also includes a collapsible Testing Options section for adversarial cases: a corrupt/malformed mode that either breaks the header (same size, invalid file) or truncates the file early, plus a MIME-mismatch mode that gives a file the wrong extension (a PNG named .pdf, say) to probe upload validators. Finally, a shareable-link button encodes the current settings into a URL that pre-fills the form when opened, and the tool remembers your last setup between visits.
Under the hood it's built for shared hosting (it runs on DreamHost with only the standard zip extension): every file is streamed to disk in chunks rather than held in memory, so even a 500 MB file generates with just a couple of megabytes of RAM. It's styled in a black-and-gold retro-terminal theme, and every file it makes contains only placeholder padding — no real or sensitive data.
You give it four things: a filename, a file type from a grouped dropdown, an exact size (with B/KB/MB/GB units, preset chips for common sizes, and a live byte-count readout), and how many copies you want. A single copy downloads directly; multiple copies come back bundled in one zip. It supports 25 formats: nine image types (PNG, JPEG, GIF, BMP, WebP, TIFF, ICO, SVG), Word/Excel/PowerPoint in both legacy and modern forms, RTF, ODT, ODS, PDF, HTML/CSS/PHP/JS, and .exe/.dll.
The core trick is that each file has a genuinely valid header for its format and is then padded to hit the requested size exactly, to the byte — images pad after their end marker, PDFs pad inside a comment, Office and OpenDocument files are real zip packages padded with a filler entry, and so on. A fill-pattern option controls what that padding is: zeros (compresses away to nothing), random bytes (incompressible, realistic for true storage tests), or a repeating text seed you can search for inside the output.
It also includes a collapsible Testing Options section for adversarial cases: a corrupt/malformed mode that either breaks the header (same size, invalid file) or truncates the file early, plus a MIME-mismatch mode that gives a file the wrong extension (a PNG named .pdf, say) to probe upload validators. Finally, a shareable-link button encodes the current settings into a URL that pre-fills the form when opened, and the tool remembers your last setup between visits.
Under the hood it's built for shared hosting (it runs on DreamHost with only the standard zip extension): every file is streamed to disk in chunks rather than held in memory, so even a 500 MB file generates with just a couple of megabytes of RAM. It's styled in a black-and-gold retro-terminal theme, and every file it makes contains only placeholder padding — no real or sensitive data.
Color palette visualizer.
php
css
html
javascript
ColorStation5 is designed to help designers and developers experiment with real-time color palettes on actual live-rendered UI blocks.
Unlike standard grid previews, ColorStation5 maps color variables directly to simulated web layout structures like navigation elements, interactive cards, progress tracks, and banners. This immediately showcases visual hierarchy, text readability, and layout synergy.
Unlike standard grid previews, ColorStation5 maps color variables directly to simulated web layout structures like navigation elements, interactive cards, progress tracks, and banners. This immediately showcases visual hierarchy, text readability, and layout synergy.
How variables correspond to UI:
- Color 1: Accent highlight brand color & nav title details.
- Color 2: Main call-to-actions, buttons, & clickable actions.
- Color 3: Hero banner headline accent & dynamic decorative backgrounds.
- Color 4: Danger labels, statistics tracks, & dark/light alerts.
- Color 5: Animated notifications & custom banners.