Skip to content

Instantly share code, notes, and snippets.

View kevinslin's full-sized avatar

Kevin Lin kevinslin

View GitHub Profile
@kevinslin
kevinslin / arch.md
Last active April 28, 2025 01:01
textpress arch

Pseudocode

async function sync(dir) {
  const jwt = await loginWithSupabase();                // opens browser once
  const remote = await fetchManifest(jwt);

  const local  = await buildLocalMap(dir, remote);      // reuse cache
 const diff = diffLocalVsRemote(local, remote); // { upload, delete }
@kevinslin
kevinslin / pkg.textpress.md
Last active April 20, 2025 22:09
textpress.md
id title desc updated created
s0o4y7x0hii013s5odjdobs
Textpress
1745186728475
1745186544833

Plain Text Publishing

sources:
source/a/dd_agent:
type: datadog_agent
address: 0.0.0.0:8020
multiple_outputs: true
sinks:
sink/l/dd:
site: ${DD_SITE}
type: datadog_logs
inputs:
@kevinslin
kevinslin / nimbus.privatelink.aws.yaml
Created April 16, 2024 00:25
Nimbus Private Link
# -*- coding: utf-8 -*-
import sys
import json
from typing import Optional, Tuple
import pprint
from log_filters import filter_logs_by_source_type
class MergePolicy:
@kevinslin
kevinslin / keybindings.json
Last active August 4, 2022 04:44
kevin.daily-journal-template
// Place your key bindings in this file to override the defaults
[
// The following are Kevin's keybindings for VSCode
// They are made available under CC BY 4.0
//
// To navigate
// `==` denote sections
// `---` denotes subsections
//
// == Dendron

Dendron Extended PR Checklist

  • NOTE: the links don't work. you'll need to go into the wiki and use lookup to find the note until we fix some issues in the markdown export

Code

Basics

First Time Specifics

  • if its your first pull request to Dendron, watch out for the CLA bot that will ask you to agree to Dendron's CLA
  • if its your first pull request and you're on our Discord, add your discord handle so that we can award you the horticulturalist role when the PR is merged

Commit

  • make sure your branch names adhere to our branch style
  • make sure the commit message follows Dendron's commit style
  • if this pull request is addressing an existing issue, make sure to link this PR to the issue that it is resolving.
@kevinslin
kevinslin / multi-workspace.md
Created December 5, 2021 17:34
mutli-workspace-setup

Creating a Personal and Work specific workspace

  1. Create a personal workspace using Initialize Workspace
    • initialize with a blank vault
      • if you want to version control the vault, run Vault Convert to add a git repository to this vault
    • repeat this process with other vaults as needed (we recommend just starting off with a single vault), see reasons for going multi-vault here
    • add your workspace to version control by running the following:
      1. Initialize a git repo
@kevinslin
kevinslin / publish-action.yml
Last active October 19, 2021 22:58
publish-action
name: Dendron
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest