key stroke | Description |
---|---|
shift+j |
join lines |
g shift+j |
do not add space when joining lines |
~ |
change character under caret to uppercase |
g ~ <motion> |
change the sequence covered by motion to uppercase |
-
Print html found by cypress
cy.get('li').invoke('html').then((val) => console.log(JSON.stringify(val)))
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: 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
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
`oc get routes -o custom-columns=NAME:.metadata.name,HOST:.spec.host --all-namespaces` |
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
## 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" |
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
# 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 | |
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
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 |
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
If your spring boot uses | |
'org.springframework.hateoas:spring-hateoas` | |
dependency, to enable HAL with | |
`@EnableHypermediaSupport(type = EnableHypermediaSupport.HypermediaType.HAL)` | |
you'd also need |
NewerOlder