Skip to content

Instantly share code, notes, and snippets.

View kargozeyan's full-sized avatar
🦈
Focusing

Karen Gozeyan kargozeyan

🦈
Focusing
View GitHub Profile
@kargozeyan
kargozeyan / nuxt-auth-api-plugin.ts
Created April 5, 2026 10:03
Nuxt plugin for handling access/refresh token cookies with external backend (SSR-compatible)
// app/plugins/api.ts
import { appendResponseHeader } from 'h3';
import { parseCookie, parseSetCookie, stringifyCookie } from 'cookie';
export default defineNuxtPlugin(() => {
const event = import.meta.server ? useRequestEvent() : undefined;
// During SSR, we parse the initial browser cookies. During the request lifecycle,
// we update this object with new cookies from backend responses (e.g. after a token refresh).
const cookies = import.meta.server && event ? parseCookie(event.node.req.headers.cookie ?? '') : {};
@JerryLokjianming
JerryLokjianming / Crack Sublime Text Windows and Linux.md
Last active September 9, 2026 16:08
Crack Sublime Text 3.2.2 Build 3211 and Sublime Text 4 Alpha 4098 with Hex

How to Crack Sublime Text 3.2.2 Build 3211 with Hex Editor (Windows | Without License) ↓

  1. Download & Install Sublime Text 3.2.2 Build 3211
  2. Visit https://hexed.it/
  3. Open file select sublime_text.exe
  4. Offset 0x8545: Original 84 -> 85
  5. Offset 0x08FF19: Original 75 -> EB
  6. Offset 0x1932C7: Original 75 -> 74 (remove UNREGISTERED in title bar, so no need to use a license)