Skip to content

Instantly share code, notes, and snippets.

View manuelfelipe's full-sized avatar

Manuel Correa manuelfelipe

View GitHub Profile

Vagrant and VMWare Tech Preview on Apple M1 Pro

This document summarizes notes taken while to make the VMWare Tech preview work on Apple M1 Pro, it originated from discussions in hashicorp/vagrant-vmware-desktop#22

Installing Rosetta

First install Rosetta if not already done, this is needed to run x86 code:

@manuelfelipe
manuelfelipe / k8s-list-virtualservices.go
Created May 10, 2019 17:47 — forked from dwmkerr/k8s-list-virtualservices.go
Example showing how to list Istio VirtualService CRDs Golang
// Example showing how to patch Kubernetes resources.
package main
import (
"fmt"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/runtime/schema"
"k8s.io/client-go/dynamic"
_ "k8s.io/client-go/plugin/pkg/client/auth"
@manuelfelipe
manuelfelipe / k8s-patch-virtualservice.go
Created May 10, 2019 17:46 — forked from dwmkerr/k8s-patch-virtualservice.go
Example showing how to patch an Istio VirtualService CRDs Golang
// Example showing how to patch Kubernetes resources.
package main
import (
"encoding/json"
"fmt"
"k8s.io/apimachinery/pkg/runtime/schema"
types "k8s.io/apimachinery/pkg/types"
"k8s.io/client-go/dynamic"
@manuelfelipe
manuelfelipe / dynamic_crds.go
Created May 10, 2019 17:46 — forked from tallclair/dynamic_crds.go
Example of using CRDs with the dynamic go client
package main
import (
"fmt"
"log"
"os/user"
"path/filepath"
"strings"
apixv1beta1 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1"

Keybase proof

I hereby claim:

  • I am manuelfelipe on github.
  • I am manuelfelipe (https://keybase.io/manuelfelipe) on keybase.
  • I have a public key ASCDUVfb5kcLQyGFNEodagJeRWnkJ8f9Pw5m5AqojFGeMQo

To claim this, I am signing this object:

remote_directory "/tmp/config_folder" do
owner "root"
group "root"
mode "0644"
source "s3://my_bucket/folder/structure/"
provider Chef::Provider::RemoteS3Directory
end