Skip to content

Instantly share code, notes, and snippets.

@ahnafnafee
ahnafnafee / antigravity-google-oauth-wsa-hijack.md
Created June 8, 2026 16:49
Continue with Google opens nothing on Windows -- root cause: Windows Subsystem for Android (WSA) hijacking google.com links via App URI Handlers. Full diagnosis + fix + reusable playbook.

"Continue with Google" opens nothing on Windows — and it's not the browser, the app, or your account

TL;DR: A desktop app's "Sign in with Google" button silently did nothing — the browser never opened. After a long hunt it turned out Windows Subsystem for Android (WSA) had registered Google's sign-in domains (accounts.google.com, etc.) as "App URI Handlers" ("Apps for websites"), so Windows routed every shell-opened google.com link to a crashing Android app instead of the browser. It affected every browser and every app that opens Google login via the OS. Fix: remove the hijacking association (uninstall/repair WSA, or disable App URI Handlers) and reboot.

This write-up documents the symptom, the full diagnostic journey (including the wrong turns, because they're instructive), the root cause, the fix, and a reusable playbook so you can diagnose "a URL opens the wrong app / nothing" in minutes next time.


Symptoms

OnePlus 6T (T-Mobile) — End-to-End: Unbrick → Convert to International → Flash LineageOS

⚠️ Big warnings (read once):

  • This process wipes all data.
  • Use the exact OnePlus 6T packages (codename fajita). OnePlus 6 is enchilada (different).
  • Don’t boot into Android between certain flashing steps unless the step explicitly says to.
  • Keep the phone plugged into a stable USB port (avoid flaky hubs/cables).

@ahnafnafee
ahnafnafee / PRIVATE_VIMEO.md
Last active May 5, 2023 17:21
Bypass Private Vimeo Video Restriction

Setup Steps:

  • Install this extension first: Referer Manager
  • Add the following settings Extension Settings
  • Install the UserScript below using TamperMonkey
  • Now the webpage should show a button to view the private video like so image
  • Done!
@ahnafnafee
ahnafnafee / auth-provider.tsx
Last active December 13, 2022 17:31
Auth Provider that auto refreshes auth tokens when they expire
import { UserTokens } from "../models/player";
import { useAppDispatch, useAppSelector } from "../store/hooks";
import {
NotificationService,
PushNotificationPayload,
} from "../services/notification-service";
import { authActions, authThunks } from "../store/slices/auth";
import { config } from "../constants/config";
import * as SecureStore from "expo-secure-store";
import axios from "axios";
@ahnafnafee
ahnafnafee / Launcher.cs
Created March 10, 2021 05:24
Checks if a particular lobby is full and then starts the game if the lobby leader gives the go ahead
using System.Collections.Generic;
using Photon.Pun;
using Photon.Realtime;
using TMPro;
using UnityEngine;
using System.Linq;
namespace Lobby.Scripts
{
public class Launcher : MonoBehaviourPunCallbacks
@ahnafnafee
ahnafnafee / HudManager.cs
Created March 10, 2021 04:59
Primary code for HUD that calculates the drawing position within the view
using UnityEngine;
using System.Collections.Generic;
using System.Linq;
using UnityEngine.Serialization;
public class HudManager : MonoBehaviour
{
public List<HudInfo> huds = new List<HudInfo>();
public Transform localPlayer = null;
@ahnafnafee
ahnafnafee / WeaponScript.cs
Created March 10, 2021 04:57
Accurate Shooting Script for Player
using System;
using System.Collections;
using System.Collections.Generic;
using _Project.Scripts.Utils;
using UnityEngine;
using UnityEngine.Serialization;
using Random = UnityEngine.Random;
namespace _Project.Scripts
{