Skip to content

Instantly share code, notes, and snippets.

View matthogan's full-sized avatar
👽

Matt Hogan matthogan

👽
View GitHub Profile
minikube stop; minikube delete &&
docker stop $(docker ps -aq) &&
rm -rf ~/.kube ~/.minikube &&
sudo rm -rf /usr/local/bin/localkube /usr/local/bin/minikube &&
launchctl stop '*kubelet*.mount' &&
launchctl stop localkube.service &&
launchctl disable localkube.service &&
sudo rm -rf /etc/kubernetes/ &&
docker system prune -af --volumes
@patik
patik / how-to-squash-commits-in-git.md
Last active October 13, 2025 09:47
How to squash commits in git

Squashing Git Commits

The easy and flexible way

This method avoids merge conflicts if you have periodically pulled master into your branch. It also gives you the opportunity to squash into more than 1 commit, or to re-arrange your code into completely different commits (e.g. if you ended up working on three different features but the commits were not consecutive).

Note: You cannot use this method if you intend to open a pull request to merge your feature branch. This method requires committing directly to master.

Switch to the master branch and make sure you are up to date:

@enil
enil / wait
Created June 5, 2015 17:00
Wait for user to press any key in ZSH
#!/bin/zsh
echo 'Press any key to continue...'; read -k1 -s