Skip to content

Instantly share code, notes, and snippets.

View psahni's full-sized avatar

Prashant Sahni psahni

View GitHub Profile
@psahni
psahni / postgres.md
Last active April 30, 2024 07:39
all about postgres

Connect

psql -U postgres

Create Db

CREATE DATABASE my_test_db

List Db

\l

Use Db

hash=$(git log --format="%h" -n 1)
@psahni
psahni / connect_to_multiple_database.md
Created November 9, 2023 08:49
connect_to_multiple_database.md
@psahni
psahni / code_snippets_go.md
Last active November 21, 2023 12:28
code_snippets_go.go
type Employee string

const (
	Manager      Employee = "manager"
	Developer    Employee = "Developer"
	Tester       Employee = "Tester"
)
@psahni
psahni / db_design_e_commerce.js
Last active August 3, 2023 14:32
db_design_e_commerce
Designing a database schema for an online merch store involves identifying the entities and their relationships. Here's a basic schema to get you started:
Entities:
Users/Customer: Information about the store's customers.
UserID (Primary Key)
Username
Email
Password (hashed)
@psahni
psahni / sso_cookie_samesite.md
Created July 31, 2023 13:40
sso_cookie_samesite.md
@psahni
psahni / job_responsibilities.md
Last active March 23, 2023 05:36
GL_full_Stack_arch_job_desc.md

Job Responsibilities:

Cloud Architecture and Design and Development (50%)

  • Demonstrate knowledge of cloud architecture and implementation features (OS, multi-tenancy, virtualization, orchestration, elastic scalability)
  • Demonstrate knowledge of DevOps tool chains and processes
  • Act as a Subject Matter Expert to the organization for end-to-end architecture, networking, provisioning, and management
  • Demonstrate leadership ability to back decisions with research and the “why,” and articulate several options, the pros and cons for each, and a recommendation
  • Maintain overall industry knowledge on latest trends, technology, etc.