Skip to content

Instantly share code, notes, and snippets.

@AWScommunity
Last active October 13, 2024 08:09
Show Gist options
  • Save AWScommunity/33ab6119dcdeffa149f245f3257fd889 to your computer and use it in GitHub Desktop.
Save AWScommunity/33ab6119dcdeffa149f245f3257fd889 to your computer and use it in GitHub Desktop.
R E A D . T H I S : gist ma image rakhna 1. paila image pc ma save gara. 2. bottomest gist ma gayera footbar ko image icon ma click garera foto upload gara. 3. tyo link copypaste chaheko gist ma gara. JustDoThisWay navaye img nakhulne etc hunxa
blog ma vane just tyo image select direct jspaint batai garee cutpaste gara
@AWScommunity
Copy link
Author

AWScommunity commented Oct 10, 2022

111 samma vyaxu bbek, yo githuba lai ni vscode jasto dark gara
REMOVE ALL MERN etc screens ,and I DONT EVEN NEED saurav's docker compose methods, IDIOT cant u understand THIS SERVERLESS is BULLDOZER whie sauravs was shit tractor. FULLLLLLLLLL FOCUUUUUUUUS on serverless but before that, certifiction before that JOB from dhananjay or kumar or leapforg, if so, cert also not needed

@AWScommunity
Copy link
Author

115 bata herea

@AWScommunity
Copy link
Author

AWScommunity commented Feb 25, 2023

cloud soln archi SAA - CO2 quiz solving screenshots, put this way so as to not steal FOCUS from main meats above.
https://user-images.githubusercontent.com/11883023/184070149-17cad737-a8be-4f99-b4f8-569f5b99c8a4.png
https://user-images.githubusercontent.com/11883023/184070191-691e28c7-830a-473e-9e8c-cb9714ae3777.png
https://user-images.githubusercontent.com/109033173/187847252-1f3b7709-04bb-4a34-9c3e-271a6b92553e.png

When launching EC2 instance with instance type that supports instance storage, what use case best for instance storage?

  1. Instance storage is faster than EBS vol. so, install root of operating sys on this vol to speed up server performance.
  2. USe instance storage to serve temp files that require low I/O latency.
  3. USe instance storage to handle files uploaded by your users. Since its more secure than EBS vol, you can isolate any malicious fies from infecting your server. (X)

When creating new EC2 instance, we can access it from public internet BY auto-assigning to it new public IP address.

HINT is: A security group with no outbound rules will also block that resources from reaching out to other AWS service endpoints.

New CIO joins your company and implements a new company policy that all EC2 instances must have encryption at rest. What is the quickest and easiest way to apply this policy to your existing EC2 instances?

In the AWS console, click on the EC2 instances, click actions and click encrypt EBS voulmes.
Create a snapshot of the EC2 volume. Then create a copy of that volume, checking the box to enable encryption. Create an AMI of the copied snapshot and then redeploy the EC2 instance using the encrypted AMI. Delete the old EC2 instance. (Ans)

@AWScommunity
Copy link
Author

aws schematics ma
orange colors belong to compute tools like we see in ec2 or even to ecs or fargate.
so, 'baijani' color belong to service type or say, services like watching inspecting ur aws environments like how guard watches who comes goes in your offics building like that.. . cloudtrail cloudwatch belongs in here.
dark blue color belongs to automation tools like we see in code commit code build- devops rel.

@AWScommunity
Copy link
Author

PORT NOs. to remember while managing Access.Control.List. Its one specifics is Network.ACL ie ACL:
Port Nos

so what exactly is port no? Well, port nos are:
in an incoming message/packet, the IP address is used to identify the destination computer/node, whereas the port number further specifies the destination application/program in that computer. Similarly, all outgoing network packets contain application port numbers in the packet header to enable the receiver to distinguish the specific application. ((Now here Idk yet if port no. should be same for particular application like HTTPs whether its outgoing or incoming, I think shouldbe same) )
Port numbers are mainly used in TCP and UDP based networks, with an available range of 65,535 for assigning port numbers. Although an application can change its port number, some commonly used Internet/network services are allocated with global port numbers such as Port Number 80 for HTTP, 23 for Telnet and 25 for SMTP, port 22 for Bastion Host, which is for SSHing into instances on priv subnet.

@AWScommunity
Copy link
Author

AWScommunity commented Feb 25, 2023

image
del it if IT is in s3 white note anyway:
athena is like taxi u hire to get to while redshift is superfast car expensive rate when it comes to jobs like running sql query etc etc on your s3 db

@AWScommunity
Copy link
Author

AWScommunity commented Jul 20, 2024

image

@AWScommunity
Copy link
Author

image

@AWScommunity
Copy link
Author

image

@AWScommunity
Copy link
Author

AWScommunity commented Jul 20, 2024

@AWScommunity
Copy link
Author

image

@AWScommunity
Copy link
Author

colab
image

image

@AWScommunity
Copy link
Author

image

@AWScommunity
Copy link
Author

image

@AWScommunity
Copy link
Author

image

@AWScommunity
Copy link
Author

image

@AWScommunity
Copy link
Author

DOONT del here coz its hyperlinked in blog
image

@AWScommunity
Copy link
Author

image

@sbibek086
Copy link

sbibek086 commented Oct 13, 2024

from transformers import AutoTokenizer, TFAutoModel

tokenizer = AutoTokenizer.from_pretrained("google-bert/bert-base-uncased")

model = TFAutoModel.from_pretrained("google-bert/bert-base-uncased")

inputs = tokenizer ("Hello world!", return_tensors="tf")

outputs = model (**inputs)

The tokenizer is responsible for all preprocessing the pretrained model expects and can be called directly on a single string (as in the above examples) or a list. It will output a dictionary that you can use in downstream code or simply directly pass to your model using the ** argument unpacking operator.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment