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
| /*ACCORDIAN*/ | |
| /* Change the Flatsome default accordion Arrow Icon to a + symbol*/ | |
| .accordion-title.active{background-color:#006587!important;color:white!important} | |
| .accordion-inner{background-color:#eeeeee!important} | |
| .accordion-title{font-size:100%} | |
| .accordion-inner{padding:10px;font-size:.85em} | |
| .accordion .toggle{top:3px!important;transform-origin: 50% 50%!important;} | |
| .accordion .active .toggle{top:3px!important;} | |
| .accordion-item {margin-bottom: 8px;} | |
| .accordion .icon-angle-down:before{content:"+";} |
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
| /** | |
| * Adds the Google Customer Reviews opt-in form to the checkout confirmation page | |
| * Add your merchant ID where the placeholder "123456789" is. | |
| * | |
| * @param int|string $order_id WooCommerce order id | |
| * | |
| */ | |
| function google_customer_reviews_optin( $order_id ) { | |
| $order = new WC_Order( $order_id ); |
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
| #!/bin/bash | |
| # --------------------------------------------------------------------------- | |
| # Generate WebP Images - Uses cwebp command line tool for Linux | |
| # This will generate / re-generate all webp images for all JPG and PNG files | |
| # Being command line based it is incredibly fast | |
| # If you don't want to re-generate existing files set generateall=0 | |
| # If you want to re-generate everything set generateall=1 | |
| # USE this script at your own risk and Only if you know what you are doing | |
| # Written by Mitchell Krog - mitchellkrog@gmail.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
| #!/bin/bash | |
| # Bash Script by https://gist.github.com/mitchellkrogza | |
| # ************************************************************ | |
| # This script clears the log file and database of Fail2Ban | |
| # This resets Fail2Ban to a completely clean state | |
| # Useful to use after you have finished testing all your jails | |
| # and completed your initial setup of Fail2Ban and are now | |
| # putting the server into LIVE mode | |
| # ************************************************************ |
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
| #!/bin/bash | |
| # Run this from Cron using @reboot - the script runs continiously | |
| # Change your email address below | |
| # Change pi.hole (Line 31) to your own PiHole Hostname | |
| # Change search terms in the array below (Line 9) to whatever words you want to monitor | |
| # Define the log file and search terms | |
| LOG_FILE="/var/log/pihole/pihole.log" | |
| SEARCH_TERMS="xvid|porn|hamster|gay|faphouse|boyfriend|xnxx|maletube|cock|chaturbate|stripchat|streamen|flirt|jizz|boys|2gochat|dragy|grindr|hoop|likee" | |
| ALERT_EMAIL="you@youremail.com" # Replace with your email address |
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
| import ipaddress | |
| import requests | |
| import pandas as pd | |
| def bot_ip_addresses(): | |
| bots_urls = { | |
| 'google': 'https://developers.google.com/search/apis/ipranges/googlebot.json', | |
| 'bing': 'https://www.bing.com/toolbox/bingbot.json' | |
| } |
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 | |
| /** | |
| * Adds first and last name to the registration field | |
| */ | |
| function proper_add_user_reg_fields () { | |
| ?> | |
| <p class="reg-email-validation"> | |
| <label for="confirm_email_address"> |
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
| /** | |
| * Remove "nofollow" from add to cart / Select options buttons | |
| * What possessed Woocommerce to inplement this we shall never know ? | |
| */ | |
| add_filter( 'woocommerce_loop_add_to_cart_args', 'add_to_cart_args_remove_nofollow' ); | |
| function add_to_cart_args_remove_nofollow( $args ) { | |
| unset($args['attributes']['rel']); | |
| return $args; |
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
| This requires | |
| - ffmpeg.exe binary on your desktop | |
| - video input file named input.mp4 | |
| - audio file for timelapse called timelapsemusic.mp3 | |
| - your finished timelapse will be called MYTIMELAPSE.mp4 | |
| - change the username in cd C:\Users\Username\Desktop to your real username on windows | |
| - Speed up or slow down the timelapse by changing the setpts=PTS/80 to a higher or lower value | |
| - Example setpts=PTS/200 = very fast timelapse | |
| - Example setpts=PTS/50 = slower timelapse | |
| DO NOT COPY ANY OF THE ABOVE LINES INTO YOUR .bat file |
NewerOlder