This file contains 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
Sub DeleteRowsIfContainsSubstring() | |
Dim ws As Worksheet | |
Dim cell As Range | |
Dim deleteSubstring As String | |
Dim lastRow As Long | |
Dim i As Long | |
' Define the substring that will trigger row deletion | |
deleteSubstring = "/page/" ' Change this to your specific substring | |
This file contains 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
import dns.resolver | |
import sys | |
def get_dns_info(domain): | |
try: | |
result = {} | |
for record_type in ['A', 'AAAA', 'MX', 'NS', 'TXT', 'CNAME']: | |
try: | |
answers = dns.resolver.resolve(domain, record_type) | |
result[record_type] = [str(rdata) for rdata in answers] |
This file contains 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
import dns.resolver | |
def get_mx_records(domain): | |
"""Get MX records for a given domain.""" | |
try: | |
answers = dns.resolver.resolve(domain, 'MX') | |
mx_records = [(r.exchange.to_text(), r.preference) for r in answers] | |
return mx_records | |
except (dns.resolver.NoAnswer, dns.resolver.NXDOMAIN, dns.resolver.Timeout) as e: | |
return f"Error retrieving MX records for {domain}: {str(e)}" |
This file contains 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
var combinations = []; | |
for (var i = 1000; i <= 9999; i++) { | |
if (i.toString().charAt(0) !== "0") { | |
combinations.push(i); | |
} | |
} | |
console.log(combinations.join("\n")); | |
// copy the list to the clipboard | |
var copyToClipboard = (str) => { |
This file contains 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
/* | |
* @author Sanford Whiteman | |
* @version v1.0 2020-10-22 | |
* @copyright © 2020 Sanford Whiteman | |
* @license Hippocratic 2.1: This license must appear with all reproductions of this software. | |
* @https://nation.marketo.com/t5/product-discussions/how-do-i-get-a-form-to-display-an-error-message-in-real-time/td-p/306036 | |
* | |
* | |
*/ | |
(function () { |
This file contains 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 | |
// Remove subscribe to calendar dropdown from main calendar page | |
add_filter( 'tribe_template_html:events/v2/components/subscribe-links/list', '__return_false' ); |
This file contains 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
Windows Registry Editor Version 5.00 | |
; Created by: Shawn Brink | |
; Created on: June 27th 2016 | |
; Updated on: May 7th 2019 | |
; Tutorial: https://www.tenforums.com/tutorials/14312-restore-windows-photo-viewer-windows-10-a.html | |
[HKEY_CURRENT_USER\SOFTWARE\Classes\.bmp] |
This file contains 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
Windows Registry Editor Version 5.00 | |
; Created by: Shawn Brink | |
; Created on: June 27th 2016 | |
; Updated on: May 7th 2019 | |
; Tutorial: https://www.tenforums.com/tutorials/14312-restore-windows-photo-viewer-windows-10-a.html | |
[HKEY_CURRENT_USER\SOFTWARE\Classes\.bmp] |
This file contains 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 | |
//Remove Gutenberg Block Library CSS from loading on the frontend | |
function smartwp_remove_wp_block_library_css(){ | |
wp_dequeue_style( 'wp-block-library' ); | |
wp_dequeue_style( 'wp-block-library-theme' ); | |
wp_dequeue_style( 'wc-blocks-style' ); // Remove WooCommerce block CSS | |
wp_dequeue_style( 'storefront-gutenberg-blocks' ); // Storefront theme | |
} | |
add_action( 'wp_enqueue_scripts', 'smartwp_remove_wp_block_library_css', 100 ); |
This file contains 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
/** | |
* Removes comments from the left hand navigation in the admin. | |
*/ | |
add_action( 'admin_menu', 'wp_remove_menus' ); | |
function wp_remove_menus() { | |
global $menu; | |
global $submenu; | |
remove_menu_page( 'edit-comments.php' ); | |
echo ''; | |
} |
NewerOlder