Skip to content

Instantly share code, notes, and snippets.

@pandorasNox
pandorasNox / introrx.md
Created October 3, 2019 02:35 — forked from staltz/introrx.md
The introduction to Reactive Programming you've been missing

yq

yq r -d'*' -j my-pod.yml => read all documents in an yaml bundle and return it as json (array)

@pandorasNox
pandorasNox / k8s-cheat-sheet.md
Last active October 21, 2020 13:36
k8s-cheat-sheet

k8s-cheat-sheet

create k8s tls secret

# create tls secret
openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /tmp/tls.key -out /tmp/tls.crt -subj "/CN=foo.bar.com"

# generate k8s manifest
kubectl create secret tls foo-secret --key /tmp/tls.key --cert /tmp/tls.crt
@pandorasNox
pandorasNox / k8s_ymla_to_cluster.md
Created March 15, 2019 10:21
k8s yaml to cluster deploy order (maybe)

order

  • get secrets
  • create k8s secret from secrets
  • get env
  • envsubst config maps
  • apply configmaps
  • volumes

cors general & browser infos

cors (Cross-origin resource sharing)

info

  • cors en wiki

    Certain "cross-domain" requests, notably Ajax requests, are forbidden by default by the same-origin security policy. CORS defines a way in which a browser and server can interact to determine whether it is safe to allow the cross-origin request.[3] It allows for more freedom and functionality than purely same-origin requests, but is more secure than simply allowing all cross-origin requests.

  • related to: Same-origin_policy
  • cors wildcard only works WITHOUT credentials, @see_fetch_api, @see_fetch_request_api
  • fetch spec
@pandorasNox
pandorasNox / it-news-2019-kw-04.md
Created January 24, 2019 14:33
it-news-2019-kw-04.md

it-news-2019-kw-04

news

Machine Learning: Call for Proposals for the M³-Conference in London started

cfp

Controversial plans: advertising blockers threaten to end in Chrome

Google is working on a change to its Chrome browser this year that would limit how browser extensions built by outside developers can interact with websites.

docker run --rm -e MINIO_ACCESS_KEY=admin -e MINIO_SECRET_KEY=password -p 9083:9083 minio/minio server /data --address :9083

docker rmi $(docker images -q -f dangling=true)
@pandorasNox
pandorasNox / blender_cheat_sheet.md
Last active August 24, 2020 17:55
blender cheat cheet

blender cheat sheet

general

  • move cam - press mouse middle + move mouse

unkown

  • open menu - propotional editing fallof => SHIFT+o

all ?? modes

  • switch view: SHIFT+z => switch views wirefarme & solid