Skip to content

Instantly share code, notes, and snippets.

View blizzardengle's full-sized avatar

Christopher Keers blizzardengle

View GitHub Profile
@blizzardengle
blizzardengle / print.js
Last active June 28, 2024 18:18
A simple logger class that allows printing console messages in color. Designed for node.js applications but usable in supported browsers as well.
/**
* Author: Christopher Keers | Caboodle Tech
* License: MIT
* Source: https://gist.github.com/blizzardengle/8147b6e7d8ffab2709ae2f79b7006b02
*/
class Print {
#enabled = true;
disable() {
@blizzardengle
blizzardengle / deep-merge.js
Created March 29, 2024 15:32
Deep merge two object together. Built this with AI and have no use for it anymore keeping around just in case.
/**
* Deep merge two objects together keeping unique keys from each object.
*
* @param {object} mergeIntoObj - The object to merge another object into.
* @param {object} mergeAndPrioritizeObj - The object to merge into mergeIntoObj. This object
* has priority when collisions occur.
* @returns
*/
const deepMerge(mergeIntoObj, mergeAndPrioritizeObj) => {
@blizzardengle
blizzardengle / win_http_serv_reconfigure.ps1
Created October 30, 2024 23:46
Windows HTTP & Print Spooler Port Conflict Resolution: This script ensures that port 80 remains open for other applications by moving the default Windows Print Service to a different port.
<#
.SYNOPSIS
Windows HTTP and Print Spooler Port Conflict Resolution Script
.DESCRIPTION
This script resolves port conflicts between Docker/Web services and the Windows Print Spooler
by reconfiguring the HTTP service to use port 5000 instead of 80. This allows both printing
and Docker to work simultaneously.
.NOTES