惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

J
Java Code Geeks
Last Week in AI
Last Week in AI
T
Tailwind CSS Blog
WordPress大学
WordPress大学
B
Blog RSS Feed
T
The Blog of Author Tim Ferriss
F
Fortinet All Blogs
aimingoo的专栏
aimingoo的专栏
MongoDB | Blog
MongoDB | Blog
博客园 - Franky
C
Check Point Blog
P
Proofpoint News Feed
H
Help Net Security
月光博客
月光博客
博客园_首页
Stack Overflow Blog
Stack Overflow Blog
博客园 - 三生石上(FineUI控件)
Martin Fowler
Martin Fowler
Recent Announcements
Recent Announcements
人人都是产品经理
人人都是产品经理
U
Unit 42
美团技术团队
I
InfoQ
A
About on SuperTechFans

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
I lost my entire dev environment at 10pm. Here's how I re...
Johnston Abubakar Kweku · 2026-06-13 · via DEV Community

Johnston Abubakar Kweku

Last night I accidentally signed out of an Apple ID on my MacBook.
In seconds, my Desktop vanished. My projects — gone. VSCode — gone. Everything I'd been building for the past weeks, disappeared into thin air.
For a solo developer with no team, no backup system, and a live product to maintain — that's a nightmare scenario.
Here's what actually happened.
My Mac was configured to sync Desktop and Documents to iCloud Drive. I didn't set this up intentionally — it's a default macOS setting most people never notice. The moment I signed out of the Apple ID, iCloud unmounted and took everything with it.
Worse — I'd been burning through my mobile data bundle for months without knowing why. Turns out iCloud was silently uploading every file I saved, every code change, every VSCode extension in the background. On mobile data in Ghana, that's not a minor inconvenience. That's real money.
How I recovered:
Step 1 — Stop the bleeding
I cancelled the iCloud re-download immediately. 900MB over mobile data was not happening.

Step 2 — Kill iCloud sync permanently
System Settings → Apple ID → iCloud → iCloud Drive → Options
→ Uncheck "Desktop & Documents Folders"

Step 3 — Move projects to a safe location
mkdir ~/Projects
mv ~/Desktop/edutrack ~/Projects/edutrack
mv ~/Desktop/sas ~/Projects/sas
A folder outside iCloud that exists regardless of what Apple ID is signed in or whether iCloud is active.
Step 4 — Clone everything from GitHub
cd ~/Projects
git clone https://github.com/johnston-kweku/edutrack
git clone https://github.com/johnston-kweku/sas
Total downtime: under an hour.
Step 5 — Reinstall dependencies
cd edutrack
python3.12 -m venv venv
source venv/bin/activate
pip install -r requirements.txt -i https://mirrors.aliyun.com/pypi/simple/
That last flag is specific to my situation — PyPI is blocked on my network in Ghana, so I use Alibaba's mirror. A problem worth its own post.

The real lesson wasn't about iCloud though.
It was about GitHub. Every project I had committed and pushed was recoverable in seconds. The only thing I actually lost was uncommitted work from that day's session.
git add .
git commit -m "wip: dashboard summary view"
git push

That's it. That one habit — committing and pushing before closing your laptop — is the difference between a minor inconvenience and a catastrophic loss.
There's no commit message too small. wip, progress, end of day — all valid. The commit exists, that's what matters.
If you're a developer storing projects in iCloud, Dropbox, or any sync folder — move them out today.
Cloud sync is not version control. It doesn't track history. It doesn't protect you from signing out of an account. It just copies files around silently while eating your data bundle.
GitHub is your source of truth. Everything else is convenience.
And if you haven't committed today — close this tab and go do it now.

devjourney #python #django #git