-
Print html found by cypress
cy.get('li').invoke('html').then((val) => console.log(JSON.stringify(val)))
Print html found by cypress
cy.get('li').invoke('html').then((val) => console.log(JSON.stringify(val)))
apiVersion: v1 | |
kind: Pod | |
metadata: | |
name: cli | |
spec: | |
containers: | |
- name: cli | |
image: busybox | |
command: ["tail", "-f", "/dev/null"] | |
volumeMounts: |
Print containers of a pod
oc get pod <pod_name> -o jsonpath='{.spec.containers[*].name}{"\n"}' | tr ' ' '\n'
IBM Chart repo URI
`oc get routes -o custom-columns=NAME:.metadata.name,HOST:.spec.host --all-namespaces` |
## Scenario | |
1. You have interactivelly gone back in time by `git rebase -i` | |
2. You have changed the commit | |
3. On continuing the rebase (with `git rebase --continue`), you will re-base the descentdant commits. | |
4. You get a conflict. | |
## What is the state? | |
You got a conflict rebasing a set of commits on your commit. The commit that is causing the conflict, is the "remote" |
# Running web2.py accesible from host to a docker container | |
python web2py.py --nogui -a admin -i 0.0.0.0 | |
# display all users in ubuntu | |
compgen -u | |
curl \ | |
--verbose \ | |
--request OPTIONS \ | |
http://localhost:3001/api/configuration/visitor \ | |
--header 'Origin: http://localhost:9292' \ | |
--header 'Access-Control-Request-Headers: Origin, Accept, Content-Type' \ | |
--header 'Access-Control-Request-Method: GET' | |
# http://nils-blum-oeste.net/cors-api-with-oauth2-authentication-using-rails-and-angularjs/#.UQJeLkp4ZyE |
If your spring boot uses | |
'org.springframework.hateoas:spring-hateoas` | |
dependency, to enable HAL with | |
`@EnableHypermediaSupport(type = EnableHypermediaSupport.HypermediaType.HAL)` | |
you'd also need |
== Kubernetes Cluster == | |
- An abstraction that encapsulates containerised application | |
- The abstractions in Kubernetes allow you to deploy containerized applications to a cluster without tying them specifically to individual machines. | |
- A Kubernetes cluster consists of two types of resources | |
- The Master, coordinates the cluster | |
- Nodes are the workers that run applications |