To get Sentry set up for production error tracking:
1. Create a Sentry project
- Sign up at [sentry.io](https://sentry.io) (free tier covers most apps)
- Create an organization and a React project
- Note these three values:
- SENTRY_ORG — your org slug (from the URL: `https://<org>.sentry.io`)
- SENTRY_PROJECT — the project slug
- SENTRY_AUTH_TOKEN — Settings → Auth Tokens (Organization Tokens). Just click "Create New (needs `project:releases` and `org:read` scopes)
2. Add them to your AI developer Agent
Add these as Build Secrets in your workspace:
- Go to Workspace Settings → Build Secrets
- Add `SENTRY_AUTH_TOKEN`, `SENTRY_ORG`, and `SENTRY_PROJECT`
- These are injected during `bun run build`, so the source-map upload plugin can authenticate
3. About “automatically fixing errors”
Sentry does not auto-fix code by itself. What it can do:
- Capture errors with stack traces, release version, and user context
- Group similar errors and alert you
- The AI developer Agent Sentry MCP connector can read Sentry issues inside chat and help investigate root causes
- AI developer Agent can then propose and implement fixes based on that investigation
So the workflow is: error appears in Sentry → AI developer Agent connector surfaces it → you or a developer asks AI developer Agent to investigate → AI developer Agent proposes a fix → you approve and it lands in the codebase.
Saturday, September 5, 2026
Integrate Sentry with AI Agents
Saturday, July 25, 2026
Steps To Install Python locally
Install Python
Go to https://www.python.org/downloads/
Click "Download Python 3.x.x" (latest version)
Run the installer — IMPORTANT: check "Add python.exe to PATH" before clicking Install
Thursday, June 11, 2026
Steps to do email forwarding in a microsoft user account
.
Use the Exchange Admin Center directly
Since you have Exchange Admin rights, do this instead:
Open:
https://admin.exchange.microsoft.comGo to:
Recipients → MailboxesSelect Test Name (
name@test.com).Click:
Mail flow settingsChoose:
Email forwardingTurn forwarding ON.
Enter:
admin@test.comIMPORTANT: Uncheck:
Deliver message to both forwarding address and mailboxThis ensures:
✅ Admin receives the email.
❌ User no longer receives a copy.
Click Save.
Friday, May 29, 2026
SUPABASE Commands
Command to run migration files from code to create db in the supabase
cd /var/www/html/project_name
supabase link --project-ref supabase_id
supabase db push
----------------------------------------
Command to deploy the functions from code to the supabase
--------------------------------------------
supabase functions deploy --project-ref supabase_id
Wednesday, April 1, 2026
Install and setup POSTGRESQL DB in ubuntu
1) Install POSTGRESQL
sudo apt update
sudo apt install -y postgresql postgresql-contrib
CREATE DATABASE name_db OWNER user_name;
GRANT ALL
PRIVILEGES ON DATABASE name_db TO user_name;
Monday, March 2, 2026
How to move servers between AWS regions
Step 1 — Create AMI in Source Region
In AWS console:
EC2 → Instances
Select your instance
Actions → Image and templates → Create Image
Wait until AMI is ready.
Step 2 — Copy AMI to Destination region
Go to:
EC2 → AMIs
Select AMI
Actions → Copy AMI
Destination region → US East (N. Virginia)
Step 3 — Launch new instance
Switch region to N. Virginia
EC2 → AMIs → Launch instance
Your server will start in us-east-1.
Important: IP address will change
You will get a new public IP, which we can configure it in our DNS.
Friday, February 27, 2026
Allocate swap file, when server RAM GB is low to remove mysql errors
sudo fallocate -l 2G /swapfile || sudo dd if=/dev/zero of=/swapfile bs=1M count=2048
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile
echo '/swapfile none swap sw 0 0' | sudo tee -a /etc/fstab
# optional but recommended
echo 'vm.swappiness=20' | sudo tee /etc/sysctl.d/99-swappiness.conf
sudo sysctl -p /etc/sysctl.d/99-swappiness.conf
free -h
swapon --show
Tuesday, February 10, 2026
cPanel multi-domain hosting for laravel project
STEP 1 — Create the Subdomain
cPanel → Domains → Create A New Domain (or Subdomains)
cPanel will automatically create:
/home/egproject/test.example.com/
2️⃣ Now open:
Copy EVERYTHING inside public folder to:
/home/egproject/test.example.com/
So that folder contains:
STEP 4 — Modify index.php (CRITICAL)
Change these lines:
FROM:
require __DIR__.'/../vendor/autoload.php';
$app = require_once __DIR__.'/../bootstrap/app.php';
TO:
require __DIR__.'/../test/vendor/autoload.php';
$app = require_once __DIR__.'/../test/bootstrap/app.php';
Because your Laravel core lives in /test.
STEP 5 — Update .env
STEP 6 — Permissions (Very Important)
In File Manager:
Set:
test/storage → 755 test/bootstrap/cache → 755
If errors:
chmod -R 775 storage
chmod -R 775 bootstrap/cacheSTEP 7 — Set up database
Thursday, January 29, 2026
How to allow higher MB file uploads by increasing size in server php.ini
1) Check php version using the command:
php -v
2) Make sure server is using apache php or php cli by using the below command
sudo systemctl status
3) Check if any php-fpm is running. else
sudo nano /etc/php/8.4/cli/php.ini
4) Edit php.ini and change these values from 2M to 10 or 20 M
upload_max_filesize = 10M
post_max_size = 10M
4. Restart web server:
sudo systemctl restart php8.4-fpm
sudo systemctl restart apache2
Monday, January 26, 2026
Get Gmail App Password for email notification through laravel app
First, you need to create an App Password from your Google Account:
Go to your Google Account: https://myaccount.google.com/
Click on "Security" in the left menu
Enable "2-Step Verification" if not already enabled
Go back to Security → 2-Step Verification
Scroll down to "App passwords"
Select "Mail" and "Other (Custom name)"
Enter a name like "Laravel App"
Click "Generate"
Copy the 16-character password (no spaces)
Update .env file with the following info:
MAIL_MAILER=smtp
MAIL_HOST=smtp.gmail.com
MAIL_PORT=587
MAIL_USERNAME=your-email@gmail.com
MAIL_PASSWORD=your-16-char-app-password
MAIL_ENCRYPTION=tls
MAIL_FROM_ADDRESS="your-email@gmail.com"
MAIL_FROM_NAME="${APP_NAME}"
Friday, January 23, 2026
How to change git origin for repo after making a copy of the repo
1) Locally run the following commands for the existing repo:
git remote -v
This will help us find the current remote origin
2) Set remote origin to the new repo:
git remote set-url origin git@gitlab.com:folder/repo.git
3) Locally ensure that it is in the correct branch
git checkout import-main
4) if activities were done in a new branch, merge it with the current branch "import main"
git merge main
5) push the code to the git
git push