Archive for the ‘code’ Category

Woocommerce Variation Threshold

If your Woocommerce store has a lot of variations with specific attributes you might come across an instance when the options are not displaying properly. It’s showing everything instead of only assigned variation for an attribute. And yet when you pick a combination of something that’s should be hidden you get this message. Now a […]



Local Storage with selenium

Here is a quick way to add local storage for any website that is storing tokens inside local storage. from selenium import webdriver # for webdriver # Get URL first to load page to run script driver('https://url.com') driver.execute_script("window.localStorage.setItem('name', 'value');") # Refresh the page driver('https://url.com')


Feb
23
2021

Automate your life with code

One of my favorite things about code is you can automate some of your life, or just speed up the process on many tedious tasks. Here are some tips and ticks as well as my process Ive gone through to help automated many things in my life. In the beginning. My very first real attempt […]


Jan
19
2021

4 must have firewall rules for WordPress

So many bots scanning your server even if you aren’t WordPress but if you are running WordPress here are 4 must have rules to help block attacks and save server bandwidth. First you need to rename your login url. A plugin will handle this for you, I recommend iTheme Security. The free version works fine. […]


Jun
11
2020

5 Reasons your app sucks

You don’t have a desktop/website version of your app but yet you make me create an account to access your content. So I can not login on my computer to access your content. (5 Mile app this one’s for you!) I can’t export my data. You have no feature to export all my data I […]


Feb
08
2020

How to remove favicon in Google Search

Annoying little Google! I just noticed when using Google to search it shows all these annoying and mostly ugly favicons next to the url in the search. After doing some Googling apparently there is no way to really turn this off. It’s suppose to be experimental. But it’s so freaking ugly Google! Stop experimenting on […]


Dec
09
2019

Atom Custom File Type Detection

In this example I will show you how you can set OpenCart’s .tpl file extension to read as PHP when opening in Atom Editor. Open your config.cson file. Underneath core: add: customFileTypes: 'text.html.php': [ 'tpl' ] text.html.php is the “source” and the tpl is the file extension. Now when you open a .tpl file it […]


Mar
12
2019

Gulp, SCSS and WordPress

Ive been using gulp and live reload for many years now. It’s super efficient. Gulp, SCSS aka (sass) and WordPress can be a bit tricky though. Mostly because the typical SCSS structure is to put the final files in directories that aren’t necessarily WordPress friendly or WordPress structured. Also if you are trying to compress […]


Feb
08
2019


Remove meta-generator tags from WordPress using PHP

WordPress is one of the most popular CMS on the web today. But there are a few really bad practices that both WordPress core and plugin developers have, which is putting the version number of their software in the html code. With the ever growing vulnerability database that is WordPress, please stop helping people with […]


Feb
23
2017