Skip to content

Instantly share code, notes, and snippets.

Avatar

Zachary Loeber zloeber

View GitHub Profile
@zloeber
zloeber / bootstrapwindows10.ps1
Last active Apr 7, 2021
Boxstarter Windows 10 Configuration
View bootstrapwindows10.ps1
<#
The command to run, built from the raw link of this gist
Win+R
iexplore http://boxstarter.org/package/url?<RAW GIST LINK>
OR (if you don't like the way the web launcher force re-installs everything)
View deploy-syncthing.sh
#!/bin/bash
# Installs and configures a user syncthing deployment on Ubuntu
# Add the release PGP keys:
curl -s https://syncthing.net/release-key.txt | sudo apt-key add -
# Add the "stable" channel to your APT sources:
echo "deb https://apt.syncthing.net/ syncthing stable" | sudo tee /etc/apt/sources.list.d/syncthing.list
View gist:e280030aa819be22653809bb1d353c0d
helmDefaults:
tillerless: true
tillerNamespace: platform
atomic: false
verify: false
wait: true
timeout: 1200
recreatePods: true
force: true
@zloeber
zloeber / install-direnv.ps1
Created Dec 28, 2018
Install latest direnv from github releases with powershell
View install-direnv.ps1
<#
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)
https://github.com/direnv/direnv/releases/download/
#>
Function Update-SystemPath {
@zloeber
zloeber / Remove-InstalledApp.ps1
Created Feb 27, 2018
PowerShell: Uninstall App or Exe via PackageManagement
View Remove-InstalledApp.ps1
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
zloeber / gist:44f8b444fd3fa7003248af67bc7e4c7d
Created Jan 28, 2018
PowerShell Hashicorp App Downloader
View gist:44f8b444fd3fa7003248af67bc7e4c7d
<#
Hashicorp recent app downloader
- Find and download the most recent versions of Hashicorp applications as defined in
$HashicorpPackages. Ignores all plugins and providers.
#>
$HashicorpReleaseManifestURL = 'https://releases.hashicorp.com/index.json'
# Update this to change the packages you want to download
$HashicorpPackages = @('vagrant','terraform','vault')
@zloeber
zloeber / gist:d01a6dde6bce82b216b6631d2ed0d612
Created Apr 6, 2020
Kubernetes Terraform App Deployment Brief Example
View gist:d01a6dde6bce82b216b6631d2ed0d612
resource kubernetes_namespace deployment {
metadata {
name = var.namespace
}
}
// Example Secrets to expose as env vars in deployment
resource kubernetes_secret appsecrets {
metadata {
name = "appsecrets"
View minikube-up.sh
#!/bin/bash
# Work around script to get minikube running on Ubuntu 19.10
# - Updates local firewall settings (ufw)
# - Whacks your local ./.kube and ./.minikube folders!
# - Runs sudo commands to get things running but does not require sudo to run thereafter
export MINIKUBE_WANTUPDATENOTIFICATION=false
export MINIKUBE_WANTREPORTERRORPROMPT=false
export MINIKUBE_HOME=$HOME
export CHANGE_MINIKUBE_NONE_USER=true
View gist:f9667986bbfa264eae7c2df902a29def
name: ado-var-group-sync
trigger:
batch: true
branches:
include:
- master
paths:
include:
- config/*