Install tools:
brew install gnupg pinentry-mac
Configure the tty for gpg in your shell profile:
{"basics":{"name":"Karsten Müller","label":"Senior DevOps Engineer","image":"https://avatars.githubusercontent.com/u/230872?v=4","email":"[email protected]","phone":"","url":null,"summary":"I’m an outgoing Cloud Architect/DevOps Engineer with over 20 years of experience in Linux and Open-Source. I have a passion for People, Networks, Open Source Communities and Automation. Outside of my day to day, I’m helping non-profit associations to use cloud services and like to go out on the water on my sailing boat.","profiles":[{"network":"gitconnected","username":"karstenmueller","url":"https://gitconnected.com/karstenmueller"},{"network":"GitHub","username":"karstenmueller","url":"https://github.com/karstenmueller"},{"network":"LinkedIn","url":"https://www.linkedin.com/in/karmueller","username":"karmueller"}],"headline":"Everything should be made as simple as possible, but not simpler (Albert Einstein)","blog":"https://karstenmueller.me","yearsOfExperience":20,"username":"karstenmueller","locationAsString":"Hamburg, Germa |
Minimal safe Bash script template from Maciej Radzikowski
# agnoster's Theme - https://gist.github.com/3712874 | |
# A Powerline-inspired theme for ZSH | |
CURRENT_BG='NONE' | |
case ${SOLARIZED_THEME:-dark} in | |
light) CURRENT_FG='white';; | |
*) CURRENT_FG='black';; | |
esac |
#!/usr/bin/env bash | |
set -o nounset -o errexit -o pipefail | |
SCRIPT_DIR=${SCRIPT_DIR:="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd -P)"} | |
TF_CONTEXT="${TF_CONTEXT:-}" # name of the game | |
TF_IMAGE_VERSION="${TF_IMAGE_VERSION:-$(cat .terraform-version)}" | |
usage="usage: $(basename "$0") <plan|apply|destroy|validate|fmt> <module>" |
export CLOUDSDK_CORE_PROJECT="k8s-example" | |
export CLOUDSDK_COMPUTE_ZONE="europe-west3-c" |
chocolatey_package 'git' do | |
package_name 'git' | |
options '-params /GitAndUnixToolsOnPath' | |
end | |
packages = %w[conemu visualstudiocode 7zip winmerge vagrant autohotkey] | |
packages.each do |pkg| | |
chocolatey_package pkg | |
end |
Region Code | Region Name | Availability Zones |
---|---|---|
us-east-1* | N. Virginia | us-east-1a us-east-1b us-east-1c us-east-1d us-east-1e |
us-east-2 | Ohio | us-east-2a us-east-2b us-east-2c |
us-west-1* | N. California | us-west-1a us-west-1b us-west-1c |
us-west-2 | Oregon | us-west-2a us-west-2b us-west-2c |
eu-west-1 | Ireland | eu-west-1a eu-west-1b eu-west-1c |
eu-central-1 | Frankfurt | eu-central-1a eu-central-1b |
A lot of important government documents are created and saved in Microsoft Word (*.docx). But Microsoft Word is a proprietary format, and it's not really useful for presenting documents on the web. So, I wanted to find a way to convert a .docx file into markdown.
On a mac you can use homebrew by running the command brew install pandoc
.
$url = "https://raw.githubusercontent.com/Nordstrom/chefdk_bootstrap/master/bootstrap.ps1" | |
$out = "$env:USERPROFILE\Documents\bootstrap.ps1" | |
Invoke-WebRequest -Uri $url -OutFile $out | |
if (!([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] "Administrator")) { | |
Start-Process powershell.exe "-NoProfile -ExecutionPolicy Bypass -File `"$out`"" -Verb RunAs | |
exit | |
} |