Skip to content

Instantly share code, notes, and snippets.

View bluedoors's full-sized avatar

Bryn Price bluedoors

View GitHub Profile
@bluedoors
bluedoors / macos-devenv-bootstrap.sh
Last active November 26, 2021 00:35 — forked from jousby/macos-devenv-bootstrap.sh
A macOS shell and developer toolchain setup script updated for Big Sur (Aug 2021)
#!/bin/bash
#####################################################################
#
# A macOS dev env setup script updated for a Big Sur
# install (08/2021). There isn't anything macos specific in here
# though, i just haven't tested it elsewhere.
#
# I have a seperate script that setups a fresh macOS install with
# a useful set of software applicatiions that you might want to run
@bluedoors
bluedoors / macos-software-bootstrap.sh
Last active November 24, 2021 04:37 — forked from jousby/macos-software-bootstrap.sh
A macOS software install script updated for a Big Sur install (Aug 2021)
#!/bin/bash
#####################################################################
#
# A macOS software bootstrap script updated for a Big Sur
# install (08/2021).
#
# I have a seperate script that setups zsh and installs programming
# language toolchains that you would run after this if you are in
# software development game.
@bluedoors
bluedoors / ACMESharpAzureDNS.ps1
Last active January 6, 2017 05:21 — forked from animetauren/ACMESharpAzureDNS.ps1
ACMESharp DNS Challenge with Azure DNS
#Deal with the challenge for each SAN
$i=0
foreach ($subDomain in $domains) {
$i++
$alias = 'dns' + $i
New-ACMEIdentifier -Dns $subDomain -Alias $alias
$completedChallenge = Complete-ACMEChallenge $alias -ChallengeType dns-01 -Handler manual
$dnsRRName = ($completedChallenge.Challenges | Where-Object {$_.Type -eq "dns-01"}).Challenge.RecordName
$dnsRRName = $dnsRRName.TrimEnd(".example.com")
$dnsRRValue = ($completedChallenge.Challenges | Where-Object {$_.Type -eq "dns-01"}).Challenge.RecordValue