Skip to content

Instantly share code, notes, and snippets.

View litewarp's full-sized avatar

Nick Sethi litewarp

View GitHub Profile
/**
* Plugin(s) to add typedPgRegistry to the build input.
* TypedPgRegistryPlugin adds the typedPgRegistry to the build input, and should always be used.
* ExportPgRegistryTypesPlugin exports types for the PgRegistry, and should only be used in development.
* The exported .d.ts file should be added to the tsconfig.json `include` array.
* The plugin only exports if the `exportPgRegistryTypesPath` option is set in the schema options.
*/
import type { PgCodec, PgEnumCodec, PgResource } from '@dataplan/pg'
import { mkdir, readFile, writeFile } from 'node:fs/promises'
@vladkens
vladkens / wezterm.lua
Last active February 21, 2026 00:22
WezTerm config for iTerm users https://vladkens.cc/from-iterm-to-wezterm/
-- https://wezfurlong.org/wezterm/config/files.html
-- https://alexplescan.com/posts/2024/08/10/wezterm/
-- https://github.com/wez/wezterm/issues/6112
-- https://github.com/wez/wezterm/issues/5754
local wezterm = require "wezterm"
local config = wezterm.config_builder()
local action = wezterm.action
local mux = wezterm.mux
config.audible_bell = "Disabled"
@bogaotory
bogaotory / install_bionic_on_x1c6.md
Last active May 15, 2024 03:25
Install Ubuntu 18.04 on Thinkpad X1 Carbon 6th Generation

Install Ubuntu 18.04 on Thinkpad X1 Carbon 6th Gen/2018

X1C6 Type: 20KG*

Bionic works out of the box on the new 2018 X1 Carbon. The X1C6 is a beautiful laptop, and Bionic is the best Ubuntu yet. Users of all levels of experties/experiences are recommended to try this combination. The purpose of this documentation is to improve the user's experience.

BIOS/UEFI Changes

Following changes are required by the DSDT patch:

  1. Turn off Secure Boot