Skip to content

Instantly share code, notes, and snippets.

View devendra-kmr's full-sized avatar
🎯
Focusing

Devendra Kumar devendra-kmr

🎯
Focusing
View GitHub Profile
@devendra-kmr
devendra-kmr / docker-compose.yml
Last active August 1, 2023 19:39
KeyCloak_Docker_Compose
version: '3.7'
services:
postgres:
image: postgres:13
container_name: postgres
environment:
POSTGRES_DB: keycloak
POSTGRES_USER: keycloak
POSTGRES_PASSWORD: password
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:
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/
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
@devendra-kmr
devendra-kmr / intellij_shortcut.txt
Last active February 2, 2020 19:08
Intellij Shortcut command
-- > 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
@devendra-kmr
devendra-kmr / vi.txt
Last active March 14, 2018 18:31
Vi Editer Tutorial
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)
@devendra-kmr
devendra-kmr / zypper.cmd.txt
Last active March 4, 2026 17:42
Open SUSE commands
sudo fuser -k <PORT_NUMBER>/tcp
sudo kill -9 <PID>
________________________________
sudo zypper dup --allow-vendor-change
sudo zypper dup --force-resolution
@devendra-kmr
devendra-kmr / logstash.conf
Last active March 14, 2018 18:32
Logstash configration file for spring java log
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"