Skip to content

Instantly share code, notes, and snippets.

View weissfotos's full-sized avatar
🏠
Working from home

Thomas Weiss weissfotos

🏠
Working from home
View GitHub Profile
@weissfotos
weissfotos / remove_bloatware.sh
Created April 30, 2023 20:24 — forked from baszoetekouw/remove_bloatware.sh
Bloatware to be removed from Galaxy S8
#!/bin/bash
# dit zijn de paketten die IK van mijn (verder lege) telefoon heb verwijderd.
exit
adb shell pm uninstall -k --user 0 com.android.bio.face.service
adb shell pm uninstall -k --user 0 com.diotek.sec.lookup.dictionary
adb shell pm uninstall -k --user 0 com.enhance.gameservice
adb shell pm uninstall -k --user 0 com.facebook.appmanager
adb shell pm uninstall -k --user 0 com.facebook.katana
adb shell pm uninstall -k --user 0 com.facebook.services
adb shell pm uninstall -k --user 0 com.facebook.system
@weissfotos
weissfotos / .htaccess
Created February 10, 2022 20:50 — forked from indysigner/.htaccess
Die optimale .htaccess-Datei für mehr Speed und Sicherheit
# ----------------------------------------------------------------------
# | Komprimierung und Caching |
# ----------------------------------------------------------------------
# Serve resources with far-future expires headers.
#
# (!) If you don't control versioning with filename-based
# cache busting, you should consider lowering the cache times
# to something like one week.
#
@weissfotos
weissfotos / gpsi-delay-js
Created February 4, 2022 13:43 — forked from colmtroy/gpsi-delay-js
scripts to delay for gpsi/cwv
gtm4wp-form-move-tracker.js
wishlist.js
ajax-search.js
wp-polyfill.min.js
swiper.min.js
frontend.js
add-to-cart.min.js
elementor/frontend.min.js
share-link.min.js
gtm.js
<?php
add_filter( 'shoptimizer_typography2_enabled', '__return_true' );
@weissfotos
weissfotos / functions.php
Created January 21, 2022 11:02 — forked from alexander-young/functions.php
WP Basic Cleanup
<?php
// //remove emoji support
remove_action('wp_head', 'print_emoji_detection_script', 7);
remove_action('wp_print_styles', 'print_emoji_styles');
// // Remove rss feed links
remove_action( 'wp_head', 'feed_links_extra', 3 );
remove_action( 'wp_head', 'feed_links', 2 );
@weissfotos
weissfotos / functions.php
Created February 6, 2021 12:34 — forked from alexander-young/functions.php
Defer Javascript in WordPress
function defer_parsing_of_js($url)
{
if (is_admin()) return $url; //don't break WP Admin
if (false === strpos($url, '.js')) return $url;
if (strpos($url, 'jquery.js')) return $url;
return str_replace(' src', ' defer src', $url);
}
add_filter('script_loader_tag', 'defer_parsing_of_js', 10);