Skip to content

Instantly share code, notes, and snippets.

@veloii
veloii / order.ts
Last active August 16, 2024 23:02
helpers functions for ordering in drizzle orm
import type {
AnySQLiteColumn,
BaseSQLiteDatabase,
SQLiteColumn,
SQLiteTableWithColumns,
SQLiteUpdateSetSource,
} from "drizzle-orm/sqlite-core";
import { db } from "..";
import { and, eq, gte, lte, max, not, sql, type AnyColumn, type SQL } from "drizzle-orm";
@veloii
veloii / README.md
Last active February 8, 2026 09:10
raycast-like wofi config

Wofi command to run:

wofi --width=900 --height=500 --gtk-dark -a --allow-images --show drun

@dvas0004
dvas0004 / decompiler.py
Created October 26, 2018 14:57
grpc-web reverse engineer
import jsbeautifier
import requests
import pprint
enumerateMessagesSearchString = 'exportSymbol("proto.'
r = requests.get('http://localhost:8081/dist/main.js')
jsInput = r.text
pretty_js = jsbeautifier.beautify(jsInput).split('\n')