Skip to content

Instantly share code, notes, and snippets.

View trodemaster's full-sized avatar
💭
Pushing buttons

Blake Garner trodemaster

💭
Pushing buttons
View GitHub Profile
@trodemaster
trodemaster / sources.list
Created September 20, 2023 04:48
ubuntu 22.04 multi arch amd64 and arm64
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports/ jammy main restricted
deb [arch=amd64] http://us.archive.ubuntu.com/ubuntu jammy main restricted
## Major bug fix updates produced after the final release of the
## distribution.
deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports/ jammy-updates main restricted
deb [arch=amd64] http://us.archive.ubuntu.com/ubuntu jammy-updates main restricted
@trodemaster
trodemaster / wsus_client.ps1
Created December 1, 2014 19:17
Register Windows Server 2012 r2 to wsus server via registry keys
New-Item -Path "HKLM:Software\Policies\Microsoft\Windows\WindowsUpdate"
New-Item -Path "HKLM:Software\Policies\Microsoft\Windows\WindowsUpdate\AU"
Set-ItemProperty -Path "HKLM:\software\policies\Microsoft\Windows\WindowsUpdate" -Name WUServer -Value "http://wsus.domain.com:8530" -Type String -force
Set-ItemProperty -Path "HKLM:\software\policies\Microsoft\Windows\WindowsUpdate" -Name WUStatusServer -Value "http://wsus.domain.co:8530" -Type String -force
Set-ItemProperty -Path "HKLM:\software\policies\Microsoft\Windows\WindowsUpdate\AU" -Name UseWUServer -Value "1" -Type DWORD -force
@trodemaster
trodemaster / AzureStackNotes.txt
Created March 1, 2017 18:06
Some quick notes for those looking to build Azure Stack nested inside vSphere
Start w WinSrv2016 base vm
12 core and 12 core per socket
128GB ram locked
expand disk to 256GB
add 2nd scsi controller with scsi bus sharing enabled.
add 4 x 256GB disks to 2nd scsi controller EagerThick with multi-writer enabled independent persistent (allows snapshot of boot disk)
add custom vmx prop hypervisor.cpuid.v0 to 0
Download the POC disk image via microsoft instructions. Extract vmxnet3 and pvscsi drivers to a directory. like c:\vmwaredrivers
version:1
:debug:main Starting logging for nrsc5 @59bc2968485635c16c7250696abc3e8ff765b72d_0
:debug:sysinfo macOS 13.3.1 (darwin/22.4.0) arch arm
:debug:sysinfo MacPorts 2.8.1
:debug:sysinfo Xcode 14.1, CLT 14.3.0.0.1.1679647830
:debug:sysinfo SDK 13
:debug:sysinfo MACOSX_DEPLOYMENT_TARGET: 13.0
:debug:main epoch: in tree: 0 installed: 0
:debug:main libtool 2.4.7_0 exists in the ports tree
:debug:main libtool 2.4.7_0 is the latest installed
@trodemaster
trodemaster / teamsMic.scpt
Created August 26, 2022 15:15
Microsoft Teams
tell application "Microsoft Teams"
activate
tell application "System Events"
keystroke "m" using {shift down, command down}
keystroke tab using {command down}
end tell
end tell
# setup macOS sshd config file to disable ssh pasword auth
sudo tee /etc/ssh/sshd_config.d/206-key-auth-only.conf >/dev/null <<-EOF
ChallengeResponseAuthentication no
PasswordAuthentication no
UsePAM no
EOF
# dump all the launchd services
launchctl print gui/$UID
# dump details of the service
launchctl print gui/$UID/com.blakegarner.vault
# stop service and unload from launchd
launchctl bootout gui/$UID/com.blakegarner.vault
# start the servcie and load plist from disk
weewx[42327] INFO __main__: Initializing weewx version 4.5.1
weewx[42327] INFO __main__: Using Python 3.9.9 (main, Nov 18 2021, 11:03:15)
[Clang 13.0.0 (clang-1300.0.29.3)]
weewx[42327] INFO __main__: Platform macOS-12.1-x86_64-i386-64bit
weewx[42327] INFO __main__: Locale is 'en_US/UTF-8/en_US/en_US/en_US/en_US'
weewx[42327] INFO __main__: Using configuration file /Users/blake/code/weather/devweewx.conf
weewx[42327] INFO __main__: Debug is 1
weewx[42327] DEBUG __main__: Initializing engine
weewx[42327] INFO weewx.engine: Loading station type Simulator (weewx.drivers.simulator)
weewx[42327] DEBUG weewx.engine: Loading service weewx.engine.StdTimeSynch
# setup the secrets engine
resource "vault_gcp_secret_backend" "gcp" {
description = var.GCP_SE_DESCRIPTION
path = "gcp/${var.GCP_SE_PATH}"
credentials = file(var.GCP_SE_CREDENTIALS_PATH) # google credentials in a json file
default_lease_ttl_seconds = var.GCP_SE_TTL
max_lease_ttl_seconds = var.GCP_SE_TTL_MAX
}
# Setup the role binding
version:1
:debug:main Starting logging for libfido2 @1.8.0_1
:debug:sysinfo OS X 10.8.5 (darwin/12.5.0) arch i386
:debug:sysinfo MacPorts 2.7.1
:debug:sysinfo Xcode 5.1.1
:debug:sysinfo SDK 10.8
:debug:sysinfo MACOSX_DEPLOYMENT_TARGET: 10.8
:debug:main epoch: in tree: 0 installed: 0
:debug:main cmake 3.20.5_2 exists in the ports tree
:debug:main cmake 3.20.5_2 is the latest installed