Skip to content

Instantly share code, notes, and snippets.


Carlos Nunez carlosonunez

View GitHub Profile
carlosonunez /
Created Mar 4, 2021
Use Velero with Kind without Minio

This quick Gist will show you how to get Velero up and running with Kind without using Minio. You might find this useful if you need a quick instance of Velero for testing or are just getting started with the tool but do not have access to AWS, Azure, or GCP.


  • Docker
  • Helm
  • Velero (brew install velero, choco install velero, or build from source)
carlosonunez /
Last active Mar 2, 2021
Enable support for sudo via Apple Watch and Touch ID
enable_sudo_with_apple_watch_and_touch_id() {
trap 'popd' EXIT INT HUP
enable_apple_watch() {
carlosonunez / example_tkg_bom.json
Created Dec 31, 2020
An example TKG BOM from TKG v1.2.1
View example_tkg_bom.json
"release": {
"version": "1.2.1"
"components": {
"alertmanager": {
"version": "v0.20.0+vmware.1"
"antrea": {
"version": "v0.9.3+vmware.1"
carlosonunez /
Created Dec 15, 2020
Add a super nice help documentation to any Makefile
# Add this to your Makefile or include it as a separate .mk
# to generate instant professional-looking documentation for your Make
# targets.
# To add documentation for a target name, add a ## comment after the _first_ definition of that target.
# To add documentation for environment variables, add a ## comment after the _first_ definition of that environment variable.
# To see the docs, run: make usage.
# Inspired by:
PROJECT_NAME ?= example ## Defines the name of your project.
carlosonunez /
Created Dec 10, 2020
Add this to your .bashrc or .bash_profile to run Homebrew on your super-fast M1 MacBook!
# Add this to the top of your .bashrc or .bash_profile
# So that Homebrew runs right every time.
alias brew=brew_chooser
brew_chooser() {
if test "$(uname -p)" == "arm"
arch -x86_64 brew $*
brew $*
carlosonunez /
Created Nov 29, 2020
Use this to install Firefox onto Amazon Linux 2. Current as of Firefox 82.0
yum -y install pango cairo-gobject libXinerama libXrandr dbus-glib wget libXcursor
rpm -ivh --nodeps --replacepkgs && \
rpm -ivh --nodeps --replacepkgs && \
rpm -ivh --nodeps --replacepkgs && \
rpm -ivh --nodeps && \
rpm -ivh --nodeps && \
rpm -ivh --nodeps && \
rpm -ivh --nodeps
View gist:910c539cdf7bba054394f4ba36348a4f
2020-03-06T04:31:18.185Z [DEBUG] plugin.terraform-provider-azurerm_v2.0.0_x5: [DEBUG] AzureRM Response for
2020-03-06T04:31:18.185Z [DEBUG] plugin.terraform-provider-azurerm_v2.0.0_x5: HTTP/2.0 404 Not Found
2020-03-06T04:31:18.185Z [DEBUG] plugin.terraform-provider-azurerm_v2.0.0_x5: Content-Length: 155
2020-03-06T04:31:18.185Z [DEBUG] plugin.terraform-provider-azurerm_v2.0.0_x5: Cache-Control: no-cache
2020-03-06T04:31:18.185Z [DEBUG] plugin.terraform-provider-azurerm_v2.0.0_x5: Content-Type: application/json; charset=utf-8
2020-03-06T04:31:18.185Z [DEBUG] plugin.terraform-provider-azurerm_v2.0.0_x5: Date: Fri, 06 Mar 2020 04:31:17 GMT
2020-03-06T04:31:18.186Z [DEBUG] plugin.terraform-provider-azurerm_v2.0.0_x5: Expires: -1
2020-03-06T04:31:18.186Z [DEBUG] plugin.terraform-provider-azurerm_v2.0.0_x5: Pragma: no-cache
2020-03-06T04:31:18.186Z [DE
Week Hotel Rate Weekly Total
Aug 4-8, 19 Emb Suites Chicago Downtown $193/nt $909.15
Aug 11-14, 19 Emb Suites Chicago Downtown $179/nt $841.52
Aug 18-22, 19 Hampton Inn Chicago Downtown $163/nt $766.39
Aug 25-29, 19 Hampton Inn Chicago Downtown $144/nt $678.71
Sep 01-05, 19 Hampton Inn Chicago Downtown $151/nt $712.88
x x x 3908.65
View Windows 10 Vagrant bug: vagrant up output
<<feature/VEOONEVGRS-2534-support-ie-11>> acceptance]$: VAGRANT_LOG=info vagrant up
INFO global: Vagrant version: 2.2.3
INFO global: Ruby version: 2.4.4
INFO global: RubyGems version:
INFO global: VAGRANT_LOG="info"
INFO global: VAGRANT_EXECUTABLE="/opt/vagrant/embedded/gems/2.2.3/gems/vagrant-2.2.3/bin/vagrant"
INFO global: VAGRANT_INSTALLER_EMBEDDED_DIR="/opt/vagrant/embedded"
WARN global: resolv replacement has not been enabled!
carlosonunez / gist:2f08253ed5ef8bcfe5c9908bb615e703
Created Jan 3, 2019
`aws_cloudfront_distribution` Terraform issue
View gist:2f08253ed5ef8bcfe5c9908bb615e703
2019/01/03 05:17:36 [INFO] Terraform version: 0.11.10 17850e9a55d33c43d7c31fd6ac122ba97a51d899
2019/01/03 05:17:36 [INFO] Go runtime version: go1.11.1
2019/01/03 05:17:36 [INFO] CLI args: []string{"/bin/terraform", "apply", "-auto-approve=true"}
2019/01/03 05:17:36 [DEBUG] Attempting to open CLI config file: /root/.terraformrc
2019/01/03 05:17:36 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2019/01/03 05:17:36 [INFO] CLI command args: []string{"apply", "-auto-approve=true"}
2019/01/03 05:17:36 [INFO] Building AWS region structure
2019/01/03 05:17:36 [INFO] Building AWS auth structure
2019/01/03 05:17:36 [INFO] Setting AWS metadata API timeout to 100ms
2019/01/03 05:17:36 [INFO] Ignoring AWS metadata API endpoint at default location as it doesn't return any instance-id