Skip to content

Instantly share code, notes, and snippets.

@almightyju
almightyju / libuaw-fix.sh
Created August 9, 2022 19:02
Fix Crashplan libuaw.so missing after update for linux
#!/bin/bash
### Crashplan's script to detect the OS and get the appropriate lib from the nlib folder doesn't always work
### so this script will download the installer and actually pull out the lib from the specified folder
# which folder should the nlib be taken from within the installer
takeNlibFromFolder=rhel8
# make sure this is the install dir of crashplan
cd /usr/local/crashplan/
Get-Mailbox -RecipientTypeDetails SharedMailbox -ResultSize:Unlimited `
| Select PrimarySmtpAddress,Alias,DisplayName `
| sort displayname `
| select-object PrimarySmtpAddress, DisplayName, @{
Name = "Users With Access";
Expression = {
Get-MailboxPermission -Identity $_.alias `
| ? { $_.user -like "*@*" } `
| select -expandproperty User `
| &{"$input"}
@almightyju
almightyju / update.py
Created October 3, 2019 19:07
Sophos XG LetsEncrypt API update
import os
import requests
xmlMsg = """
<Request APIVersion="1702.1">
<Login>
<Username>apiuser</Username>
<Password>Password</Password>
</Login>
<Set operation="update">