Skip to content

Instantly share code, notes, and snippets.

View homotechsual's full-sized avatar

Mikey O'Toole homotechsual

View GitHub Profile
----------------------------------------------------------------------------
CrystalDiskInfo 9.2.1 (C) 2008-2023 hiyohiyo
Crystal Dew World: https://crystalmark.info/
----------------------------------------------------------------------------
OS : Windows 11 Professional [10.0 Build 22631] (x64)
Date : 2023/12/06 21:11:15
-- Controller Map ----------------------------------------------------------
+ Standard SATA AHCI Controller [ATA]
@homotechsual
homotechsual / ModuleName.help.tests.ps1
Created November 20, 2023 10:17
PowerShell Module Help Tests
<#
.SYNOPSIS
Help test suite for the NinjaOne module.
#>
$ModuleName = Get-ChildItem -Path '.\Source' -Filter '*.psd1' | Select-Object -ExpandProperty BaseName
BeforeAll {
$ModuleName = Get-ChildItem -Path '.\Source' -Filter '*.psd1' | Select-Object -ExpandProperty BaseName
$ManifestPath = Get-ChildItem -Path '.\Source' -Filter '*.psd1' | Select-Object -ExpandProperty FullName
if (Get-Module -Name $ModuleName) {
Remove-Module $ModuleName -Force
@homotechsual
homotechsual / docusaurus.config.ts
Created November 3, 2023 12:08
Docusaurus multi-plugin config example
// @ts-check
// Note: type annotations allow type checking and IDEs autocompletion
import {themes as prismThemes} from 'prism-react-renderer';
const lightCodeTheme = prismThemes.vsLight;
const darkCodeTheme = prismThemes.vsDark;
const admonitionsConfig = {
admonitions: {
keywords: [
@homotechsual
homotechsual / gist:2c5ff61afc387807261fd7fad01051c4
Last active December 30, 2022 17:06
NinjaOne 3PP 28/11/2022
Current Products Supported:
Manufacturer Software Supports Install
Adobe Systems, Inc AIR Yes
Adobe Systems, Inc Acrobat No
Adobe Systems, Inc Bridge No
Adobe Systems, Inc Digital Editions No
Adobe Systems, Inc Flash Player Yes
Adobe Systems, Inc Flash Player (ESR) No
Adobe Systems, Inc Reader Yes
Adobe Systems, Inc RoboHelp No
#Requires -Version 7
function Invoke-HaloBatchProcessor {
<#
.SYNOPSIS
Handles batch processing Halo API requests using PowerShell parallel processing.
.DESCRIPTION
Utility function to batch process Halo API requests supports configurable batch sizes and delays.
.OUTPUTS
Outputs an object containing the response(s) from the web request.
#>
<#
.SYNOPSIS
Based on the PowerShell Script Analyzer (PSSA) presets.
.LINK
https://github.com/PowerShell/PSScriptAnalyzer/blob/master/Engine/Settings/
#>
@{
Severity = @(
'Error',
'Warning',
Admins are intermittently unable to deploy Windows Autopilot devices
IT431147, Last updated: September 26, 2022 5:49 PM
Estimated start time: September 15, 2022 4:53 PM
Affected services
Microsoft Intune
Issue type
Advisory
Issue origin
Microsoft
Status
@homotechsual
homotechsual / NinjaOne.oa3.json
Last active September 16, 2022 09:26
NinjaOne OpenAPI Spec Updated
This file has been truncated, but you can view the full file.
{
"openapi": "3.0.1",
"info": {
"title": "Ninja RMM Public API 2.0",
"description": "Ninja RMM Public API documentation.",
"contact": { "email": "api@ninjarmm.com" },
"version": "2.0.9-draft"
},
"servers": [
{
@homotechsual
homotechsual / generate-docusaurus-sidebar.js
Created August 31, 2022 18:15 — forked from marcojahn/generate-docusaurus-sidebar.js
Generate docusaurus sidebar from folder structure
//
// Generates a sidebar based on file structure and
// markdown frontmatter properties.
//
// ---
// title: My Cool Feature
// sidebar_label: Introduction
// ---
//
// sidebar_sort_order: the sort order of this page in the sidebar
@homotechsual
homotechsual / docusaurus.config.js
Created July 12, 2022 20:47
Homotechsual Docs docusaurus.config.js
// @ts-check
// Note: type annotations allow type checking and IDEs autocompletion
const lightCodeTheme = require('prism-react-renderer/themes/vsLight');
const darkCodeTheme = require('prism-react-renderer/themes/vsDark');
const TwitterSvg = '<svg style="fill: #1DA1F2; vertical-align: middle; margin-left: 3px;" width="16" height="16" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M459.37 151.716c.325 4.548.325 9.097.325 13.645 0 138.72-105.583 298.558-298.558 298.558-59.452 0-114.68-17.219-161.137-47.106 8.447.974 16.568 1.299 25.34 1.299 49.055 0 94.213-16.568 130.274-44.832-46.132-.975-84.792-31.188-98.112-72.772 6.498.974 12.995 1.624 19.818 1.624 9.421 0 18.843-1.3 27.614-3.573-48.081-9.747-84.143-51.98-84.143-102.985v-1.299c13.969 7.797 30.214 12.67 47.431 13.319-28.264-18.843-46.781-51.005-46.781-87.391 0-19.492 5.197-37.36 14.294-52.954 51.655 63.675 129.3 105.258 216.365 109.807-1.624-7.797-2.599-15.918-2.599-24.04 0-57.828 46.782-104.934 104.934-104.934 30.213 0 57.502 12.67 76