Featured

TechBytes on Linux

This is a growing list of Linux commands which might come handy for the of Linux users. 1. Found out i had to set the date like this: ...

Wednesday, November 26, 2025

Termius or macOS Terminal keyboard shortcuts

 Termius on Mac uses standard macOS shortcuts along with some specific commands for its unique features like the Command Palette and split view. 

General Actions
Action Shortcut
Command Palette (access tabs/hosts)Command-K
Jump between tabsCommand-J
New connection/tabCommand-T
Open local terminalCommand-L
Open side panel (snippets/history)Command-S
Split window into two panesCommand-D
Close split paneShift-Command-D
Close tabCommand-W
Terminal Navigation & Text Editing (Standard Unix/Mac)
These shortcuts are standard for most command-line interfaces on macOS and work in Termius: 
  • Go to beginning of lineControl-A
  • Go to end of lineControl-E
  • Delete from cursor to beginning of lineControl-U
  • Delete from cursor to end of lineControl-K
  • Navigate by wordOption-Left Arrow or Option-Right Arrow
  • Reverse search command historyControl-R
  • Autocomplete directory/file nameTab (type characters, then press Tab once or twice)
  • Send break (equivalent to Ctrl-C in shell)Command-. (period) 
Copy/Paste 
  • CopyCommand-C
  • PasteCommand-V
  • Paste selectionShift-Command-V 

Sunday, November 23, 2025

AI Agents Learning resources

 📹 Videos:

1. LLM Introduction: https://www.youtube.com/watch?v=zjkBMFhNj_g

2. LLMs from Scratch: https://www.youtube.com/watch?v=9vM4p9NN0Ts

3. Agentic AI Overview (Stanford): https://www.youtube.com/watch?v=kJLiOGle3Lw

4. Building and Evaluating Agents: https://www.youtube.com/watch?v=d5EltXhbcfA

5. Building Effective Agents: https://www.youtube.com/watch?v=D7_ipDqhtwk

6. Building Agents with MCP: https://www.youtube.com/watch?v=kQmXtrmQ5Zg

7. Building an Agent from Scratch: https://www.youtube.com/watch?v=xzXdLRUyjUg

8. Philo Agents: https://www.youtube.com/playlist?list=PLacQJwuclt_sV-tfZmpT1Ov6jldHl30NR


🗂️ Repos

1. GenAI Agents: https://github.com/nirdiamant/GenAI_Agents

2. Microsoft's AI Agents for Beginners: https://github.com/microsoft/ai-agents-for-beginners

3. Prompt Engineering Guide: https://lnkd.in/gJjGbxQr

4. Hands-On Large Language Models: https://lnkd.in/dxaVF86w

5. AI Agents for Beginners: https://github.com/microsoft/ai-agents-for-beginners

6. GenAI Agentshttps://lnkd.in/dEt72MEy

7. Made with ML: https://lnkd.in/d2dMACMj

8. Hands-On AI Engineering:https://github.com/Sumanth077/Hands-On-AI-Engineering

9. Awesome Generative AI Guide: https://lnkd.in/dJ8gxp3a

10. Designing Machine Learning Systems: https://lnkd.in/dEx8sQJK

11. Machine Learning for Beginners from Microsoft: https://lnkd.in/dBj3BAEY

12. LLM Course: https://github.com/mlabonne/llm-course


🗺️ Guides

1. Google's Agent Whitepaper: https://lnkd.in/gFvCfbSN

2. Google's Agent Companion: https://lnkd.in/gfmCrgAH

3. Building Effective Agents by Anthropic: https://lnkd.in/gRWKANS4.

4. Claude Code Best Agentic Coding practices: https://lnkd.in/gs99zyCf

5. OpenAI's Practical Guide to Building Agents: https://lnkd.in/guRfXsFK


📚Books:

1. Understanding Deep Learning: https://udlbook.github.io/udlbook/

2. Building an LLM from Scratch: https://lnkd.in/g2YGbnWS

3. The LLM Engineering Handbook: https://lnkd.in/gWUT2EXe

4. AI Agents: The Definitive Guide - Nicole Koenigstein:  https://lnkd.in/dJ9wFNMD

5. Building Applications with AI Agents - Michael Albada: https://lnkd.in/dSs8srk5

6. AI Agents with MCP - Kyle Stratis: https://lnkd.in/dR22bEiZ

7. AI Engineering: https://www.oreilly.com/library/view/ai-engineering/9781098166298/


📜 Papers

1. ReAct: https://lnkd.in/gRBH3ZRq

Credit : Rakesh Gohel on LinkedIn

Monday, November 10, 2025

Using SFTP on macOS



Method 1 SFTP (Secure File Transfer Protocol) is a secure way to transfer files between systems. macOS provides built-in support for SFTP through the terminal, and you can also use third-party tools for a graphical interface.


Method 1: Using Terminal (Built-in SFTP Client)


Open Terminal Launch the Terminal app from Applications > Utilities or by searching for it in Spotlight.


Connect to the Server Use the following command to initiate an SFTP session: sftp username@hostname Replace username with your server username and hostname with the server's IP address or domain.


Authenticate Enter your password when prompted.


Transfer Files Use these commands to manage files: Upload a file: put /path/to/local/file /path/to/remote/destination Download a file: get /path/to/remote/file /path/to/local/destination List files: ls Exit SFTP session: exit


Method 2: Using FileZilla (Graphical Interface)

Download and Install FileZilla Download FileZilla Client for macOS from FileZilla's official site. Ensure you select the version compatible with your macOS version.


Launch FileZilla Open the application after installation.


Set Up Connection Enter the following details in the top bar: Host: sftp://hostname Username: Your server username. Password: Your server password. Port: Default is 22.


Transfer Files Drag and drop files between the local and remote panes to upload or download files.


Best Practices


Always use strong passwords or SSH keys for authentication.


Verify server authenticity to avoid man-in-the-middle attacks.


Use third-party tools like FileZilla for ease of use if you're not comfortable with command-line operations.

Tuesday, October 28, 2025

Issue while pasting from the Windows clipboard into a PuTTY vi or vim terminal


Pasting from the Windows clipboard into a PuTTY vi or vim terminal can sometimes be problematic, particularly with newer vim versions that have mouse mode enabled by default. This can lead to unintended visual mode activation or incorrect pasting.


Here are the primary methods to paste from the clipboard into a PuTTY vi/vimsession:
Shift + Right-Click:
Shift + Insert:
Middle Mouse Button (Wheel Click):
Disable vim Mouse Mode (if applicable):
vim Paste Mode:
Note: Ensure vi or vim is in insert mode (by pressing i) before attempting to paste if you want the content to be inserted directly into the file. Otherwise, pasting might be interpreted as vim commands.
For larger pastes, vim's paste mode can be helpful.

Enter insert mode in vim, then type :set paste and press Enter.

Paste your content using one of the methods above, then type :set nopaste and press Enter to exit paste mode.

If you are experiencing issues due to vim's mouse mode, you can disable it for the current session by typing :set mouse= and pressing Enter while in vim.

To make this change permanent, you can add set mouse= to your ~/.vimrc file.

If your mouse has a middle button (often the scroll wheel), clicking it can paste the content.

Shift + Insert:
This keyboard shortcut can also be used to paste the clipboard content.

This is often the most reliable method for pasting in PuTTY, especially when vim's mouse mode is active. Hold down the Shift key and then right-click in the PuTTY window where you want to paste.

Wednesday, October 22, 2025

What caused the AWS outage that broke the internet on Oct 21st 2025

AWS outage 2025: More than 1,000 services were impacted by the outage, including popular platforms like WhatsApp, Snapchat and Reddit, which rely on AWS services, along with financial institutions like the British government’s tax services and entertainment services
In India, the impact of the outage was most pronounced in the aviation sector, with hundreds of flights delayed and several cancelled as airline operators found their systems inoperational and had to switch to manual processes. At least ten banks and NBFCs had “minor disruptions”, which have either been resolved or are being resolved, the Reserve Bank of India said at the time.

Here is a technical explanation for the AWS Outage due to a DNS failure.

AWS's own internal control plane is built on top of DynamoDB. It's a hidden dependency. When AWS's internal services couldn't find the IP for DynamoDB, the entire management layer collapsed.

Stage 1: DNS Fails. The internal DNS servers for dynamodb.us-east-1.amazonaws.com stopped working.

Stage 2: Control Plane Fails. AWS's own services that depend on DynamoDB immediately broke. This included:

IAM (for authentication and session state)


The EC2 instance launch subsystem (which uses DynamoDB for metadata)


Network Load Balancer (NLB) health checks (which, it turns out, write their health state to a DynamoDB table)

Stage 3: Circular Dependency. This is the crazy part. When the NLB health checks failed (because they couldn't write to DynamoDB), it caused more network connectivity issues, which in turn impacted the (already struggling) DynamoDB service itself. It created a vicious feedback loop.

Why it lasted 15+ hours (The UDP problem)

Fixing the DNS issue only took a couple of hours. The reason the recovery took so long was twofold:

The Retry Storm: DNS queries use UDP, which is a stateless, "fire and forget" protocol. When the DNS queries failed, millions of clients (SDKs, Lambda functions, other AWS services) didn't get an immediate "connection refused" (like with TCP). They just timed out after 5+ seconds and then retried. This created a "retry storm" (or thundering herd) of millions of requests that hammered the DNS servers and caches, preventing them from recovering even after the initial fix was in.

The Global Control Plane: Many of AWS's core control plane services (like IAM) are centralized in us-east-1. Even if your app was running in eu-west-1, if it needed to authenticate or launch an instance, that control plane operation was routed through us-east-1 and failed.

Friday, October 10, 2025

How to show hidden folders in Mac OS in Finder

 To show hidden files and folders on a Mac, open Finder and press the Command (⌘) + Shift + Period (.) keys simultaneouslyThe hidden files will appear with a faded or semi-transparent look. To hide them again, press the same keyboard shortcut. 

Using the Keyboard Shortcut
  1. Open any Finder window. 
  2. Navigate to the folder where you want to view hidden files, such as your Macintosh HD folder. 
  3. Press and hold the Command, Shift, and Period keys all at the same time. 
  4. Hidden files and folders will appear. 
  5. To hide them again, repeat the same key combination. 
Using Terminal (Alternative Method)
  1. Open Terminal by searching for it in Spotlight (magnifying glass icon). 
  2. Enter the following command and press Return: defaults write com.apple.finder AppleShowAllFiles YES. 
  3. Hold down the Option key, right-click the Finder icon in the Dock, and select Relaunch to apply the changes. 
  4. To hide all files again, you can use the same command, replacing YES with NO, or simply press the keyboard shortcut from the first method. 
Why Files Are Hidden
Hidden files are usually system files and should not be deleted or changed as it could cause problems with macOS or specific applications. They are hidden by default to prevent accidental modification or deletion. 

Popular Posts