Skip to content

Instantly share code, notes, and snippets.

View jasikpark's full-sized avatar
🏳️‍🌈
happy pride month

Caleb Jasik jasikpark

🏳️‍🌈
happy pride month
View GitHub Profile
@jasikpark
jasikpark / omlx-provider.ts
Created May 27, 2026 22:23
letta-code extension: register oMLX as a pi provider using /v1/models/status as the source of truth for per-model capabilities (modality, context window, max tokens, thinking default). Requires letta-code with PR #2552 merged.
// Registers oMLX (https://github.com/jundot/omlx) as a letta-code pi provider,
// using oMLX's /v1/models/status endpoint as the source of truth for per-model
// capabilities (modality, context window, max tokens, thinking default).
//
// Without this, letta-code falls back to substring heuristics on the model id
// (llava / vision / vl for VLMs, gpt-oss / qwen3 / deepseek-r1 for reasoning,
// 128K context default) — see https://github.com/letta-ai/letta-code/issues/2541.
//
// Requires letta-code with PR #2552 merged (the `letta.registerProvider()` API).
@jasikpark
jasikpark / src-pages-links.astro
Created February 12, 2026 17:57
implementing a links page w/ atproto (coded w/ Claude Sonnet 4.5)
@jasikpark
jasikpark / _getPostcards.ts
Created June 27, 2025 17:12
Postcards page
export const getPostcards = async () => {
const files = import.meta.glob<ImageMetadata>(
"/src/assets/postcard-images/*.{jpeg,jpg,JPG,png,gif}",
{ import: "default", eager: true }
);
const featuredFiles = import.meta.glob<ImageMetadata>(
"/src/assets/featured-postcard-images/*.{jpeg,jpg,JPG,png,gif}",
{import: "default", eager: true }
);
@jasikpark
jasikpark / update-dnclient-desktop.sh
Created May 15, 2025 18:05
Update DNClient Desktop via the cli
#!/bin/bash
set -eo pipefail
IFS=$'\n\t'
# Script to update DNClient Desktop.app
# Usage: ./update_dnclient.sh <download_url>
# Check if download URL is provided
if [ -z "$1" ]; then
echo "Error: Download URL is required"
import type { Meta, StoryObj } from "@storybook/react";
import { expect, userEvent, waitFor, within } from "@storybook/test";
import fc from "fast-check";
import { useState } from "react";
import { SMORGASBORD_OPTIONS } from "./contants";
import { OptionSelector } from "./OptionSelector";
const meta = {
title: "components/OptionSelector",
component: OptionSelector,

Upgrading your IPv4 Cert V1 network to an IPv4/IPv6 Cert V2 network

Upgrade to nebula nightly

First of all, download the updated nebula version that has v2 certs and IPv6 support from nightly releases, and move all of the hosts in your network to it.

https://hub.docker.com/r/nebulaoss/nebula-nightly

@jasikpark
jasikpark / ipv6-quick-start.md
Created March 17, 2025 18:57
Seting up an IPv6 nebula network

Building an IPv6 network with the nebula nightly builds:

nebula-cert ca -name "Nebula IPv6 Tutorial CA" -encrypt
Enter passphrase:
# typed in my password and pressed enter.
@jasikpark
jasikpark / prefetch.ts
Created January 17, 2024 17:57
`usePrefetchQuery` with types
import { useQueryClient, type DefaultError, type FetchQueryOptions, type QueryKey } from '@tanstack/react-query';
// Type specified by `ensureQueryData` definition.
// Pulled from <https://tanstack.com/query/latest/docs/react/guides/prefetching>
export function usePrefetchQuery<
TQueryFnData,
TError = DefaultError,
TData = TQueryFnData,
TQueryKey extends QueryKey = QueryKey,
>(options: FetchQueryOptions<TQueryFnData, TError, TData, TQueryKey>, { enabled = false }: { enabled?: boolean } = {}) {
@jasikpark
jasikpark / are-we-formatting-yet.md
Created December 8, 2023 17:36
WIP list of all possible formatters w/ support for different languages
  • Rust
    • rustfmt
  • Go
    • gofmt
  • Javascript/Typescript
    • prettier
    • biome
  • Markdown
    • prettier
  • Python
@jasikpark
jasikpark / flake.nix
Created July 29, 2023 20:45
use an old hugo version via nix flakes
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
old-hugo-nixpkgs.url = "github:NixOS/nixpkgs/4fe31ab170bbbdd089b05b268b681542886eb642";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, old-hugo-nixpkgs, flake-utils, }:
flake-utils.lib.eachDefaultSystem
(system:
let