Skip to content

Instantly share code, notes, and snippets.

View gunhaxxor's full-sized avatar

Gunnar Oledal gunhaxxor

View GitHub Profile
@gunhaxxor
gunhaxxor / client.ts
Last active May 28, 2023 08:56
TRPC adapter for uWebsockets.js. The ws-adapter is a modified version of the original ws-adapter in the TRPC repo. Also added some utility functions to make it easier to setup subscriptions that don't send data to the triggering client.
import {
createTRPCProxyClient,
createWSClient,
wsLink,
} from '@trpc/client';
import { Unsubscribable } from '@trpc/server/observable';
import AbortController from 'abort-controller';
import fetch from 'node-fetch';
import ws from 'ws';
import type { AppRouter } from './server';
@gunhaxxor
gunhaxxor / wordlist.js
Last active February 1, 2022 12:58
Swedish wordlist to be used with the haikunator npm package. https://www.npmjs.com/package/haikunator
module.exports = {
adjectives: [
'betrodd',
'bitter',
'blodröd',
'blommig',
'blomstrande',
'blyg',
'blå',
'blöt',
@gunhaxxor
gunhaxxor / SSH-agent-forwarding-how-to.md
Last active January 13, 2021 15:17
SSH agent forwarding on windows