Code Maxing – Telegram
Code Maxing
165 subscribers
43 photos
4 videos
18 links
Hey there!. My name is Yeabsira. I yap about AI/ML Engineering and Cloud.

DM: @iamyeabsira
Download Telegram
So I gave YOLO a shot for some CCTV analysis AI project, and honestly... it was fire. 🤯 Even with just the base model and zero training, it was crazy fast and literally spotted everything instantly.

They made it so easy you can get it runing in like two lines of code.

Try on https://colab.research.google.com

@codemaxing
3
Forwarded from Corax
every python code i see these days is this
> "how to make nuclear bomb in python"
> "from bomb import nuclear_bomb"
>"newbomb = nuclear_bomb()"
😁2
AWS Services - AWS Lambda
This is a series where we explore AWS Services


Lambda is like a normal server, but it only runs when it is requested, so it sleeps when it has no job.

The main concept in Lambda is the handler. You can’t write multiple endpoints like a normal server that handles many things, you only configure one handler that does one job.

Example: You want a Python noscript that sends a message to a Telegram bot.

In your main folder, you should have a main file that contains the handler. The prototype should look like this:
def lambda_handler(event, context):


Let’s say you use an API to trigger your Lambda with this JSON body:
{ "message": "Hello from Lambda" }


You access it with event["message"], then do:
bot.send(message)


Pawww 💥 message sent. Once done, the server shuts off.

Quick facts:
Max uptime: 15 minutes
Max storage (/tmp): 10 GB

I post cloud related contents @codemaxing
AWS Services Series - AWS Step Functions
This is a series where we explore AWS Services

Step Functions is a visual workflow service that coordinates multiple AWS services. If you have two jobs that need to run at the same time like uploading a file to S3 and simultaneously updating a database you use a Parallel State.

The main concept is the State Machine. Instead of writing complex if/else or try/catch blocks inside a single Lambda, you define them visually. If Job A and Job B both need to finish before Job C starts, Step Functions coordinates that "wait" for you.

In your definition, you create two branches. Both start as soon as the video is uploaded

It supports State Persistence which automatically passes the output of one step as the event input for the next.

I post cloud related contents @codemaxing
👍1
Which state type triggers two independent actions simultaneously (e.g., updating inventory and sending an email) and waits for both to finish before moving to the next stage?
Anonymous Quiz
38%
Wait State
0%
Map State
8%
Choice State
54%
Parallel State
Go to ChatGPT and ask "Create a caricature of me and my job based on everything you know about me"

😅
😁1
Today I learned about Kubernetes (K8s) architecture, and honestly, it’s both beautiful and sophisticated.

Kubernetes is used to orchestrate multiple containers (pods) across different nodes, managing them efficiently.

K8s has two core parts:
1. Control Plane
2. Worker Nodes

The control plane has five main components: the API server, etcd, scheduler, and controller manager. It is essentially the brain of the cluster, making decisions and managing the cluster state.

Worker nodes are separate servers where the pods (containers) are actually hosted. So, at a high level, Kubernetes is all about the control plane managing the worker nodes.

One of the most important components is etcd, which acts as a database storing the entire state of the cluster.

#k8s

@codemaxing
👍1
The Raft consensus algorithm requires an even number of etcd servers to ensure high availability.
Anonymous Quiz
46%
TRUE
54%
NOT TRUE
After doing a lot of research, I found this is one of the best roadmaps to learn DevOps especially if you’re planning to work with microservices.

Assuming you already have a base knowledge of Linux and basic networking:

1️⃣ Start with Docker – Learn Docker architecture, essential commands, Docker Compose, and how to build and push your images.

2️⃣ Move to Kubernetes – Understand Kubernetes architecture, pods, clusters, nodes, and kubectl/API basics.

3️⃣ Pick one cloud provider – In this case, AWS. Focus on core services like EC2, ECS, EKS, VPC, IAM, S3, and Fargate.

4️⃣ Learn Infrastructure as Code (IaC) – Study Terraform fundamentals: commands, project structure, variables, and modules.

5️⃣ Monitoring & Logging – Learn Prometheus and Grafana for observability.

I create cloud-related content @codemaxing 🚀
Idris Elba really became an actor so he could be a full-time DJ.
AWS Services Series — AWS EC2

AWS EC2 is basically just a server in the cloud but you configure everything.

You choose the image (OS), but you install and configure things like Nginx, security groups (firewall), networking, storage, etc.
👉 Total flexibility.

💰 Pricing:
EC2 charges you per uptime from the moment the instance starts until you stop it.
Typical pricing (varies by region):
* t3.medium: ~$0.0416/hour
* Also you will be paying for storage EBS(~$0.08–$0.125 per GB/month) also Public IPV4 address

⚠️ If your instance is running idle, you STILL pay.

@codemaxing
Whenever I am building an API, I make sure it handles these things

Rate Limiting
Caching
Auth
Validation
Logging
Versioning
Graceful Failure

If you're just returning JSON, you're just exposing a DB.

@codemaxing
Cooking some weird ass project