Skip to content

Instantly share code, notes, and snippets.

View mikenelson-io's full-sized avatar

Mike Nelson mikenelson-io

View GitHub Profile
@halr9000
halr9000 / README.md
Last active March 12, 2025 21:15
Ollama AI / LLM Utility Functions for PowerShell

Utility functions for use with Ollama in PowerShell

Want to run AI Large Language Models (LLM) locally? One great way is with Ollama, which can host many state of the art LLMs. Ollama is a command-line utility (CLI) that can be used to download and manage the model files (which are often multiple GB), perform the actual LLM inference, and provide a REST API to expose the LLMs to other applications on your system. Ollama is quick to install.

This repo contains functions for PowerShell. You can dot source this file to make the functions available in your current PowerShell session, or add it to your profile to make them available for every session. This was developed on Windows, but should work as-is on a Linux or [MacOS]

@janegilring
janegilring / Set-HueLight.ps1
Created April 3, 2020 03:28
Configure color of Philips Hue Lightstrip - example usage: https://twitter.com/JanEgilRing/status/1245433266099965959
function r {
if (-not (Get-Module -Name PoSHue)) {
Import-Module -Name PoSHue
}
$BridgeAPIKey = $env:HueAPIKey
$BridgeIPAddress = '10.0.1.236'
@artman41
artman41 / wsl-install_another_distro.md
Last active April 5, 2025 19:32
Instructions on how to install a custom distro in WSL2 (Windows SubSystem for Linux 2)

WSL install another distro

  1. Here are some default vars for the process
ISO_DIR=~/fedora;
ROOTFS_MOUNT_DIR=/mnt/contents

DISTRO_LOCATION=
@mackwage
mackwage / windows_hardening.cmd
Last active April 16, 2025 17:27
Script to perform some hardening of Windows OS
:: Windows 10 Hardening Script
:: This is based mostly on my own personal research and testing. My objective is to secure/harden Windows 10 as much as possible while not impacting usability at all. (Think being able to run on this computer's of family members so secure them but not increase the chances of them having to call you to troubleshoot something related to it later on). References for virtually all settings can be found at the bottom. Just before the references section, you will always find several security settings commented out as they could lead to compatibility issues in common consumer setups but they're worth considering.
:: Obligatory 'views are my own'. :)
:: Thank you @jaredhaight for the Win Firewall config recommendations!
:: Thank you @ricardojba for the DLL Safe Order Search reg key!
:: Thank you @jessicaknotts for the help on testing Exploit Guard configs and checking privacy settings!
:: Best script I've found for Debloating Windows 10: https://github.com/Sycnex/Windows10Debloater
:
@PatrickLang
PatrickLang / win10_slipstream.md
Last active February 19, 2025 01:28
Building an up to date Windows 10 VHDX
Install-Module -Name xPSDesiredStateConfiguration -Force
[DscLocalConfigurationManager()]
configuration LCM {
Settings {
RebootNodeIfNeeded = $true
ActionAfterReboot = 'ContinueConfiguration'
}
}