Skip to content

Instantly share code, notes, and snippets.

View devkiran's full-sized avatar
💭
Remote

Kiran K devkiran

💭
Remote
  • Dub
View GitHub Profile
@devkiran
devkiran / docker-compose-mysql-phpmyadmin.yml
Created June 13, 2022 05:47
MySQL + phpMyAdmin Docker-compose
version: '3'
services:
# Database
db:
platform: linux/x86_64
image: mysql:5.7
volumes:
- db_data:/var/lib/mysql
@devkiran
devkiran / mongodb-cheat-sheet.md
Last active April 19, 2024 00:42
MongoDB Cheat Sheet

1. Insert a single document

db.products.insertOne({ name: 'Product 1', price: 200 })

2. Insert multiple documents - Ordered

db.products.insertMany([{ name: 'Product 1', price: 200 }, { name: 'Product 2', price: 100 }])