uuidgen -r
# /etc/NetworkManager/system-connections $ ls -l vlan20
-rw------- 1 root root 145 Mär 28 18:27 vlan20
| location /api { | |
| # enable SNI | |
| proxy_ssl_server_name on; | |
| # you MUST set the host header seperately for SNI to work | |
| proxy_set_header Host my-api.example.com; | |
| # proxy requests to upstream server | |
| proxy_pass https://my-api.example.com; | |
| } |
| # copy index definition | |
| INDEX_NAME="my_index" | |
| curl -X GET "http://source-server:9200/$INDEX_NAME" | curl -X PUT "http://destination-server:9200/$INDEX_NAME" -d @- | |
| # copy mapping for "my_doc_type" | |
| DOC_TYPE="my_doc_type" | |
| curl -X GET "http://source-server:9200/$INDEX_NAME/_mapping" | jq .$INDEX_NAME.mappings.$DOC_TYPE | curl -X PUT "http://destination-server:9200/$INDEX_NAME/_mapping/$DOC_TYPE" -d @- |
| const NodeCache = require("node-cache"); | |
| const obj = { | |
| _id: "5c7e533ce75227089bd93bbb", | |
| texts: [ | |
| { keywords: ["hi", "there"], language: "FR", title: "Art", description: "" }, | |
| { keywords: [], language: "EN", title: "Art", description: "" }, | |
| ], | |
| extension: "jpg", | |
| fileDate: "2019-03-18T17:38:52.553Z", |
| # place into .github/workflows/aws | |
| # This workflow will build and push a new container image to Amazon ECR, | |
| # and then will deploy a new task definition to Amazon ECS, on every push | |
| # to the master branch. | |
| # | |
| # To use this workflow, you will need to complete the following set-up steps: | |
| # | |
| # 1. Create an ECR repository to store your images. | |
| # For example: `aws ecr create-repository --repository-name my-ecr-repo --region us-east-2`. | |
| # Replace the value of `ECR_REPOSITORY` in the workflow below with your repository's name. |
| ensure_pip() { | |
| pip show "$1" > /dev/null || pip install "$1" | |
| } |
| apiVersion: apps/v1 | |
| kind: Deployment | |
| metadata: | |
| name: jiralert | |
| namespace: default | |
| spec: | |
| selector: | |
| matchLabels: | |
| app: jiralert | |
| template: |
| package retry | |
| import ( | |
| "context" | |
| "fmt" | |
| "time" | |
| "github.com/go-logr/logr" | |
| ) |
| #!/bin/bash | |
| set -euxo pipefail | |
| PKO_NAMESPACE="package-operator-system" | |
| PKO_POD_SELECTOR="app.kubernetes.io/name=package-operator" | |
| PKO_COS_SELECTOR="package-operator.run/package=package-operator" | |
| # get rid of currently running PKO | |
| kubectl delete deploy -n "$PKO_NAMESPACE" package-operator-manager |
| package dev | |
| import ( | |
| "context" | |
| "fmt" | |
| corev1 "k8s.io/api/core/v1" | |
| "k8s.io/apimachinery/pkg/api/errors" | |
| metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" | |
| "k8s.io/apimachinery/pkg/apis/meta/v1/unstructured" |