Skip to content

Instantly share code, notes, and snippets.

View justinmarwad's full-sized avatar

Justin justinmarwad

View GitHub Profile
@justinmarwad
justinmarwad / open-webui.yaml
Created November 15, 2024 20:50
Self-signed TLS K8s configuration file for open-webui
## NAMESPACE ##
---
apiVersion: v1
kind: Namespace
metadata:
name: open-webui
## STORAGE ##
---
apiVersion: v1
# IMPORTANT NOTE: This seems to only work with the Tesla Data Center driver 551.78. Source: https://www.reddit.com/r/PleX/comments/15ukivg/comment/lg0uxv9/.
param (
[switch]$apply,
[switch]$revert
)
# Function to locate the correct registry path based on DriverDesc
function Find-NVIDIARegistryPath {
param ([string]$controlSet)
@justinmarwad
justinmarwad / renameHost.sh
Last active January 17, 2023 07:17
Change hostname on Linux (Ubuntu 22.04 tested) in single bash command
export OLDHOST="ubuntu-server"; export NEWHOST="K"; sudo sed -i 's/$OLDHOST/$NEWHOST/g' /etc/hosts; sudo hostnamectl set-hostname $NEWHOST
@justinmarwad
justinmarwad / Install-Wazuh.ps1
Last active May 20, 2023 04:31
Powershell Script To Install/Uninstall/Setup A Wazuh Client on Windows
# Made by Justin Marwad 2022
# Install ex: ./Install-Wazuh.ps1 -server [wazuh_ip] -name [name_wazuh_sees] -install
# Update cert ex: ./Install-Wazuh.ps1 -server [wazuh_ip] -name [name_wazuh_sees]
# Restart ex: ./Install-Wazuh.ps1 -restart
# Uninstall ex: ./Install-Wazuh.ps1 uninstall
param (
[string]$server = $null,
[string]$name = [System.Net.Dns]::GetHostName(),