Skip to content

Instantly share code, notes, and snippets.

View carlosonunez's full-sized avatar

Carlos Nunez carlosonunez

View GitHub Profile
@carlosonunez
carlosonunez / use_velero_with_kind.md
Created March 4, 2021 21:42
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.

Prereqs

  • Docker
  • Helm
  • Velero (brew install velero, choco install velero, or build from source)
@carlosonunez
carlosonunez / auto_sudo_via_watch_and_tid.sh
Last active March 2, 2021 22:00
Enable support for sudo via Apple Watch and Touch ID
APPLE_WATCH_PAMID_LIBPATH=/usr/local/lib/pam/pam_watchid.so.2
APPLE_WATCH_PAMID_URL=https://github.com/biscuitehh/pam-watchid
APPLE_WATCH_PAMID_PATH=$HOME/src/pamid-applewatch
enable_sudo_with_apple_watch_and_touch_id() {
trap 'popd' EXIT INT HUP
enable_apple_watch() {
if ! test -f $APPLE_WATCH_PAMID_LIBPATH
then
if ! test -d $APPLE_WATCH_PAMID_PATH
@carlosonunez
carlosonunez / example_tkg_bom.json
Created December 31, 2020 13:56
An example TKG BOM from TKG v1.2.1
{
"release": {
"version": "1.2.1"
},
"components": {
"alertmanager": {
"version": "v0.20.0+vmware.1"
},
"antrea": {
"version": "v0.9.3+vmware.1"
@carlosonunez
carlosonunez / makefile_help.mk
Created December 15, 2020 19:23
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: http://marmelab.com/blog/2016/02/29/auto-documented-makefile.html
PROJECT_NAME ?= example ## Defines the name of your project.
@carlosonunez
carlosonunez / x86_homebrew_by_default.sh
Created December 10, 2020 22:52
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"
then
arch -x86_64 brew $*
else
brew $*
@carlosonunez
carlosonunez / install_firefox_onto_amzn_linux2.sh
Created November 29, 2020 07:02
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 http://mirror.centos.org/centos/7/os/x86_64/Packages/atk-2.28.1-2.el7.x86_64.rpm && \
rpm -ivh --nodeps --replacepkgs http://mirror.centos.org/centos/7/os/x86_64/Packages/at-spi2-atk-2.26.2-1.el7.x86_64.rpm && \
rpm -ivh --nodeps --replacepkgs http://mirror.centos.org/centos/7/os/x86_64/Packages/at-spi2-core-2.28.0-1.el7.x86_64.rpm && \
rpm -ivh --nodeps http://dl.fedoraproject.org/pub/archive/fedora/linux/releases/20/Fedora/x86_64/os/Packages/g/GConf2-3.2.6-7.fc20.x86_64.rpm && \
rpm -ivh --nodeps http://dl.fedoraproject.org/pub/archive/fedora/linux/releases/20/Fedora/x86_64/os/Packages/l/libXScrnSaver-1.2.2-6.fc20.x86_64.rpm && \
rpm -ivh --nodeps http://dl.fedoraproject.org/pub/archive/fedora/linux/releases/20/Fedora/x86_64/os/Packages/l/libxkbcommon-0.3.1-1.fc20.x86_64.rpm && \
rpm -ivh --nodeps http://dl.fedoraproject.org/pub/archive/fedora/linux/releases/20/Fedora/x86_64/os/Pack
2020-03-06T04:31:18.185Z [DEBUG] plugin.terraform-provider-azurerm_v2.0.0_x5: [DEBUG] AzureRM Response for https://management.azure.com/subscriptions/subscription_id/resourceGroups/packerBuilder/providers/Microsoft.Compute/images/.%2A-databases%24?api-version=2019-07-01:
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
<<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: 2.6.14.1
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"
INFO global: VAGRANT_INSTALLER_VERSION="2"
INFO global: VAGRANT_INSTALLER_ENV="1"
WARN global: resolv replacement has not been enabled!
@carlosonunez
carlosonunez / gist:2f08253ed5ef8bcfe5c9908bb615e703
Created January 3, 2019 05:18
`aws_cloudfront_distribution` Terraform issue
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