Skip to content

Instantly share code, notes, and snippets.

@sbailliez
sbailliez / vagrant-vmware-fusion-13-apple-m1-pro.md
Last active November 20, 2024 20:25
Vagrant and VMWare Fusion 13 on Apple M1 Pro

Vagrant and VMWare Fusion 13 Player on Apple M1 Pro

This document summarizes notes taken to make VMWare Fusion 13 Player work on Apple M1 Pro. It builds upon a previous (deprecated) document based on VMWare Tech Preview 21H1

VMWare Fusion 13 was released on November 17, 2022 and Fusion 13.5 on October 19, 2023

Created on: November 20, 2022

Updated on: June 1, 2024

@mordr
mordr / note.md
Last active February 27, 2025 13:53
Set Visual Studio Code as default editor for kubectl

Set KUBE_EDITOR to Visual Studio Code, assumes 'code' is in PATH

export KUBE_EDITOR='code --wait'

Running k edit ... will open up the yaml using Visual Studio Code.

@n-sviridenko
n-sviridenko / mount-nfs.sh
Created December 29, 2017 12:04
NFS for OSX on minikube
#!/usr/bin/env sh
HOST_PATH=$(pwd)
GUEST_PATH=/usr/app
HOST_EXPORT="${HOST_PATH} -network 192.168.99.0 -mask 255.255.255.0 -alldirs -maproot=root:wheel"
if ! grep -q "$HOST_EXPORT" /etc/exports; then
echo $HOST_EXPORT | sudo tee -a /etc/exports
sudo nfsd restart
fi
@hongkongkiwi
hongkongkiwi / generate-ssh-key
Last active September 20, 2024 16:01
Simple one liner to generate an SSH key without a password in the default place with the comment as hostname then print out the public key for copy and paste.
HOSTNAME=`hostname` ssh-keygen -t rsa -C "$HOSTNAME" -f "$HOME/.ssh/id_rsa" -P "" && cat ~/.ssh/id_rsa.pub