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.
Ground zero 2 cloud nine
https://techstreaks.com
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
Tuesday, December 30, 2025
Create a basic Sharepoint communication Site for your company
✅ Step-by-step: Build MyCompany SharePoint Internal Hub
Step 0 — Decide Names (use these)
- Hub site: MyCompany Central Hub
- Sites: Operations, IT & Systems, Sales & Marketing, Finance, Compliance & Legal, Events & CME
1️⃣ Create the Main Hub Site (Central Portal)
- Go to: Microsoft 365 → App Launcher (9 dots) → SharePoint
- Click: Create site
- Choose: Communication site
- Select a template: Blank (best) or Topic
- Site name: MyCompany Central Hub
- Click Finish
✅ This becomes your main landing page.
2️⃣ Register it as a Hub Site (Admin Step)
- Open: SharePoint Admin Center
1. Go to https://admin.microsoft.com
2. Select Admin centers → SharePoint
- Go to: Sites → Active sites
- Find and select: MyCompany Central Hub
- Click: Hub → Register as hub site
- Hub name: MyCompany Central Hub
- Save
✅ Now you can manage global navigation + consistent branding.
3️⃣ Create Department Sites (Communication Sites)
Repeat these steps for each department:
- In SharePoint home → Create site
- Choose: Communication site
- Name: MyCompany Operations
- Finish
Create these sites:
- MyCompany Operations
- MyCompany IT & Systems
- MyCompany Sales & Marketing
- MyCompany Finance
- MyCompany Compliance & Legal
- MyCompany Events & CME
4️⃣ Connect Each Site to the Hub (Very important)
For each department site:
- Open the department site
- Click: Settings (⚙️) → Site information
- Look for: Hub site association
- Select: MyCompany Central Hub
- Save
✅ Now all sites share the same top navigation style and theme.
5️⃣ Build the Top Menu (Hub Navigation)
- Open: MyCompany Central Hub
- At top menu, click: Edit
- Add links (one by one):
· Click ➕ Add link
4. ·
- Operations → link to Operations site
- IT & Systems → link to IT site
- Sales & Marketing → link to Sales site
- Finance → link to Finance site
- Compliance & Legal → link to Compliance site
- Events & CME → link to Events site
- Click: Save
✅ This gives you the “AIU-style” department navigation.
6️⃣ Create the Hub Home Page Layout
A) Add the Banner
- On hub home → click Edit
- Click + → add Hero Web Part
- Choose layout: Layered
- Add a banner image (brand/medical theme)
- Title: MyCompany Central Hub
- Subtitle: Internal Operations & Systems Portal
B) Add Quick Action Buttons (right side feel)
- Click + under the banner area
- Add Quick Links
- Layout: Buttons
- Add buttons:
- SOPs & Policies
- IT Support Request
- Finance Requests
- Compliance Docs
- CME & Events
- Publish the page
7️⃣ Create Document Libraries (Core of SharePoint)
Go to each department site and create libraries:
Operations site:
- SOPs & Policies
- Templates
- Reports
IT & Systems site:
- System Documentation
- Deployment Notes
- Change Requests (List, not library)
Finance site:
- Invoices
- Budgets
- Vendor Payments
Compliance site:
- Contracts
- Regulatory Docs
- Audit Records
Events & CME:
- Event Planning
- Post-Event Reports
- Marketing Assets
How to create a library:
- Go to the site → New → Document library
- Name it
- Create
8️⃣ Create Lists for Requests (Forms replacement)
A) IT Support Request List
- Go to IT site
- Click New → List
- Choose Blank list
- Name: IT Support Requests
- Add columns:
- Request Type (Choice)
- Priority (Choice: Low/Med/High/Urgent)
- Requested By (Person)
- Description (Multiple lines)
- Status (Choice: New/In Progress/Done)
B) Operations Requests (Optional)
Same concept for Operations.
9️⃣ Setup Permissions (Internal-only)
Since suppliers cannot access, keep it simple:
- Go to each site → Settings (⚙️) → Site permissions
- Use standard groups:
- Owners (full control)
- Members (edit)
- Visitors (read)
✅ Recommendation:
- Operations: most staff can read
- IT: only IT team can edit
- Finance/Compliance: restricted access
🔟 Turn on Versioning (Very important)
For each document library:
- Open library → Settings → Library settings
- Click Versioning settings
- Enable:
✅ Create major versions
✅ Keep versions (e.g., 50)
This prevents accidental loss.
1️⃣1️⃣ Publish + Test
- Log in as a normal user (or test account)
- Confirm they can:
- Open hub
- Navigate sites
- View correct docs
- Not access Finance/Compliance (if restricted)
Wednesday, December 24, 2025
Set Up PostgreSQL locally in Ubuntu
Install PostgreSQL
sudo apt update
sudo apt install postgresql postgresql-contrib
sudo systemctl start postgresql
Basic Setup
# Create database and user
sudo -u postgres psql
# In PostgreSQL shell:
CREATE DATABASE myapp;
CREATE USER myuser WITH PASSWORD 'mypassword';
GRANT ALL PRIVILEGES ON DATABASE myapp TO myuser;
\q
Connect
# Command line
psql -h localhost -U myuser -d myapp
# Connection string
postgresql://myuser:mypassword@localhost:5432/myapp
Environment Variables
DATABASE_URL="postgresql://myuser:mypassword@localhost:5432/myapp"