This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For x86_64 | |
curl -Lo ./kind https://kind.sigs.k8s.io/dl/v0.19.0/kind-linux-amd64 // check version here: https://kind.sigs.k8s.io/ | |
# For ARM64 | |
curl -Lo ./kind https://kind.sigs.k8s.io/dl/v0.19.0/kind-linux-arm64 | |
chmod +x ./kind | |
sudo mv ./kind /usr/local/bin | |
kind version // kind v0.19.0 go1.20.4 linux/amd64 | |
# create cluster-config.yml |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// check release here -> https://kubernetes.io/releases/ | |
curl -LO https://storage.googleapis.com/kubernetes-release/release/v1.27.0/bin/linux/amd64/kubectl | |
chmod +x ./kubectl | |
sudo mv ./kubectl /usr/local/bin/kubectl | |
windowsUser=$1 | |
mkdir -p ~/.kube | |
ln -sf "/mnt/c/users/$windowsUser/.kube/config" ~/.kube/config |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt update | |
sudo apt upgrade | |
sudo apt install golang-go | |
go version | |
export GO111MODULE=on |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://community.sonarsource.com/t/no-coverage-information-will-be-saved-because-all-lcov-files-cannot-be-found-for-my-javascript-project-using-github-actions/52046/7 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo nano /etc/resolv.conf | |
nameserver 8.8.8.8 | |
nameserver 8.8.4.4 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt install gnupg | |
gpg --full-generate-key | |
- RSA | |
- 4096 bits | |
- 0 // when it will expires | |
- name: <your name> | |
- email: <your email> | |
- comment: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ssh-keygen -t rsa -b 4096 -C "<[email protected]>" | |
eval "$(ssh-agent -s)" | |
ssh-add ~/.ssh/id_rsa | |
cat ~/.ssh/id_rsa.pub | |
------------------------------------------------------ | |
Git error: "Host Key Verification Failed" when connecting to remote repository | |
ssh-keyscan -t rsa github.com >> ~/.ssh/known_hosts | |
https://stackoverflow.com/a/29380765/11842937 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo docker system prune | |
https://github.com/docker/compose-cli/issues/1537#issuecomment-1310735139 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo nano /etc/resolv.conf | |
nameserver 8.8.8.8 | |
https://stackoverflow.com/a/75421353/11842937 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const enums = { | |
MESSAGE: "Message {test}", | |
MANY_MESSAGES: "Message {test} {example}", | |
}; | |
// way 1 | |
console.log(enums.MESSAGE.replace("{test}", "Example")); // Message Example | |
// way 2 | |
String.prototype.supplant = function (o) { |