Skip to content

Instantly share code, notes, and snippets.

@matsonj
matsonj / .windsurfrules
Created March 15, 2025 15:43
AI rules for using DuckDB & MotherDuck
This project uses MotherDuck in cloud, and DuckDB locally.
To check data in DuckDB with a query, use this in the terminal: `duckdb <dbname> -c <query>`
To check data in DuckDB with a sql file, use this in the terminal: `duckdb <dbname> -f <query>`
MotherDuck documentation is here: https://motherduck.com/docs
LLM friendly documentation for MotherDuck is here: https://motherduck.com/docs/llms/motherduck.txt
@matsonj
matsonj / ShareLinkComponent.svelte
Last active November 21, 2024 21:38
An implementation of xmrit as a svelte component for Evidence.dev
<script context="module">
export const evidenceInclude = true;
</script>
<script lang="ts">
import { generateShareLink } from './shareLink';
export let xLabel = "date";
export let yLabel = "value";
export let xdata = [];
@matsonj
matsonj / pr_to_master.yml
Last active January 30, 2024 17:35
Running dbt-core with github actions
name: pr_to_master
on:
pull_request:
branches:
- master
env:
DBT_PROFILES_DIR: ./
MSSQL_USER: ${{ secrets.MSSQL_USER }}
@matsonj
matsonj / load2azure.py
Last active July 4, 2023 17:30
load arbitrary files to azure blob & delete them from local
# exec with `python3 load2azure.py`
import os
import argparse
import logging
from azure.storage.blob import BlobServiceClient, BlobClient
from dotenv import load_dotenv
# load env variables
load_dotenv()