Skip to content

Instantly share code, notes, and snippets.

@florian-obradovic
florian-obradovic / check-and-remediate-vba-Fix9072568-Project-Client.ps1
Last active September 2, 2024 10:27
PowerShell Proactive Remediation to fix Project Client VBA Macros in Enterprise Global (EGlobal) caused by August 2024 Updates. Probably caused by the fix for CVE-2024-38189: Microsoft Project Remote Code Execution vulnerability.
# Script provided as is, no warranty.
# Get in touch: www.theprojectgroup.com - Your Project Experts
#
# [HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\MS Project\Settings]
# "Fix9072568"=dword:00000001
#
# Confirmed to work with August 13, 2024 - Microsoft® Project 2019 MSO (Version 2407 Build 16.0.17830.20166) 64-bit.
# Probably caused by the fix for CVE-2024-38189: Microsoft Project Remote Code Execution vulnerability
# check.ps1
try {
@rkeiii
rkeiii / gist:0fe05fdcee6f520c208280acbf2b49ea
Created September 10, 2022 23:20
Hack fix script for volumes suffering ZFS encryption bug
#!/usr/bin/env bash
#
# This script attempts to recover a ZFS filesystem afflicted by the bug described in
# the following GitHub issues:
#
# * https://github.com/openzfs/zfs/issues/13859
# * https://github.com/openzfs/zfs/issues/13521
# * https://github.com/openzfs/zfs/issues/13709
#

Introduction

Sometimes you may want to use a DNS server for specific domain requests and another DNS server for all other requests. This is helpful, for instance, when connected to a VPN. For hosts behind that VPN you want to use the VPN's DNS server but all other hosts you want to use Google's public DNS. This is called "DNS splitting."

Here, we run dnsmasq as a background service on macOS. The dnsmasq configuration described below implements DNS splitting.

Install

brew install dnsmasq
@wankdanker
wankdanker / ksmstat
Created September 9, 2011 18:12
bash script to calculate ksm stats in kb
#!/bin/bash
if [ "$1" != "" ]; then
echo "
----------------------------------------------------------------------------
http://www.kernel.org/doc/Documentation/vm/ksm.txt :
The effectiveness of KSM and MADV_MERGEABLE is shown in /sys/kernel/mm/ksm/: