Essential Git, Maven, and Shell commands. Last updated: 2026-09-14.
| 🔨 Command | 📝 Description |
|---|
| # Configure the AWS provider | |
| provider "aws" { | |
| region = "us-east-1" # Choose your desired AWS region | |
| } | |
| # ----------------------------------------------------------------------------- | |
| # SageMaker Notebook Instance | |
| # This is a classic way to interact with SageMaker for development and experimentation. | |
| # ----------------------------------------------------------------------------- |
| SELECT datname FROM pg_database; | |
| CREATE TYPE gender AS ENUM ('male', 'female', 'other'); | |
| create table test_db.students (id serial primary key, name varchar(100), age int, gender gender,contact_no varchar(10) | |
| ,enroll_date date, created_at timestamp default now(), updated_at timestamp default now()); | |
| SELECT column_name, data_type, character_maximum_length, is_nullable, column_default | |
| FROM information_schema.columns | |
| WHERE table_name = 'students' AND table_schema = 'test_db'; | |
| INSERT INTO test_db.students (name, age, gender, contact_no, enroll_date) | |
| VALUES ('John Doe', 20, 'male', '1234567890', '2023-10-01'); |
| import org.slf4j.Logger; | |
| import org.slf4j.LoggerFactory; | |
| import java.io.BufferedReader; | |
| import java.io.File; | |
| import java.io.FileReader; | |
| import java.io.IOException; | |
| class Scratch { | |
| private static final Logger logger = LoggerFactory.getLogger(Scratch.class); |
| * With the mac OS Monterey, there is an issue when Docker startup from a startup, which is not a one-off issue for me. With the latest docker desktop, when Docker tries to startup, this is the error that I get. | |
| Creating "rootNode" subnodes: constructing "BackendServices" in "rootNode": doing migrations: migrating daemon.json: invalid character '{' after top-level value | |
| * There was no specific issue/answer I could get from the community, so I looked up the daemon.json file, and there that led me to this folder in my machine, /Users/<mymacid>/Library/Group Containers/group.com.docker. | |
| * To start the daemon, I deleted the folder | |
| * Restart the Docker desktop. | |
| Things are working well. Hopefully, this gist helps. |
| terraform { | |
| #Required Terraform version | |
| required_version = "~>1.3.1" | |
| required_providers { | |
| azurerm = { | |
| source = "hashicorp/azurerm" | |
| version = ">=3.0, <=3.24.0" | |
| } | |
| } |
| azure | |
| account | |
| list [options] #List the imported subscriptions | |
| show [options] [subscriptionNameOrId] #Show details about a subscription | |
| set [options] <subscriptionNameOrId> #Set the current subscription | |
| clear [options] #Remove a subscription or environment, or clear all of the stored account and environment info | |
| import [options] <file> #Import a publishsettings file or certificate for your account | |
| download [options] #Launch a browser to download your publishsettings file | |
| env... #Commands to manage your account environment |