Skip to content

Instantly share code, notes, and snippets.

View davidldennison's full-sized avatar
🎯
Focusing

David Dennison davidldennison

🎯
Focusing
View GitHub Profile
@erikyo
erikyo / woocommerce_layered_navigation_add_classes.php
Last active July 6, 2025 20:38
Adds some useful classes to the WooCommerce layered navigation widget. This makes it very easy to stylise attribute colours or anything that can be represented with an icon.
<?php
/**
* Adds some useful classes to the WooCommerce layered navigation widget.
* This makes it very easy to stylise attribute colours or anything that can be represented with an icon.
*
* @param string $term_html - the item html
* @param object $term - the item props
*
* @return string - the old html list content wrapped inside a div with as class term id, term name and taxonomy
@RubenKelevra
RubenKelevra / fast_firefox.md
Last active March 1, 2026 15:07
Make Firefox fast again
@erikyo
erikyo / replacevar-script.js
Last active July 6, 2025 20:36
Adds to Yoast an additional replacement variable both in frontend and snippet preview (backend)
/* inspired from https://github.com/Yoast/wpseo-woocommerce/blob/trunk/js/src/yoastseo-woo-replacevars.js */
/* global jQuery, YoastSEO, app, globals YoastACFAnalysisConfig */
var pluginName = "additionalVariablePlugin";
var ReplaceVar = window.YoastReplaceVarPlugin && window.YoastReplaceVarPlugin.ReplaceVar;
var placeholders = {};
var modifiableFields = [
"content",
"title",
@natzir
natzir / google-api-indexing.ipynb
Created November 12, 2020 14:50
Google-API-Indexing.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Velocet
Velocet / Unlock-PowerCfg.ps1
Last active February 26, 2026 13:55
Unlock/Unhide all Power Plan Settings/Options on Windows 10/11
#Requires -RunAsAdministrator
# Unlock-PowerCfg - v22.05.11
# Disable "Connected Standby"
Set-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\Power' -Name 'CSEnabled' -Value 0 -Force
# Get Power Settings entries and add/set 'Attributes' to 2 to unhide
$PowerCfg = (Get-ChildItem 'HKLM:\SYSTEM\CurrentControlSet\Control\Power\PowerSettings' -Recurse).Name -notmatch '\bDefaultPowerSchemeValues|(\\[0-9]|\b255)$'
foreach ($item in $PowerCfg) { Set-ItemProperty -Path $item.Replace('HKEY_LOCAL_MACHINE','HKLM:') -Name 'Attributes' -Value 2 -Force }
@fscm
fscm / install_python3.md
Last active February 26, 2026 20:58
[macOS] Install Python 3 programming language

[macOS] Install Python 3 programming language

Instructions on how to install the Python 3 programming language on macOS.

Uninstall

First step should be to unsinstall any previous Python 3 installation. This step can be skipped if no Python 3 version was previously installed.

This will completelly remove any Python 3 previously installed. If you which to keep the user modules installed with pip3 you should skip the last command.

@sadewadee
sadewadee / DNS Prefetch domains
Created March 28, 2020 05:01 — forked from lukecav/DNS Prefetch domains
WP Rocket - Advanced Options Prefetch DNS requests
//maps.googleapis.com
//maps.gstatic.com
//fonts.googleapis.com
//fonts.gstatic.com
//ajax.googleapis.com
//apis.google.com
//google-analytics.com
//www.google-analytics.com
//ssl.google-analytics.com
//youtube.com
@peteristhegreat
peteristhegreat / Readme.md
Created January 30, 2020 15:50
Swap file magic
sudo dd if=/dev/zero of=/swap1 bs=1k count=1M
sudo mkswap /swap1 
sudo chmod 600 /swap1 
sudo swapon /swap1

# Make it permanent
echo '/swap1 none swap sw 0 0' | sudo tee -a /etc/fstab
@peteristhegreat
peteristhegreat / ReadMe.md
Created September 24, 2019 19:56
Pandoc, Markdown to PDF on Mac
brew install pandoc
brew cask install basictex # takes a few minutes
sudo tlmgr install collection-fontsrecommended
pandoc -f markdown -t latex ./myfile.md -o myfile.pdf
For a more organised and more update list please visit https://github.com/RayZz-/LCU-Arguments
This list will no longer be updated please refer to the repo linked above
These are known command line arguments for the LCU(including helper) some maybe outdated
or overtime may become outdated or some information maybe incorrect
if you would like to contribute please comment with updated information.
Usage example:
--app-name=kappa