Skip to content

Instantly share code, notes, and snippets.

View bhumit070's full-sized avatar

Bhoomit Ganatra bhumit070

View GitHub Profile
@bhumit070
bhumit070 / settings.json
Last active April 21, 2023 06:15
vscode-settings.json
{
// Editor Related Settings
"editor.wordWrap": "off",
"editor.cursorStyle": "line",
"editor.lineNumbers": "relative",
"editor.autoClosingQuotes": "always",
"editor.suggestSelection": "first",
"editor.autoClosingBrackets": "always",
"editor.autoSurround": "languageDefined",
"editor.defaultFormatter": "dbaeumer.vscode-eslint",
@bhumit070
bhumit070 / bst.js
Created April 8, 2022 08:53
BST add and delete
class Node {
constructor(value) {
this.value = value
this.left = null
this.right = null
}
}
class Tree {
constructor() {
@bhumit070
bhumit070 / docker-aliases
Created February 6, 2022 07:12
This is docker aliases / shortcut for shell
# Docker
# remove all containers
alias ddc='docker rm -vf $(docker ps -a -q)'
# remove all images
# alias ddi='docker rmi -f $(docker images -a -q)'
# ps all
alias dps='docker ps --all'
@bhumit070
bhumit070 / docker-database-setup.sh
Created February 6, 2022 07:11
This is a basic shell script which downloads 3 database image and 2 database management tool for docker
#!/bin/bash
function pullImage() {
docker pull $1
}
function createVolumeName() {
docker volume create $1
}