Skip to content

Instantly share code, notes, and snippets.

View Blankeos's full-sized avatar
🦄
Finding unicorns  

Carlo Taleon Blankeos

🦄
Finding unicorns  
View GitHub Profile
@Blankeos
Blankeos / auth.middleware.ts
Created April 11, 2024 19:57
A better-documneted Lucia + ElysiaJS auth middleware.
import { lucia } from "@/lib/lucia";
import Elysia from "elysia";
import { verifyRequestOrigin } from "lucia";
import type { User, Session } from "lucia";
/**
* Use this middleware where you want to check if a user is authenticated.
*
* As a black box, you'll be able to see if the user is authenticated via
@Blankeos
Blankeos / publish-an-npm-package.md
Last active January 17, 2025 03:46
Publishing an NPM Package Guide

Publish an NPM Package

Login

npm login

Inside your Node Project

@Blankeos
Blankeos / 10x-vscode.md
Last active December 5, 2024 18:24
10x VSCode Guide

10x VSCode Guide

This guide is a work-in-progress and a culmination of what I know about VSCode and which shortcuts I prefer to use. Hope it helps someone.

✋ Intro

This is a short guide I have to become as close as possible to the efficiency of a "Mouse-less Developer" with using purely VSCode. No Vim motions, new shortcuts, just default VSCode (almost).

@Blankeos
Blankeos / postgresql_cheatsheet.md
Last active August 22, 2024 18:53
PostgreSQL Cheatsheet

Run PostgreSQL

Just use Docker-Compose

    // package.json scripts
    "db:start": "docker-compose up -d --build",
    "db:stop": "docker-compose stop",
@Blankeos
Blankeos / mobile-app-deployment.md
Last active October 16, 2024 06:39
Mobile App Deployment

You're definitely here because:

Stuff you know so far:

  1. Developing the app
  2. Bundling for Debugging
@Blankeos
Blankeos / use-meta.md
Last active November 28, 2024 10:56
Vike `useMeta`

Note

I already published an npm package: vike-metadata for react, solid, and vue.

Feel free to check those out instead!

Hi, this is a WIP hook I'm making for Vike to manage meta tags with similar DX as Next.js's Metadata API e.g. export const meta = {}.

I might make an npm package out of this, but for now, feel free to copy this and save it as a plain .ts file in your project.

@Blankeos
Blankeos / docker-for-noobs.md
Created February 4, 2025 14:26
Docker for noobs

I'm writing this because I keep forgetting Docker.

Make sure you have Docker Desktop.

All you need to know from start to finish:

  1. Image (a blueprint) -> Container (a running service based on the image) That's it!
  2. First know how to build images.
  3. Then know how to run containers from images.

Building an Image

@Blankeos
Blankeos / pain-points-with-zed.md
Last active May 7, 2025 20:19
Painpoints with Zed right now

This is my issue tracker for the personal painpoints I have on Zed. And I want to know if they're already done.

Markdown Preview

  • Image width overflowing width (It works now)
    • Issue: ??
    • PR: ??
  • Using <img />
  • Using Gifs
  • Animated gifs
  • Weird codeblock spacing when using &gt; inside it.
@Blankeos
Blankeos / oauth-for-noobs.md
Last active February 18, 2025 23:43
OAuth For Noobs

Notes on oAuth because I keep forgetting how to do it.

Google

  1. Go to https://console.cloud.google.com/
  2. Make a new Project
  3. Go to "Credentials" https://console.cloud.google.com/apis/credentials?project=
  4. If you haven't yet, you will Configure Consent Screen first: https://console.cloud.google.com/apis/credentials/consent?project=
  5. Under OAuth 2.0 Client IDs. [+ Create Credentials] - OAuth Client ID.
  • http://localhost:3000 is the only allowed domain if you're doing local dev. Local reverse proxies to stuff like 192.168 (which if you're doing mobile webdev, might be hard).
  • Make sure Authorized redirect URIs is the '/callback' handler endpoint of your API.
@Blankeos
Blankeos / orion-browser-things-I-dont-like.md
Last active September 21, 2025 03:08
Orion Browser - things that I don't like

I want to support this browser, but there are just so many things making me want to move away. I've used it as my daily driver for over a month now. This doc is just a note of the features/fixes "I want" to monitor.

The only literal thing making me stay: Memory Usage and Battery Life. (Which tbh, I don't even care for since I have a Mac with a hefty amount of memory already).

Bugs