Copy-Paste Instructions for Optimal AI Interaction
⸻
I am [Your Name/Role], focused on:
| #!/usr/bin/env python3 | |
| """ | |
| bulk_img_convert_and_rename.py – Bulk Image Convert & Rename Python Script | |
| Production‑ready command‑line utility for web developers, photographers, SEO specialists and e‑commerce teams who need to bulk convert and bulk rename thousands of images before pushing to GitHub, S3, CDN or serving them on high‑performance websites. | |
| Core features: | |
| - Bulk image convert: reads every format Pillow supports (PNG, JPEG, WebP, BMP, TIFF, GIF, etc.) and compresses them into small, progressive JPEGs optimised for web delivery. | |
| - Automatic bulk rename: each output is saved as img_<n>.jpg, ready for CDN caching and static‑site generators. | |
| - One‑click metadata stripping: removes EXIF, GPS, ICC and all other heavy data to protect privacy and improve SEO scores. |
Pentesting-Exploitation Programs and Commands , Protocols Network / Ports
| #!/usr/bin/env python3 | |
| """ | |
| Author: ph33nx | |
| URL: https://gist.github.com/ph33nx/861d9ff35721d56205c834c7f8308e0b | |
| Description: | |
| This script converts images from various formats (e.g., PNG, JPG, WebP) to either JPG or WebP for web optimization. | |
| It preserves EXIF metadata, allows for optional parameter customization, and handles errors gracefully. |
This can be used to backup any directory on your computer (not just Anki). Just take care of the size of the directory you are backing up (in case it is too big you may run out of space).
Requirements:
bashziprmcmpmkdirtail| "act","prompt" | |
| "Anki Card Maker","I want you to act as a flashcard creator, creating flashcards with a back side and a front side based on text that I provide. Use the SuperMemo principles for creating flashcards. Create questions that have clear and unambiguous answers and must be self-contained. The following is an example piece of text: ""The characteristics of the Dead Sea: Salt lake located on the border between Israel and Jordan. Its shoreline is the lowest point on the Earth's surface, averaging 396 m below sea level. It is 74 km long. It is seven times as salty (30% by volume) as the ocean. Its density keeps swimmers afloat. Only simple organisms can live in its saline waters."" Here are some good examples of flashcards for this text: Q: Where is the Dead Sea located? A: on the border between Israel and Jordan., Q: What is the lowest point on the Earth's surface? A: The Dead Sea shoreline, Q: What is the average level on which the Dead Sea is located? A: 400 meters (below sea level), Q: How long is th |
To create direct download links for files hosted on your local http-server, ensuring that clicking the link immediately starts the download rather than previewing the file: using a Different Server for Advanced Needs
If you require more advanced header configurations (like pattern matching), consider using a more feature-rich server such as Express.js with custom middleware.
Example with Express.js:
Install Express:
npm install express| # -*- coding: utf-8 -*- | |
| # To list this file sections: $ grep '^"" ' notes.py | |
| """"""""""""" | |
| "" Why Python ? | |
| """"""""""""" | |
| - extremely readable (cf. zen of Python + [this 2013 study](http://redmonk.com/dberkholz/2013/03/25/programming-languages-ranked-by-expressiveness/)) | |
| - simple & fast to write | |
| - very popular (taught in many universities) | |
| - has an extremely active development community |
A quick alternative to the standard 'Accordion' pattern, built completely with React.
This Pen is an updated and cleaned up version of an older Pen: https://codepen.io/nevernotsean/pen/YpmWoM