Skip to content

Instantly share code, notes, and snippets.

View boris1993's full-sized avatar
:shipit:
Code hard, die hard.

Boris Zhao boris1993

:shipit:
Code hard, die hard.
View GitHub Profile
# First, you must get the previous commit sha, the one before the forced push:
## Hit through terminal
curl -u <username> https://api.github.com/repos/:owner/:repo/events
# Then you can create a branch from this sha:
## Hit through terminal
curl -u <github-username> -X POST -d '{"ref":"refs/heads/<new-branch-name>", "sha":"<sha-from-step-1>"}' https://api.github.com/repos/:owner/:repo/git/refs
@boris1993
boris1993 / howto.md
Created May 30, 2018 06:12 — forked from adamcharnock/howto.md
Kubernetes install on Ubuntu 17.10 via kubeadm

Kubernetes install on Ubuntu 17.10 via kubeadm

Initial setup

apt-get update
apt-get upgrade
apt-get install curl

# Check VXLAN exists