Skip to content

Instantly share code, notes, and snippets.

View davidldennison's full-sized avatar
🎯
Focusing

David Dennison davidldennison

🎯
Focusing
View GitHub Profile
@nondebug
nondebug / known_gamepads.txt
Last active March 14, 2026 17:41
A list of vendor and product IDs for known USB and Bluetooth gamepad devices
0000:006f JessTechColourRumblePad
0001:0329 Sl6566
0005:05ac Mocute
0010:0082 AkishopCustomsPs360Plus
0078:0006 MicrontekUsbJoystick
0079:0006 PcTwinShock
0079:0011 DragonRiseGamepad
0079:1800 MayflashWiiUProAdapter
0079:181a VenomLimitedArcadeJoystick
0079:181b VenomArcadeJoystick
@skyzyx
skyzyx / homebrew-gnubin.md
Last active March 14, 2026 07:23
Using GNU command line tools in macOS instead of FreeBSD tools

macOS is a Unix, and not built on Linux.

I think most of us realize that macOS isn't a Linux OS, but what that also means is that instead of shipping with the GNU flavor of command line tools, it ships with the FreeBSD flavor. As such, writing shell scripts which can work across both platforms can sometimes be challenging.

Homebrew

Homebrew can be used to install the GNU versions of tools onto your Mac, but they are all prefixed with "g" by default.

All commands have been installed with the prefix "g". If you need to use these commands with their normal names, you can add a "gnubin" directory to your PATH from your bashrc.

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
@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
@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
@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
@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.

@Velocet
Velocet / Unlock-PowerCfg.ps1
Last active March 14, 2026 06:32
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 }
@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.
@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",