Skip to content

Instantly share code, notes, and snippets.

@meoso
meoso / v13-deprecations.ps1
Last active January 16, 2025 16:12
List some Veeam v13 deprecations
### List some Veeam v13 deprecations
clear;
Import-Module Veeam.Backup.PowerShell
Connect-VBRServer -Server localhost
# Get all Veeam jobs
$jobs = Get-VBRJob
Write-Host 'Jobs with retention type not set to "days":'
$jobsNotSetToDays = $jobs | Where-Object {
@meoso
meoso / gist:392ad3dd69859c0e3244464e08aaed51
Created October 16, 2024 20:33
Ghetto GPO Change-Audit Powershell Emailing script
#########################################################################
############ Ghetto GPO Change Audit ##############
############ DRAFT / WIP in-progress ##############
############ Lists/Emails modified GPO's only, not linking ##############
#########################################################################
############ script by NJD 2021-03-08, edited Oct 2024 ##############
#########################################################################
############# Programmatically set variables ################
$MyDomain = (Get-ADDomain).DNSRoot # AD Domain root in plain-text format
@meoso
meoso / synology_zerotier.md
Created March 8, 2023 20:20 — forked from DraTeots/synology_zerotier.md
Sinology DS211j ZeroTier configuration
@meoso
meoso / gist:543b213468cacc64addeb4961249529f
Created December 5, 2022 17:45
freshly installed Ubuntu 22.04.1 apt sources.list
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://us.archive.ubuntu.com/ubuntu jammy main restricted
# deb-src http://us.archive.ubuntu.com/ubuntu jammy main restricted
## Major bug fix updates produced after the final release of the
## distribution.
deb http://us.archive.ubuntu.com/ubuntu jammy-updates main restricted
# deb-src http://us.archive.ubuntu.com/ubuntu jammy-updates main restricted
@meoso
meoso / how-to-cross-compile-jdupes-for-arm-on-debian-amd64.txt
Created August 19, 2022 15:08
cross compile jdupes for arm on debian amd64
### thank you @jbruchon
### https://github.com/jbruchon/jdupes
sudo aptitude install gcc-arm-linux-gnueabi binutils-arm-linux-gnueabi git
git clone --depth=1 https://github.com/jbruchon/jdupes.git
cd jdupes/
CC=arm-linux-gnueabi-gcc make
@meoso
meoso / update-cygwin.bat
Created July 25, 2022 13:14
cywin updater batch/powershell
powershell.exe -Command "Start-BitsTransfer -Source https://cygwin.com/setup-x86_64.exe -Destination setup-x86_64.exe"
setup-x86_64.exe --no-desktop --no-shortcuts --no-startmenu --upgrade-also --delete-orphans --quiet-mode
@meoso
meoso / export.json
Created June 29, 2022 14:51
Enhancer For Youtube export includes script to hid recommended
{
"version": "2.0.115",
"settings":
{
"blur": 0,
"brightness": 100,
"contrast": 100,
"grayscale": 0,
"huerotate": 0,
"invert": 0,
@meoso
meoso / example.com-account-password-activation-email.ps1
Created June 2, 2022 13:46
PowerShell account activation email script
#################################################################################################################
#
# Script for Account Activation Notifications (i.e. Password Must be Changed at next logon)
# v20180329
# Heavily gutted/modified from Password Expiry Email Notification Version 1.4 by Robert Pearman (WSSMB MVP) @ TitleRequired.com
# Originally downloaded from https://gallery.technet.microsoft.com/Password-Expiry-Email-177c3e27
# Requires: Windows PowerShell Module for Active Directory
#
##################################################################################################################
# Please Configure the following variables....
@meoso
meoso / datastore-stats.ps1
Last active January 26, 2022 17:14
VMWare DataStore Statistics
[CmdletBinding()]
param(
[Parameter(Mandatory=$True,Position=0,HelpMessage="The script will output to .CSV datastore statistics for the provided vCenter Server hostname or FQDN")]
[string]$vCenter
)
Import-Module VMware.VimAutomation.Core | Out-Null
try {
Connect-VIServer -Server $vCenter -Protocol https -Force -ErrorVariable err -ErrorAction SilentlyContinue | Out-Null
@meoso
meoso / gist:38c6bb84e450906e0593b9c020e82d3e
Last active March 7, 2022 20:24
KeepForeverFALSE__ALLLLL -- for https://script.google.com/ and gDrive file revision "KeepForever" modification
function setRevisionPurge() {
//var search = '(title contains .BBL) or (title contains .bbl)';
var files = DriveApp.getFiles(); //DriveApp.searchFiles(search);
while (files.hasNext()) {
var file = files.next();
var fileName = file.getName();
var fileId = file.getId();