This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# So this has to be run through SCCM. Both by packaging an "App" and calling powershell.exe to run the script, or by adding a script and running it. | |
# Variables | |
# So here's a webpage you want to scrape: | |
$Source = "http://download.videolan.org/pub/videolan/vlc/last/win64/" | |
# This will run locally and give you the latest version of the win64.exe installer. Something like: vlc-3.0.6-win64.exe | |
$Installer = ( Invoke-WebRequest $Source | fl * | Out-String -Stream | sls -Pattern 'win64.exe"' | select-object -First 1 | %{$_ -replace ".*href=.",""} | %{$_ -replace '".*',''} ) | |
# But If you run that same line through SCCM your Installer Variable will be null. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
kind: Template | |
apiVersion: v1 | |
metadata: | |
name: snipe-it | |
annotations: | |
openshift.io/display-name: Snipe-IT | |
description: Snipe-IT - Open Source Asset Management | |
openshift.io/provider-display-name: Grokability, Inc. | |
openshift.io/documentation-url: https://snipeitapp.com/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
##################################################################################################### | |
# | |
# ABOUT THIS PROGRAM | |
# | |
# NAME | |
# Gives the number of days left until password expiration as an extension attribute. | |
# | |
#################################################################################################### | |
# |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: 3.8 | |
services: | |
db: | |
image: mariadb | |
restart: always | |
volumes: | |
- db:/var/lib/mysql | |
network: | |
- nextcloud-net | |
environment: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/python3 | |
import os | |
import json | |
import argparse | |
import logging | |
import subprocess | |
import yaml | |
import time | |
# Set us up for using runtime arguments by defining them. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Replace Line 134 with the encoded webhook secret! and Lines 80 and 108 with your slack channel. | |
usage() { | |
echo "Usage: $0 [OPTIONS]" | |
echo "Options:" | |
echo " -h, Display this help message" | |
echo " -a, Combine all the configs into a single yaml | |
instead of breaking them up." | |
echo " -v, Enable verbose mode" | |
echo " -c, Insert the Clustername into the alertconfig" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# LICENSE: MIT | |
# This takes a PVC name and namespace then flattens the boot disk (to get it off a backed image disk). | |
# Exit if there's none provided. | |
if [ -z $1 ] && [ -z $2 ]; then | |
echo "You need to provide a pvcname and namespace for the disk you want to flatten." | |
exit 1 | |
fi | |