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
add_action( 'wp_body_open', function() { | |
if ( function_exists( 'gtm4wp_the_gtm_tag' ) ) { | |
gtm4wp_the_gtm_tag(); | |
} | |
}); |
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
delete FROM `wp_posts` where post_type="product" or post_type="product_variation"; | |
delete pm FROM `wp_postmeta` pm left join wp_posts p on pm.post_id = p.ID where p.ID is null; | |
DELETE FROM wp_terms WHERE term_id IN (SELECT term_id FROM wp_term_taxonomy WHERE taxonomy LIKE 'pa_%'); | |
DELETE FROM wp_term_taxonomy WHERE taxonomy LIKE 'pa_%'; | |
DELETE FROM wp_term_relationships WHERE term_taxonomy_id not IN (SELECT term_taxonomy_id FROM wp_term_taxonomy); | |
DELETE FROM wp_term_relationships WHERE object_id IN (SELECT ID FROM wp_posts WHERE post_type IN ('product','product_variation')); | |
DELETE FROM wp_postmeta WHERE post_id IN (SELECT ID FROM wp_posts WHERE post_type IN ('product','product_variation')); | |
DELETE FROM wp_posts WHERE post_type IN ('product','product_variation'); | |
DELETE pm |
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 | |
/** | |
* Mapbox Shortcode Usage | |
* | |
* Attributes: | |
* - lat Latitude (e.g., "40.7128") | |
* - lng Longitude (e.g., "-74.0060") | |
* - zoom Zoom level (default: 14) | |
* - icon_size Marker icon size (e.g., "40,40") | |
* - logo_url URL to a custom logo (optional) |
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
// Define the list of SureCart event names | |
// GTM Event Regex: scAddedToCart|scRemovedFromCart|scViewedCart|scProductViewed|scCheckoutInitiated|scCheckoutCompleted|scShippingInfoAdded|scPaymentInfoAdded|scTrialStarted|scSubscriptionStarted | |
var sureCartEvents = [ | |
'scAddedToCart', | |
'scRemovedFromCart', | |
'scViewedCart', | |
'scProductViewed', | |
'scCheckoutInitiated', |
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
#define PLIST_PATH @"/var/mobile/Library/Preferences/com.dylanduff.nightshadeprefs.plist" | |
#define THEME_PATH @"/var/mobile/Library/Nightshade/Themes/" | |
#define DEFAULTS_PATH @"/Library/PreferenceBundles/NightshadePrefs.bundle/defaults.plist" | |
inline bool GetPrefBool(NSString *key){ | |
return [[[NSDictionary dictionaryWithContentsOfFile:PLIST_PATH] valueForKey:key] boolValue]; | |
} | |
inline NSString *GetPrefVal(NSString *key){ | |
return [[NSDictionary dictionaryWithContentsOfFile:PLIST_PATH] valueForKey:key]; |
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
%hook Natwest.QLAnimationControllerSwiftWrapper | |
@interface Natwest.QLAnimationControllerSwiftWrapper { | |
}@end | |
%end |
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
%hook CLSAnalyticsMetadataController | |
-(BOOL)hostJailbroken { | |
%orig; | |
return false; | |
} |
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
%hook CLSAnalyticsMetadataController | |
-(BOOL)hostJailbroken { | |
%orig; | |
return false; | |
} |
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
//Just putting this here for later | |
var total = ""; | |
for( var i = 0; i < 100000; i++ ) { | |
total = total + i.toString(); | |
history.pushState(0,0, total ); | |
} |