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
| auto lo | |
| iface lo inet loopback | |
| iface enp0s3 inet manual | |
| auto vmbr0 | |
| iface vmbr0 inet static | |
| address 192.168.1.100 | |
| netmask 255.255.255.0 | |
| gateway 192.168.1.1 |
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
| version: '3.8' | |
| volumes: | |
| nextcloud: | |
| services: | |
| nextcloud-nginx: | |
| image: nginx | |
| restart: unless-stopped |
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 max = process.argv.slice(2); | |
| const fibonacci = n => { | |
| let a = 0, b = 1, c = n; | |
| console.log(a); | |
| console.log(b); | |
| for(let i = 2; i <= n; i++) { | |
| c = a + b; | |
| console.log(c); |
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 PRIVATE_CHANNEL = 'channel_private'; | |
| const GLOBAL_CHANNEL = 'default'; | |
| var io = require('socket.io-client'); | |
| var socket = io.connect('http://localhost:8080'); | |
| var channel = null; | |
| socket.on('connect', function () { | |
| console.log('CONNECT'); |
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
| apiVersion: apps/v1 | |
| kind: Deployment | |
| metadata: | |
| name: my-deployment | |
| namespace: my-namespace | |
| spec: | |
| replicas: 3 | |
| selector: | |
| matchLabels: | |
| app: my-app |
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
| version: '3' | |
| services: | |
| k3s-server: | |
| image: rancher/k3s | |
| command: server --disable-agent | |
| environment: | |
| K3S_KUBECONFIG_OUTPUT: /output/kubeconfig.yaml | |
| volumes: | |
| - ./k3s-server:/var/lib/rancher/k3s | |
| - ./kubeconfig.yaml:/output/kubeconfig.yaml |
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
| apiVersion: v1 | |
| kind: Pod | |
| metadata: | |
| name: my-pod | |
| namespace: my-namespace | |
| spec: | |
| containers: | |
| - name: my-container | |
| image: nginx:latest | |
| ports: |
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
| apiVersion: v1 | |
| kind: Namespace | |
| metadata: | |
| name: my-namespace |
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
| apiVersion: apps/v1 | |
| kind: Deployment | |
| metadata: | |
| name: my-deployment | |
| namespace: my-namespace | |
| spec: | |
| replicas: 3 | |
| selector: | |
| matchLabels: | |
| app: my-app |
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
| apiVersion: apps/v1 | |
| kind: Deployment | |
| metadata: | |
| name: my-deployment | |
| spec: | |
| replicas: 3 | |
| selector: | |
| matchLabels: | |
| app: my-app | |
| template: |