Skip to content

Instantly share code, notes, and snippets.

View MacsInSpace's full-sized avatar

Craig Hair MacsInSpace

  • Department of Education
  • Melbourne
  • 18:42 (UTC +11:00)
View GitHub Profile
@b0gdanw
b0gdanw / Disable-Tahoe-Bloatware.sh
Last active September 9, 2026 05:21
Disable Tahoe Bloatware
#!/bin/zsh
# WARNING! The script is meant to show how and what can be disabled. Don’t use it as it is, adapt it to your needs.
# Credit: Original idea and script disable.sh by pwnsdx https://gist.github.com/pwnsdx/d87b034c4c0210b988040ad2f85a68d3
# Disabling unwanted services on macOS Big Sur (11), macOS Monterey (12), macOS Ventura (13), macOS Sonoma (14), macOS Sequoia (15) and macOS Tahoe (26)
# Disabling SIP is required ("csrutil disable" from Terminal in Recovery)
# Modifications are written in /private/var/db/com.apple.xpc.launchd/ disabled.plist, disabled.501.plist
# To revert, delete /private/var/db/com.apple.xpc.launchd/ disabled.plist and disabled.501.plist and reboot. From Terminal : sudo rm -r /private/var/db/com.apple.xpc.launchd/*
# user
@jeremy46231
jeremy46231 / download.sh
Created December 15, 2024 07:51
Download all of an artist's music from YouTube Music
#!/bin/bash
FOLDER_NAME='NF'
ALBUM_URLS=(
'https://music.youtube.com/playlist?list=OLAK5uy_milshKgR-N66M5IZsSfZWQ74AyrScobNg'
'https://music.youtube.com/playlist?list=OLAK5uy_nkiW8jxcMFfW-cMj1bIssQ72wMKbZl74w'
'https://music.youtube.com/playlist?list=OLAK5uy_neGGnaIvUpRQKa0ypb1DJ2XNblJqSIVZk'
'https://music.youtube.com/playlist?list=OLAK5uy_n9eUjg75GpIamf81ViLecAo25oO-9uWRA'
'https://music.youtube.com/playlist?list=OLAK5uy_m_Qm4j2Gl2oTXcYQEmXta78YFWgKdyWWM'
'https://music.youtube.com/playlist?list=OLAK5uy_mP8vIAXz5d0gtoDwO11-RxF3X5VoNf2Ok'
@stuartsmith78
stuartsmith78 / domain-join.ps1
Created July 13, 2023 15:51
Custom Domain Join for MDT
<#
.SOLUTION
.FILENAME domain-join.ps1
Joins a computer to the targeted domain, using a retrieved credential, deleting the old account
.DESCRIPTION
.PARAMETER -Join
@SMSAgentSoftware
SMSAgentSoftware / PSEncryptDecrypt.ps1
Last active January 10, 2025 15:20
PowerShell examples for symmetric and asymmetric encryption with the .Net cryptography model
# Example code for encrypting and decrypting secrets with .Net cryptography using either symmetric or asymmetric encryption
###################################
## SYMMETRIC ENCRYPTION ##
## Using AES 256-bit in CBC mode ##
###################################
# Create an AES key and Initialization vector
$AES = [System.Security.Cryptography.Aes]::Create()
$Key = [System.Convert]::ToBase64String($aes.Key)
@eisenreich
eisenreich / wait_for_http_200.sh
Last active July 5, 2024 16:20 — forked from rgl/wait_for_http_200.sh
Wait for HTTP endpoints to return 200 OK with bash, curl and timeout
#!/bin/bash
##############################################################################################
# Wait for URLs until return HTTP 200
#
# - Just pass as many urls as required to the script - the script will wait for each, one by one
#
# Example: ./wait_for_urls.sh "${MY_VARIABLE}" "http://192.168.56.101:8080"
##############################################################################################
@william-reed
william-reed / erwin.js
Created March 2, 2022 01:20
erwin.vw.com download all documents
// once you have a one day plan:
// 1. navigate to your vehicles page under 'Service Information'
// 2. Leave 'Category 1' set to '[Category 1]' and click search
// 3. Open your JS console
// get all document titles
titles = document.getElementsByClassName("title")
documentIds = []
// extract each document id
@hugefiver
hugefiver / set_proxy.ps1
Last active August 12, 2024 02:53
powershell set default proxy for `Invoke-WebRequest`
# set to system default proxy
[System.Net.WebRequest]::DefaultWebProxy = [System.Net.WebRequest]::GetSystemWebProxy()
[System.Net.WebRequest]::DefaultWebProxy.Credentials = [System.Net.CredentialCache]::DefaultNetworkCredentials
# or a custom one
[System.Net.WebRequest]::DefaultWebProxy = New-Object System.Net.WebProxy("http://localhost:8080")
# or use username and password auth
[System.Net.WebRequest]::DefaultWebProxy = New-Object System.Net.WebProxy("http://localhost:8080",$true)
[System.Net.WebRequest]::DefaultWebProxy.Credentials = New-Object System.Net.NetworkCredential($user, $passwd)
@ezracb
ezracb / VMware Workstation Pro and Fusion Pro Licence Keys
Created April 9, 2021 14:43
VMware Workstation Pro and Fusion Pro Licence Keys
Obviously using these keys may be a grey area. I use them for my computer, but there are no guarentees VMware won't sue you if you use them in a commercial environment.
VMware Workstation 16
YF390-0HF8P-M81RQ-2DXQE-M2UT6
VMware Fusion Pro 12
YF390-0HF8P-M81RQ-2DXQE-M2UT6
As far as I know, this key works on both Fusion and Workstation.
@echo off
:======================================================================================================================================================
:Thanks to abbodi1406 for SppExtComObjPatcher-kms\2-Activate-Local.cmd, which used as base in this script
:Thanks to rpo for the Great and Continued help in improving this script.
:Thanks to AR_Alex for the ideas and suggestions.
:======================================================================================================================================================
::===========================================================================
fsutil dirty query %systemdrive% >nul 2>&1 || (
@zbalkan
zbalkan / Start-WindowsActivation.ps1
Last active January 4, 2026 08:23
It's a drop-in replacement for slmgr.vbs script
#Requires -RunAsAdministrator
#Requires -Version 5
<#
.Synopsis
Activates Windows via KMS
.DESCRIPTION
It's a drop in replacement for slmgr scripts
.EXAMPLE
Start-WindowsActivation -Verbose # Activates the local computer
.EXAMPLE