Skip to content

Instantly share code, notes, and snippets.

View bartvdbraak's full-sized avatar
🎁
building en fostering

Bart van der Braak bartvdbraak

🎁
building en fostering
View GitHub Profile
@bartvdbraak
bartvdbraak / monitor-ip-changes.sh
Created June 20, 2023 14:33
Quick one-liner that will print any changes of the public IP of your machine
while true; do result=$(curl -s ifconfig.wearetriple.com); if [[ "$result" != "$previous_result" ]]; then echo "$(date) $result"; previous_result=$result; fi; sleep 1; done
@bartvdbraak
bartvdbraak / remove-pipeline-retention.ps1
Created June 26, 2023 02:34
This PowerShell script deletes a specified Azure DevOps pipeline and its builds.
param (
[Parameter(Mandatory=$true)]
[string]$PersonalToken,
[Parameter(Mandatory=$true)]
[string]$Organization,
[Parameter(Mandatory=$true)]
[string]$Project
)
{"label":"lighthouse","message":"99","schemaVersion":1,"color":"4c1","namedLogo":"Lighthouse"}
@bartvdbraak
bartvdbraak / backup-wwwroot.py
Created January 30, 2024 20:07
(unfinished) Download wwwroot of Linux Web App on Azure using ssh and tar
import os
import sys
import time
import subprocess
import re
import paramiko
from paramiko import SSHClient, AutoAddPolicy
REMOTE_FILE_OUTPUT = "/home/site/wwwroot.tar"
{"label":"lighthouse","message":"99","schemaVersion":1,"color":"4c1","namedLogo":"Lighthouse"}
@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
@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