Skip to content

Instantly share code, notes, and snippets.

View bartvdbraak's full-sized avatar
🎈
creating and contributing

Bart van der Braak bartvdbraak

🎈
creating and contributing
View GitHub Profile
@bartvdbraak
bartvdbraak / azure-codesign-metrics.ipynb
Created March 7, 2025 11:30
Python Code/Notebook for getting metrics from Azure Trusted Signing using Diagnostic Settings exported to Azure Blob Storage (Codesign Transactions)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
ref: https://github.com/element-hq/element-web/issues/28354
Write-Host "Attempting to download and install dependencies"
# Install VCLibs package
try {
Add-AppxPackage "https://aka.ms/Microsoft.VCLibs.x64.14.00.Desktop.appx" -Verbose
} catch {
Write-Host "Failed to install VCLibs package. Error: $_" -ForegroundColor Red
exit 1
}
@bartvdbraak
bartvdbraak / enable-smb-guest.ps1
Created November 27, 2024 16:01
disable smb signing and guest logons on 24h2
# You might need adminstrator
Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Services\LanmanWorkstation\Parameters" -Name "AllowInsecureGuestAuth" -Value 1 -Type DWord
Set-GPRegistryValue -Name "EnableInsecureGuestLogons" -Key "HKLM\SOFTWARE\Policies\Microsoft\Windows\LanmanWorkstation" -ValueName "AllowInsecureGuestAuth" -Type Dword -Value 1
# if no RSAT
# Set-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\LanmanWorkstation" -Name "AllowInsecureGuestAuth" -Value 1 -Type DWord
Set-GPRegistryValue -Name "NetworkClientDigitallySignAlways" -Key "HKLM\SOFTWARE\Policies\Microsoft\Windows\LanmanWorkstation" -ValueName "RequireSecuritySignature" -Type Dword -Value 0
# if no RSAT
# Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Services\LanmanWorkstation\Parameters" -Name "RequireSecuritySignature" -Value 0 -Type DWord
@bartvdbraak
bartvdbraak / logseq-ios.md
Created July 29, 2024 00:24
Sync Logseq on iOS with `git` and A-Shell

Set up git over SSH on iOS

  1. Install A-Shell on iOS
  2. Create an SSH key on device
ssh-keygen -t ecdsa -N "" -f ~/Documents/.ssh/id_ecdsa
  1. Copy the public key and add to where your remote repository is (GitHub, Gitlab, Gitea, etc.)
cat ~/Documents/.ssh/id_ecdsa.pub
@bartvdbraak
bartvdbraak / get-bitlocker-description-percentage.ps1
Created June 9, 2024 22:41
Powershell commands to get BitLocker Encryption/Decryption status
while (1) {Get-BitLockerVolume -MountPoint "C:" | Select-Object EncryptionPercentage; sleep 5}
@bartvdbraak
bartvdbraak / hip-5.7-windows-install.ps1
Last active May 27, 2024 12:45
Windows commands for installing HIP 5.7 on Windows
Invoke-WebRequest `
-Uri "https://download.amd.com/developer/eula/rocm-hub/AMD-Software-PRO-Edition-23.Q4-Win10-Win11-For-HIP.exe" `
-OutFile "~\Downloads\Setup.exe"
Start-Process ~\Downloads\Setup.exe -ArgumentList '-install','-log',"${env:USERPROFILE}\installer_log.txt" -NoNewWindow -Wait
@bartvdbraak
bartvdbraak / bootstrap-rockylinux8-blender-compile.sh
Last active May 24, 2024 15:39
Rocky Linux 8 commands to bootstrap for Blender compilation
curl https://projects.blender.org/blender/blender/raw/branch/main/build_files/build_environment/linux/linux_rocky8_setup.sh -o linux_rocky8_setup.sh
chmod +x linux_rocky8_setup.sh
sudo ./linux_rocky8_setup.sh
echo "source scl_source enable gcc-toolset-11" | sudo tee -a /etc/profile
@bartvdbraak
bartvdbraak / bootstrap-windows-blender-compile.ps1
Last active May 24, 2024 12:35
Windows commands to bootstrap for Blender compilation
Add-AppPackage -path "https://cdn.winget.microsoft.com/cache/source.msix."
winget install Microsoft.VisualStudio.2022.Community --override "--add ProductLang En-us --add Microsoft.VisualStudio.Workload.NativeDesktop --includeRecommended"
winget install Git.Git
winget install Kitware.CMake
{"label":"lighthouse","message":"99","schemaVersion":1,"color":"4c1","namedLogo":"Lighthouse"}