Skip to content

Instantly share code, notes, and snippets.

View josephrodriguez's full-sized avatar
🏠
Working from home

José Rodríguez josephrodriguez

🏠
Working from home
View GitHub Profile
@cmendible
cmendible / kubectl_ubuntu_wsl.sh
Created November 16, 2019 22:02
Install kubectl on ubuntu (WSL) and use kubectl config from Windows
#!/bin/bash
# Receives your Windows username as only parameter.
curl -LO https://storage.googleapis.com/kubernetes-release/release/v1.16.0/bin/linux/amd64/kubectl
chmod +x ./kubectl
sudo mv ./kubectl /usr/local/bin/kubectl
windowsUser=$1
@Albert-IV
Albert-IV / .gitconfig
Created April 2, 2015 18:46
Add `revert-file` to your git config, reverting all changes done in a commit to a specific file.
[alias]
revert-file = !sh /home/some-user/git-file-revert.sh