Skip to content

Instantly share code, notes, and snippets.

@yaikohi
yaikohi / typography-tailwind.css
Created April 5, 2024 07:32
typographic styles (from shadcn) for standard styling of text-focussed html elements in tailwind
@layer base {
* {
@apply border-border;
}
body {
@apply bg-background text-foreground;
font-feature-settings:
"rlig" 1,
"calt" 1;
@yaikohi
yaikohi / package.json
Created January 30, 2024 20:21
`package.json` 'scripts' for solidstart bun projects. Ensures that vinxi uses bun as a server instead of node.
{
"scripts": {
"dev": "bunx --bun vinxi dev",
"build": "bunx --bun vinxi build",
"start": "bunx --bun vinxi start"
},
}
@yaikohi
yaikohi / Dockerfile
Created January 30, 2024 11:48
Dockerfile template - Solidstart / Vinxi on Bun
# use the official Bun image
# see all versions at https://hub.docker.com/r/oven/bun/tags
FROM oven/bun:1 as base
WORKDIR /usr/src/app
# install dependencies into temp directory
# this will cache them and speed up future builds
FROM base AS install
RUN mkdir -p /temp/dev
COPY package.json bun.lockb /temp/dev/
@yaikohi
yaikohi / keychron_linux.md
Created September 26, 2022 06:54 — forked from andrebrait/keychron_linux.md
Keychron keyboards on Linux + Bluetooth fixes

Here is the best setup (I think so :D) for K-series Keychron keyboards on Linux.

Most of these commands have been tested on Ubuntu 20.04 and should also work on most Debian-based distributions. If a command happens not to work for you, take a look in the comment section.

Make Fn + F-keys work

Keychron Keyboards on Linux use the hid_apple driver (even in Windows/Android mode), both in Bluetooth and Wired modes. By default, this driver uses the F-keys as multimedia shortcuts and you have to press Fn + the key to get the usual F1 through F12 keys.