Skip to content

Instantly share code, notes, and snippets.

View davidldennison's full-sized avatar
🎯
Focusing

David Dennison davidldennison

🎯
Focusing
View GitHub Profile
@yetanotherchris
yetanotherchris / enable-iis-windows-10.ps1
Created May 21, 2016 17:36
Powershell script to enable all IIS, MSMQ and WCF features on Windows 8 and 10.
Import-Module Dism
Enable-WindowsOptionalFeature -Online -FeatureName IIS-WebServerRole
Enable-WindowsOptionalFeature -Online -FeatureName IIS-WebServer
Enable-WindowsOptionalFeature -Online -FeatureName IIS-CommonHttpFeatures
Enable-WindowsOptionalFeature -Online -FeatureName IIS-HttpErrors
Enable-WindowsOptionalFeature -Online -FeatureName IIS-HttpRedirect
Enable-WindowsOptionalFeature -Online -FeatureName IIS-ApplicationDevelopment
Enable-WindowsOptionalFeature -Online -FeatureName IIS-NetFxExtensibility
Enable-WindowsOptionalFeature -Online -FeatureName IIS-NetFxExtensibility45
Enable-WindowsOptionalFeature -Online -FeatureName IIS-HealthAndDiagnostics
@lukecav
lukecav / DNS Prefetch domains
Last active February 20, 2026 20:50
WP Rocket - Advanced Options Prefetch DNS requests examples
//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
@jonlabelle
jonlabelle / disable_macos_firewall_logging.md
Last active October 10, 2025 20:11
Disable macOS Firewall Logging
@raspi
raspi / enable-all-advanced-power-settings.ps1
Last active August 27, 2026 15:59
Enable all advanced power settings in Windows.
# List all possible power config GUIDs in Windows
# Run: this-script.ps1 | Out-File powercfg.ps1
# Then edit and run powercfg.ps1
# (c) Pekka "raspi" Järvinen 2017
$powerSettingTable = Get-WmiObject -Namespace root\cimv2\power -Class Win32_PowerSetting
$powerSettingInSubgroubTable = Get-WmiObject -Namespace root\cimv2\power -Class Win32_PowerSettingInSubgroup
Get-WmiObject -Namespace root\cimv2\power -Class Win32_PowerSettingCapabilities | ForEach-Object {
$tmp = $_.ManagedElement
@nondebug
nondebug / known_gamepads.txt
Last active August 20, 2026 21:32
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 August 2, 2026 17:19
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.

@jborean93
jborean93 / Install-ModuleNupkg.ps1
Last active May 29, 2026 23:49
Installs a PowerShell module from a Nupkg URI on systems that don't have PowerShellGet installed
# Copyright: (c) 2019, Jordan Borean (@jborean93) <jborean93@gmail.com>
# MIT License (see LICENSE or https://opensource.org/licenses/MIT)
<#
The cmdlets in this script can be used to install a PowerShell module from a nupkg as well as some logic to get the
nupkg URI from either the PowerShell Gallery or a GitHub release asset. The PowerShell Gallery is the most reliable
function to use as a nupkg is guaranteed to be there and a GitHub release must have explicitly added the nupkg itself.
You can run this by doing:
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