Skip to content

Instantly share code, notes, and snippets.

View scarson's full-sized avatar

Sam Carson scarson

  • Laserfiche
  • Los Angeles, California
View GitHub Profile
@Rhodiym
Rhodiym / kill_kvm.sh
Last active March 8, 2024 08:44
Resolving Proxmox VE - Kill VM - Shutdown Bug
#!/bin/bash
############################################################################################
# MIT License
#
# Copyright (c) 2024 Caleb Rhody
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
@scyto
scyto / proxmox.md
Last active May 29, 2024 10:30
proxmox cluster proof of concept

ProxMox Cluster - Soup-to-Nutz

aka what i did to get from nothing to done.

note: these are designed to be primarily a re-install guide for myself (writing things down helps me memorize the knowledge), as such don't take any of this on blind faith - some areas are well tested and the docs are very robust, some items, less so). YMMV

Purpose of Proxmox cluster project

Required Outomces of cluster project

@jmassardo
jmassardo / Invoke-WebRequest_Ignore_SSL.ps1
Created February 26, 2019 15:19
PowerShell hack to ignore ssl certificates when using Invoke-WebRequest
add-type @"
using System.Net;
using System.Security.Cryptography.X509Certificates;
public class TrustAllCertsPolicy : ICertificatePolicy {
public bool CheckValidationResult(
ServicePoint srvPoint, X509Certificate certificate,
WebRequest request, int certificateProblem) {
return true;
}
}
@beruic
beruic / ini.ps1
Last active April 19, 2024 21:31
Read INI files in PowerShell
function Get-IniFile {
<#
.SYNOPSIS
Read an ini file.
.DESCRIPTION
Reads an ini file into a hash table of sections with keys and values.
.PARAMETER filePath
The path to the INI file.