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 ); | |
} |
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
chown -R sitecom:sitecom site.com |
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
server { | |
listen 80; | |
listen [::]:80; | |
listen 443 ssl http2; | |
listen [::]:443 ssl http2; | |
{{ssl_certificate_key}} | |
{{ssl_certificate}} | |
server_name million.tools www.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
let phpArrayString = "array("; | |
const elements = document.querySelectorAll('.game-item'); | |
elements.forEach((element, index) => { | |
const value = element.getAttribute('data-ga-param'); | |
phpArrayString += `'${index}' => '${value}'`; | |
if (index < elements.length - 1) { | |
phpArrayString += ", "; | |
} | |
}); |
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 | |
/** | |
* This function uploads from a URL. | |
* To upload from a local file path instead | |
* @see: https://gist.github.com/RadGH/3b544c827193927d1772 | |
* | |
* Example usage: Upload photo from URL, display the attachment as as html <img> | |
* $attachment_id = rs_upload_from_url( "http://example.com/images/photo.png" ); | |
* echo wp_get_attachment_image( $attachment_id, 'large' ); |
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
tar -zcv --exclude='.DS_Store' -f milliontools.tar.gz site/ |
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
Selecting next duplicate word - CMD + G | |
Selecting all duplicate words - Control + G | |
Upload to.. - Option + Shift + CMD + X (mine Option + CMS + S) | |
Untab - Shift + Tab |
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
/** | |
* Connect *.php files from core folder | |
*/ | |
function include_classes() { | |
$files = glob( get_template_directory() . '/core/*.php' ); | |
foreach ( $files as $file ) { | |
include_once( $file ); | |
} | |
} | |
add_action( 'after_setup_theme', 'include_classes', 11 ); |
NewerOlder