Skip to content

Instantly share code, notes, and snippets.

<#
.EXTERNALMODULEDEPENDENCIES Microsoft.Graph (v.2.0.0-preview)
.DESCRIPTION
This script monitors apple token expiration in Intune (Intune) and checks if DEP, VPP, and APNS tokens,
certificates are valided after the number of specified days.
It utilizes Microsoft.Graph (v.2.0.0-preview) module to authenticate with the system managed identity of your
Azure Automation Account.
Permissions Required: DeviceManagementServiceConfig.Read.All, DeviceManagementApps.Read.All Directory.Read.All
#!/bin/bash
### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ###
# I customized the script written by @ninjabes to my needs
# https://forum.proxmox.com/threads/problems-migrating-lxc-from-ubuntu2004-to-proxmox.100815/post-435303
# This is currently the only workaround I know for the UID/GID mapping issues after importing rootfs exports from LXD / LXC
# Ubuntu 20.04 into proxmox 7.2-11
# The resulting containers have various permission issues and UIDs & GIDs aren't mapped correctly.
# Example: ls -alh
# total 44K
@florian-obradovic
florian-obradovic / SetCertificate_AzureApplicationProxy.ps1
Last active December 27, 2021 10:53
Exports Certificate + Secret from Azure Key Vault & assigns it to all Azure Application Proxy Applications (PowerShell)
<#
"Written" by Florian Obradovic #Not_A_Coder #not_pretty
This script exports a given certificate from Azure key vault and assigns it to all Azure Application Proxy Applications
It will NOT work in Azure Cloud Shell:
$certCollection.Import($kvSecretBytes,$null,[System.Security.Cryptography.X509Certificates.X509KeyStorageFlags]::Exportable)
MethodInvocationException: Exception calling "Import" with "3" argument(s): "ASN1 corrupted data."
#>
@florian-obradovic
florian-obradovic / README
Last active November 20, 2019 09:08 — forked from satmandu/mount_zfs.sh
Alternative non-bpool/rpool zpool mount systemd service for ubuntu 19.10
Big THX to Satmandu.
I just forked his scripts and added a README (https://gist.github.com/satmandu/4da5e900c2c80c93da38c76537291507)
HowTo:
create /lib/systemd/system/zpool-local.service and set your pool name (mine: tank) and the startup priority/Dependencies:
Before=smbd.service snap.lxd.daemon.service
ExecStart=+/usr/local/sbin/mount_zfs.sh tank