This file contains hidden or 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.7' | |
| services: | |
| postgres: | |
| image: postgres:13 | |
| container_name: postgres | |
| environment: | |
| POSTGRES_DB: keycloak | |
| POSTGRES_USER: keycloak | |
| POSTGRES_PASSWORD: password |
This file contains hidden or 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
| Stop git branch opening in vim/vi | |
| > git config --global pager.branch 'false' | |
| Run the following command in the terminal to remove your credentials stored in the cache | |
| > git config --global --unset credential.helper | |
| Set a Git username: |
This file contains hidden or 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
| wget --mirror --convert-links --wait=2 https:xyz.com | |
| ____________________________________________________ | |
| https://github.com/felixzapata/listbox-combobox | |
| https://medium.com/@svyat770/fast-as-never-before-code-splitting-with-react-suspense-lazy-router-redux-webpack-4-d55a95970d11 | |
| https://flaviocopes.com/nextjs-lazy-load-modules/ | |
This file contains hidden or 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
| sudo docker system prune -a | |
| sudo docker volume prune | |
| sudo systemctl stop docker | |
| sudo systemctl disable docker | |
| sudo zypper install docker docker-compose docker-compose-switch | |
| sudo systemctl enable docker | |
| sudo systemctl start docker | |
This file contains hidden or 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
| -- > Type the abbreviation of the main() method template: | |
| psvm | |
| Press the template invocation key. By default, it is Tab. The abbreviation expands to the main() method: | |
| -- > Delete line | |
| ctrl+y | |
| 1 > Navigate to last edit location – Ctrl + Shift + Backspace | |
| 2 > Switch between tabs – Ctrl + Tab | |
| 3 > Go to line – Ctrl + G |
This file contains hidden or 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
| Hit the Esc key; that goes into command mode. Then you can type | |
| :q to quit (short for :quit) | |
| :q! to quit without saving (short for :quit!) | |
| :wq to write and quit (think write and quit) | |
| :wq! to write and quit even if file has only read permission (if file does not have write permission: force write) | |
| :x to write and quit (shorter than :wq) | |
| :qa to quit all (short for :quitall) |
This file contains hidden or 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
| sudo fuser -k <PORT_NUMBER>/tcp | |
| sudo kill -9 <PID> | |
| ________________________________ | |
| sudo zypper dup --allow-vendor-change | |
| sudo zypper dup --force-resolution | |
This file contains hidden or 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
| input { | |
| file { | |
| type => "myapp1" | |
| # Logstash insists on absolute paths... | |
| path => "/home/xyz/... /myapp1/STDOUT" | |
| codec => multiline { | |
| pattern => "^%{YEAR}-%{MONTHNUM}-%{MONTHDAY} %{TIME}.*" | |
| negate => "true" | |
| what => "previous" |