Logos of Gmail, Google Drive, and Google Photos

How and why to back up your Google data

Google operates at a scale of billions of users. At that scale, mistakes happen, and you can lose all your data. Here are two ways to deal with it. Avoid giving out your @gmail.com email address publicly - use @customdomain.com which you control Keep a backup of your important data elsewhere, like Backblaze - it charges about USD 1 for storing 100GB for one year, which is sufficient for most normal users How to back up Google Photos to Backblaze Download via Google Takeout - depending on the size, it will take up to a few hours for Google to create a takeout and put it in, say, ${HOME}/Downloads/google-photos/Takeout Create a new bucket on Backblaze - google-photos-backup-v1 Create a new Backblaze key and save it in .env as AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY Use restic for backup One-time init: make initGooglePhotos # remember the password you configure here Backup: make backupGooglePhotos # First time this is slow; future backups are incremental and fast One can do it similarly for Gmail and Google Drive. ...

Mac OS logo

Enable Spotlight Indexing for Google Drive on Mac

Google’s official client for Mac OS, “Backup and Sync,” is no more. It has been replaced by “Google Drive” now. One problem is that the new approach exposes files as a Network Drive, which Spotlight does not index. So, you can no longer search for Google Drive files via Spotlight unless you re-enable the indexing. After trying several non-working solutions, I found one that enables indexing on Google Drive. ...

Amazing Sandbox logo

Amazing Sandbox - run third-party tools & AI agents safely

Sandbox your tools before they harm you

Open API specification

Use REST with Open API

GraphQL is an overkill. REST is simple and easy to use. Open API is a specification that can be used to define RESTful APIs.

Python logo

Best practices for using Python & uv inside Docker

The ultimate guide to using uv package manager inside Docker

IntelliJ IDE

How IntelliJ IDEs waste disk space

I love IntelliJ IDEs. I use Android Studio for Android, PyCharm for Python, and GoLand for Go. They are powerful. I just wish they didn’t fill my 500GB disk as if there is no tomorrow. For example, with IDE settings left over from old installations. Bash 1 2 3 4 5 6 7 8 9 10 11 12 $ du -shc ~/Library/Application\ Support/JetBrains/* | sort -h ... 264M JetBrains/PyCharm2023.2 359M JetBrains/PyCharmCE2023.2 382M JetBrains/PyCharmCE2023.3 387M JetBrains/PyCharmCE2024.1 625M JetBrains/GoLand2023.2 927M JetBrains/GoLand2024.1 938M JetBrains/GoLand2023.3 950M JetBrains/GoLand2024.2 ... 5.3G total If you check inside, it is mostly “plugins” that are consuming the disk space. It is safe to delete all the old versions of the settings unless you are planning to downgrade. ...

Docker Logo

Run third-party tools inside Docker to stay secure

Keep yourself secure - Always run third-party CLI tools inside Docker

Ship tools as standalone static binaries

Ship tools as standalone static binaries

Open AI is ditching TypeScript to rebuild Codex in Rust. This is a great example of why you should always ship tools as standalone static binaries using compiled languages. Reddit Comment The biggest advantage of such tools is not speed or efficiency. Rather, it is the ability to not install the full tool chain to just use a tool. Compiler provides additional safety check Compilation is an additional guardrail that reduces the likelihood of shipping non-functioning code. ...

Android Logo

Maintaining an Android app is a lot of work

There was recent news about 47% decline in the number of apps on Google Play Store. As a hobby Android developer, who has been developing MusicSync, a Google Play Music + Podcast replacement for the last five years, I thought I would share my experience of maintaining an Android app. And why this reduction in the number of apps is not surprising to me. ...

FastAPI vs Flask performance comparison

FastAPI vs Flask performance comparison

If you are running Python in production, you will almost certainly have to decide which web framework to use. Let’s consider a rudimentary Hello world based test comparing the performance of two popular web frameworks for Python - FastAPI and Flask. I will intentionally use Docker for benchmarking as most deployments today will explicitly or implicitly rely on Docker. For Flask, I will use this Dockerfile 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 # Build: docker buildx build -t python-flask -f Dockerfile_python . # Size: docker image inspect python-flask --format='{{.Size}}' | numfmt --to=iec-i # Run: docker run -it --rm --cpus=1 --memory=100m -p 8001:8001 python-flask FROM python:3.13-slim AS base WORKDIR /app RUN pip3 install --no-cache-dir flask gunicorn SHELL ["/bin/bash", "-c"] RUN echo -e "\ from flask import Flask\n\ app = Flask(__name__)\n\ \ @app.get('/')\n\ def root():\n\ return 'Hello, World!'\n\ " > /app/web_server.py ENTRYPOINT ["gunicorn", "web_server:app", "--bind=0.0.0.0:8001", "--workers=4", "--threads=32"] And for FastAPI, I will use this ...