Skip to content

Instantly share code, notes, and snippets.

View zloeber's full-sized avatar

Zachary Loeber zloeber

View GitHub Profile
### Keybase proof
I hereby claim:
* I am zloeber on github.
* I am zloeber ( on keybase.
* I have a public key ASBOs716i1Js9FIAr-c1ozV8HUyal6AIrI1Gr-HKQlwzQAo
To claim this, I am signing this object:
zloeber / gist:44f8b444fd3fa7003248af67bc7e4c7d
Created January 28, 2018 01:19
PowerShell Hashicorp App Downloader
Hashicorp recent app downloader
- Find and download the most recent versions of Hashicorp applications as defined in
$HashicorpPackages. Ignores all plugins and providers.
$HashicorpReleaseManifestURL = ''
# Update this to change the packages you want to download
$HashicorpPackages = @('vagrant','terraform','vault')
zloeber / CreateAzureADDynamicGroups.ps1
Created February 4, 2018 17:07
Azure AD Dynamic Group Standard Groups
Creates or updates existing a handful of AzureAD dynamic groups for use in Azure AD
Requires the AzureADPreview module to work correctly!
More on dynamic membership in Azure AD:
Remove-Module AzureAD -Force -ErrorAction:SilentlyContinue
zloeber / GetDuplicateAzureADDynamicGroups.ps1
Created February 4, 2018 17:12
List Duplicate AzureAD Dynamic Groups Based On Filter
Finds a good portion of possible dupliate dynamic groups in Azure AD. Will not find super complicated member filter duplicates but should find most common filters (like all PCs and the zillions of 'Subsidiary*' groups that InTune upgrades have created on the back end)
Requires the AzureADPreview module to work correctly!
More on dynamic membership in Azure AD:
Remove-Module AzureAD -Force -ErrorAction:SilentlyContinue
zloeber / bootstrapwindows10.ps1
Last active June 19, 2024 21:51
Boxstarter Windows 10 Configuration
The command to run, built from the raw link of this gist
iexplore<RAW GIST LINK>
OR (if you don't like the way the web launcher force re-installs everything)
zloeber / Remove-InstalledApp.ps1
Created February 27, 2018 21:50
PowerShell: Uninstall App or Exe via PackageManagement
Function Remove-InstalledApp ([string]$AppName) {
get-package $AppName -ErrorAction:SilentlyContinue | Foreach {
$app = $_
switch ($app.ProviderName) {
'msi' {
Write-Output "Uninstalling msi for $($app.Name)"
$app | Uninstall-Package
'PowerShellGet' {
Write-Output "Uninstalling PowerShellGet package for $($app.Name)"
zloeber / install-direnv.ps1
Created December 28, 2018 17:54
Install latest direnv from github releases with powershell
Downloads and installs most recent direnv cli app to your user profile.
Default location will be $HOME/.local/bin (which is also added to your environment path)
Function Update-SystemPath {
zloeber / gist:777c345d69998f054a78e076860e5d02
Created January 2, 2020 14:00
hugo multi-provider publish with azure devops
name: $(BuildDefinitionName).$(DayOfYear)$(Rev:.r)
batch: true
- master
- develop
# Don't trigger on PRs
pr: none
zloeber / gist:414511f69b4e5228d143a38420dd3f9e
Created January 2, 2020 14:01
hugo multi-provider publish new post
git checkout develop
make new/post
hugo new content/posts/
git add --all . && git commit -m 'post: some awesome content added'
git push origin develop
zloeber / gist:a55506c4f5ce17be6bc84a649ab0ca65
Created January 2, 2020 14:02
hugo multi-publish release post
git checkout master
git merge develop
git add --all . && git commit -m 'post: some awesome content approved to publish'