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
version: '3.8' | |
volumes: | |
nextcloud: | |
services: | |
nextcloud-nginx: | |
image: nginx | |
restart: unless-stopped |
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
#!/bin/sh | |
source $stdenv/setup | |
PATH=$dpkg/bin:$PATH | |
dpkg -x $src unpacked | |
cp -r unpacked/* $out/ |
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
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 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 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 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 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 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: |
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
apiVersion: v1 | |
kind: Pod | |
metadata: | |
name: my-pod | |
namespace: my-namespace | |
spec: | |
containers: | |
- name: my-container | |
image: nginx:latest | |
ports: |
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
apiVersion: v1 | |
kind: ConfigMap | |
metadata: | |
name: my-deployment-config | |
namespace: my-namespace | |
data: | |
app-config.json: | | |
{ | |
"database": { | |
"host": "my-database-service", |