This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <# | |
| .SOLUTION | |
| .FILENAME domain-join.ps1 | |
| Joins a computer to the targeted domain, using a retrieved credential, deleting the old account | |
| .DESCRIPTION | |
| .PARAMETER -Join |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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" | |
| ############################################################################################## |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @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 || ( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #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 |
NewerOlder