- Install plugin Standard
- For vettur choose formatter VS Code Typescript
This file contains 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
export function useScrollHandler() { | |
const offsets: Array<Number> = []; | |
let touchStartY = 0; | |
let activeSection = 0; | |
let inMove = false; | |
const mountHandler = () => { | |
calculateSectionOffsets(); | |
window.addEventListener('keydown', handleKeyDown); | |
window.addEventListener('DOMMouseScroll', handleMouseWheelDOM); // Mozilla Firefox |
https://gist.github.com/gintsgints/8d049cf122c1f2e49c5805dbce0d4653
# Update packages first
sudo apt-get update
sudo apt-get upgrade -y
Use instructions - https://gist.github.com/gintsgints/8d049cf122c1f2e49c5805dbce0d4653
# Update packages first
sudo apt-get update
sudo apt-get upgrade -y
Based on this - https://patrick.easte.rs/post/traefik-tls-k8s/ And this - https://docs.traefik.io/v1.7/user-guide/kubernetes/
kubectl create secret generic traefik-cert --from-file=yourcert.crt --from-file=yourkey.key
https://www.dropwizard.io - Cool.
Getting started - https://www.dropwizard.io/1.3.12/docs/getting-started.html#setting-up-using-maven Swagger support - https://github.com/smoketurner/dropwizard-swagger Example project - https://github.com/jecklgamis/dropwizard-kotlin-example
Based on - https://stackoverflow.com/questions/56320930/renew-kubernetes-pki-after-expired/56334732#56334732
$ cd /etc/kubernetes/pki/
$ mv {apiserver.crt,apiserver-etcd-client.key,apiserver-kubelet-client.crt,front-proxy-ca.crt,front-proxy-client.crt,front-proxy-client.key,front-proxy-ca.key,apiserver-kubelet-client.key,apiserver.key,apiserver-etcd-client.crt} ~/
$ kubeadm init phase certs all --apiserver-advertise-address <IP>
$ cd /etc/kubernetes/
$ mv {admin.conf,controller-manager.conf,mv kubelet.conf,scheduler.conf} ~/
NewerOlder