Skip to content

Instantly share code, notes, and snippets.

View bashtech's full-sized avatar

Andrew Bashore bashtech

View GitHub Profile

Proxmox VE tips

Just some tips I gathered over time. All in one easily reachable place so I can share it wherever I want.
Please note that unless you see a shebang (#!/...) these code blocks are meant to be copy & pasted.
Some of the steps will not work if you run part of them in a script and copy paste other ones.

Table of contents

@adns44
adns44 / eco-server-order-on-ovhcloud-api.md
Last active April 2, 2025 06:37
Eco server order process with OVHcloud API step-by-step

OVH - How to use the API to order any server? The answer is here!

I ASK YOU IN FIRST

This process is automateable. I'll write the know-how, how to do it. I kindly ask you! Do NOT ABUSE it! Please keep the oportunity to order limited edition servers for other ones!

How the OVH API works?

First of all, OVH provides API libraries to access the API. And for this too, they have an API console where you can try it. For now, we'll see the API console. We'll place an older. Lets go!

@talkingmoose
talkingmoose / Download and Install Jamf Connect.zsh
Last active May 28, 2025 09:09
Downloads and installs the latest available Jamf Connect software for Mac directly on the client. This avoids having to manually download and store an up-to-date installer on a distribution server every month.
#!/bin/zsh
:<<ABOUT_THIS_SCRIPT
-------------------------------------------------------------------------------
Written by:William Smith
Partner Program Manager
Jamf
bill@talkingmoose.net
https://gist.github.com/talkingmoose/94882adb69403a24794f6b84d4ae9de5
@RaRaRatchet
RaRaRatchet / Get-SCCMCollectionsInFolder.ps1
Last active February 28, 2025 18:23
[Get All DeviceCollections in a Folder ] Get Folder Details and get Collections in a Folder #powershell #ConfigurationManager #SCCM
Function Get-SCCMCollectionsInFolder
{
<#
.SYNOPSIS
Returns all the collections located in the specified folder ID.
.DESCRIPTION
Connects to the specified site server and retrieves the details of the specified folder as output that in term can be used for other functions.
This function is usable for Device or User collections any other items will need different WMI queries and these would be best added to a seperate function.
.EXAMPLE
[CmdletBinding(SupportsShouldProcess)]
param(
)
#The download URL for the Teams Machine-Wide Installer for x64 systems.
$teamsInstallDownloadUri = "https://teams.microsoft.com/downloads/desktopurl?env=production&plat=windows&arch=x64&managedInstaller=true&download=true"
# -- Begin searching for a current install of Teams --
Write-Verbose "Looking for a current installation of Teams Machine-Wide Installer."
@Scherlac
Scherlac / get_tds_cert.py
Last active February 14, 2024 15:11 — forked from lnattrass/get_tds_cert.py
A terrible way to connect to MS SQL Server and dump the certificate as a PEM
import sys
import pprint
import struct
import socket
import ssl
from time import sleep
# Standard "HELLO" message for TDS
prelogin_msg = bytearray([ 0x12, 0x01, 0x00, 0x2f, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x1a, 0x00, 0x06, 0x01, 0x00, 0x20,
0x00, 0x01, 0x02, 0x00, 0x21, 0x00, 0x01, 0x03, 0x00, 0x22, 0x00, 0x04, 0x04, 0x00, 0x26, 0x00,
@ryanburnette
ryanburnette / Caddyfile
Last active June 27, 2025 11:12
Caddy v2.1+ CORS whitelist
(cors) {
@cors_preflight{args.0} method OPTIONS
@cors{args.0} header Origin {args.0}
handle @cors_preflight{args.0} {
header {
Access-Control-Allow-Origin "{args.0}"
Access-Control-Allow-Methods "GET, POST, PUT, PATCH, DELETE, OPTIONS"
Access-Control-Allow-Headers *
Access-Control-Max-Age "3600"
@mss
mss / ifupdown-to-netplan.txt
Last active July 5, 2025 19:07
Migrate from ifupdown to netplan
# Tested on an upgraded Ubuntu 20.04
apt install netplan.io
systemctl unmask systemd-networkd.service
systemctl unmask systemd-resolved.service
ENABLE_TEST_COMMANDS=1 netplan migrate
netplan try
reboot
apt purge ifupdown resolvconf
ln -sf /run/systemd/resolve/stub-resolv.conf /etc/resolv.conf