sudo pmset -a disablesleep 1
Dont sleep on lid clousre.
sudo pmset -a disablesleep 0
Default behaviour.
sudo pmset -a disablesleep 1
Dont sleep on lid clousre.
sudo pmset -a disablesleep 0
Default behaviour.
Mumbai is Capital of India.
tetsing gist | |
edit2 |
java -cp /path/to/my/project:/path/to/library.jar MyMainClass
This command tells the JVM to look for classes in /path/to/m
Resource Type | Purpose | Minimal YAML Example |
---|---|---|
Pod | The smallest and simplest Kubernetes object. Represents a single instance of a running process in a cluster. | yaml<br>apiVersion: v1<br>kind: Pod<br>metadata:<br> name: my-pod<br>spec:<br> containers:<br> - name: my-container<br> image: nginx<br> |
Deployment | Provides declarative updates for Pods and ReplicaSets. | ```yaml apiVersion: apps/v1 kind: Deployment metadata: name: my-deployment spec: replicas: 3 selector: matchLabels: app: myapp template: met |
Component | Functionality | Where Used | Examples |
---|---|---|---|
API Gateway | Manages all client requests, provides a single point of entry, handles routing, authentication, rate-limiting, and API metering. | The first point of entry between users and backend services. | Kong, Amazon API Gateway, Apigee |
Load Balancer | Distributes incoming network traffic across multiple servers to ensure no single server bears too much demand. | In front of server clusters to distr |
Data Structure | Operations Time Complexity | Frequently Asked Algorithms | Popularity (out of 5) |
---|---|---|---|
Arrays | Access: O(1), Search: O(n), Insertion/Deletion (end): O(1), Insertion/Deletion (start/middle): O(n) | Sorting, Searching, Two Pointer Technique | 5 |
Strings | Access: O(1), Search: O(n) | Substring Search, Palindromes, String Manipulation | 4 |
Linked Lists | Search: O(n), Insertion/Deletion: O(1) at known position | Reversal, Cycle Detection, Merge Sort |
Framework/Library | Description | Use Cases | ORM Support | Popularity (out of 5) |
---|---|---|---|---|
net/http | Part of the Go standard library, provides HTTP client and server implementations. | Building HTTP servers with minimal dependencies. | No (Use standalone ORMs like GORM, SQLBoiler, or Ent) | 5 |
Gin | A HTTP web framework that features a Martini-like API but with better performance. | Rapid development of RE |
from django.db.models import Model, DateTimeField, CharField
class BlogPost(Model):
title = CharField(max_length=100)
content = CharField(max_length=1000)
created_at = DateTimeField(auto_now_add=True)
class Comment(Model):
comment_text = CharField(max_length=500)