This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| bash -c 'set -euo pipefail; shopt -s nullglob; for png in *.png; do base="${png%.png}"; zipname="${base}.zip"; files=( "${base}".* ); (( ${#files[@]} > 0 )) || continue; rm -f "$zipname"; zip -q -9 "$zipname" "${files[@]}"; echo "✅ $zipname <- ${#files[@]} file(s)"; done' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| error_page 404 = @redirect_to_home; | |
| location @redirect_to_home { | |
| return 301 https://$host; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * 🧩 setQuantity.js | |
| * | |
| * Automatically sets the quantity for Steam Market Sell input. | |
| * | |
| * This script keeps the sell quantity input (#market_sell_quantity_input) | |
| * synchronized with the available amount element (#market_sell_quantity_available_amt). | |
| * | |
| * ✅ How it works: | |
| * - Checks every millisecond if the quantity input is visible. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * External Links Audit for WordPress (posts & pages, Polylang compatible) | |
| * | |
| * This snippet lists all posts and pages that contain external links (<a href="...">). | |
| * It shows the results only on the front page (home) and only for administrators. | |
| * | |
| * Usage: | |
| * - Place this function in your theme (e.g., front-page.php) or functions.php and call echo ext_links_quick_audit(). | |
| * - For Polylang users: it queries all languages. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| $args = [ | |
| 'posts_per_page' => -1, | |
| 'post_type' => ['page', 'post'], | |
| 'lang' => 'all', // Polylang posts | |
| 'suppress_filters' => false | |
| ]; | |
| $query = new WP_Query($args); | |
| if ($query->have_posts()) { | |
| while ($query->have_posts()) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php if (str_contains(home_url(),'million.tools')): ?> | |
| <?php if (is_front_page()): ?> | |
| <html lang="es"> | |
| <?php else: ?> | |
| <html lang="<?=get_bloginfo('language')?>"> | |
| <?php endif;?> | |
| <?php endif; ?> | |
| <head> | |
| <!-- ... --> | |
| <?php if (str_contains(home_url(),'million.tools')) : ?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * Plugin Name: ACF WYSIWYG Auto-Delay (MU) | |
| * Description: Sets delay = 1 for all ACF WYSIWYG fields. | |
| * Author: Egor Volchenko • www.egor.im | |
| */ | |
| add_filter('acf/validate_field/type=wysiwyg', function ($field) { | |
| $field['delay'] = 1; | |
| return $field; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Steam Market Buy Order Scraper | |
| // Author: Egor Volchenko • www.egor.im | |
| // With assistance from Grok, created by xAI | |
| // Description: This script scrapes Steam Market listings, extracts item_nameid, and checks for buy orders at a specified price in the desired currency. | |
| // Results are displayed in a div after .market_search_results_header, with missing orders highlighted in red. | |
| // Usage: Run in browser console on a Steam Market search page (e.g., https://steamcommunity.com/market/search?appid=730). | |
| // Note: Requires Steam login for steamLoginSecure cookie. Use with caution to avoid rate limits. | |
| const currencies = [ | |
| { code: 1, name: 'USD / United States Dollar ($)' }, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * Bulk insert predefined comments into WordPress posts and pages. | |
| * Supports Polylang homepages, random authors and dates. | |
| * | |
| * Usage: add ?add_comments=1 to URL while logged in as admin. | |
| * Author: www.egor.im | |
| * Created: 2025-09-18 | |
| */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| if (isset($_SERVER['HTTP_HOST']) && in_array($_SERVER['HTTP_HOST'], ['million.tools', 'www.million.tools'], true)) { | |
| define('DONOTCACHEPAGE', true); | |
| define('DONOTCACHEOBJECT', true); | |
| define('DONOTCACHEDB', true); | |
| define('DONOTROCKETOPTIMIZE', true); | |
| define( 'WP_CACHE', false ); | |
| } else { | |
| define( 'WP_CACHE', true ); | |
| } |
NewerOlder