Skip to content

Instantly share code, notes, and snippets.

@Laffs2k5
Laffs2k5 / local_debug_apply.log
Last active April 24, 2025 13:57
azuread debug log sp auth issue
2025-04-24T14:30:12.399+0200 [INFO] provider: configuring client automatic mTLS
2025-04-24T14:30:12.404+0200 [DEBUG] provider: starting plugin: path=.terraform/providers/registry.terraform.io/hashicorp/azuread/3.3.0/linux_arm64/terraform-provider-azuread_v3.3.0_x5 args=[".terraform/providers/registry.terraform.io/hashicorp/azuread/3.3.0/linux_arm64/terraform-provider-azuread_v3.3.0_x5"]
2025-04-24T14:30:12.405+0200 [DEBUG] provider: plugin started: path=.terraform/providers/registry.terraform.io/hashicorp/azuread/3.3.0/linux_arm64/terraform-provider-azuread_v3.3.0_x5 pid=365196
2025-04-24T14:30:12.405+0200 [DEBUG] provider: waiting for RPC address: plugin=.terraform/providers/registry.terraform.io/hashicorp/azuread/3.3.0/linux_arm64/terraform-provider-azuread_v3.3.0_x5
2025-04-24T14:30:12.410+0200 [INFO] provider.terraform-provider-azuread_v3.3.0_x5: configuring server automatic mTLS: timestamp="2025-04-24T14:30:12.409+0200"
2025-04-24T14:30:12.416+0200 [DEBUG] provider.terraform-provider-azuread_v3.3.
@Laffs2k5
Laffs2k5 / 11-bluetooth-policy.conf
Last active August 6, 2024 09:50
Config for WirePlumber >=5 for disabling automatic switching to a bluetooth headset profile with microphone.
## NOTE: this is for WirePlumber >=0.5
##
## BT profile auto switch is default on, see 'bluetooth.autoswitch-to-headset-profile' in /usr/share/wireplumber/wireplumber.conf
##
## We don't want bluetooth profile auto switch because we have a separate mic
##
## Save this file as ~/.config/wireplumber/wireplumber.conf.d/11-bluetooth-policy.conf
##
## Apply changes with:
## systemctl --user restart wireplumber.service
@Laffs2k5
Laffs2k5 / 11-policy-extras.lua
Created August 6, 2024 09:45
Config for WirePlumber 4.x (and older) for disabling automatic switching to a bluetooth headset profile with microphone.
-- NOTE: this is for WirePlumber <0.5
--
-- This will be merged with /usr/share/wireplumber and /etc/wireplumber
-- ref. https://pipewire.pages.freedesktop.org/wireplumber/configuration/config_lua.html#multi-path-merging
--
-- BT profile auto switch is default on by /usr/share/wireplumber/policy.lua.d/10-default-policy.lua
--
-- We don't want bluetooth profile auto switch because we have a separate mic
--
-- Save this file as ~/.config/wireplumber/policy.lua.d/11-policy-extras.lua
@Laffs2k5
Laffs2k5 / userchrome.css
Last active August 6, 2024 11:28
Firefox userchrome file, hides tab bar when using vertical tabs
/*
Firefox userchrome file, hides tab bar when using vertical tabs
Save as:
Windows:
C:\Users\<username>\AppData\Roaming\Mozilla\Firefox\Profiles\<random giberish>.default-release\chrome\userChrome.css
Linux (flatpak):
~/.var/app/org.mozilla.firefox/.mozilla/firefox/<random giberish>.default-release/chrome/userChrome.css
Linux (rpm):
~/.mozilla/firefox/<random giberish>.default-<random giberish>/chrome/userChrome.css
@Laffs2k5
Laffs2k5 / Get-Chocolatey.ps1
Last active January 8, 2019 09:29
Get-Chocolatey.ps1
# Chocolatey Non-Administrative install
$InstallDir='C:\ProgramData\chocoportable'
$env:ChocolateyInstall="$InstallDir"
Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy Bypass
# All install options - offline, proxy, etc at https://chocolatey.org/install
Invoke-Expression ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
# Portable git install
choco install git.portable
@Laffs2k5
Laffs2k5 / generate_clone_all_bitbucket_repos.sh
Last active July 9, 2018 18:11
Script to clone all repositories in all projects in a bitbucket server (aka stash)
# generate_clone_all_bitbucket_repos.sh
#
# Based on https://gist.github.com/eeichinger/babbdf99d8fe21fef8634d56f29defba
# Credits goes to https://gist.github.com/eeichinger
#
# Requirements:
# - jq - commandline JSON processor
# sudo dnf install jq.x86_64
#
# Note: make sure set your username, password and server
@Laffs2k5
Laffs2k5 / win-updates.ps1
Created August 15, 2017 08:04 — forked from joefitzgerald/win-updates.ps1
Install All Windows Updates, Rebooting As Many Times As Required
param($global:RestartRequired=0,
$global:MoreUpdates=0,
$global:MaxCycles=10)
function Check-ContinueRestartOrEnd() {
$RegistryKey = "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Run"
$RegistryEntry = "InstallWindowsUpdates"
switch ($global:RestartRequired) {
0 {
$prop = (Get-ItemProperty $RegistryKey).$RegistryEntry