Skip to content

Instantly share code, notes, and snippets.

View dakdevs's full-sized avatar
🤔
Always learning.

Dak Washbrook dakdevs

🤔
Always learning.
View GitHub Profile
@dakdevs
dakdevs / setup-ssh.sh
Created April 23, 2026 01:16
Setup Ubuntu for SSH access from dakdevs' Mac
#!/usr/bin/env bash
# Setup an Ubuntu machine to be SSH-able from dakdevs' Mac.
# Idempotent: safe to re-run.
#
# Usage (on the Ubuntu machine):
# curl -fsSL <gist-raw-url> | bash
set -euo pipefail
PUBKEY="ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEqJZkbO069wsfHTuRDMPLNe8SWozP5Gf/cpTgxT3XI1 dakdevs-mac"
@dakdevs
dakdevs / install-xrdp.sh
Created April 18, 2026 03:39
Interactive installer: set up xrdp + Xfce on a remote Ubuntu box for Mac RDP access. Handles console-session conflicts, installs Windows App, idempotent.
#!/usr/bin/env bash
# install-xrdp.sh — set up remote desktop (xrdp + Xfce) on a remote Ubuntu box
#
# Run this on your Mac. It will:
# 1. Check for / install the Mac RDP client (Windows App) via Homebrew or App Store
# 2. Prompt for the SSH host and Linux user to configure
# 3. scp itself over, run via sudo, clean up after
# 4. Install xrdp + xorgxrdp + xfce4 on the remote
# 5. Configure ~/.xsession to launch Xfce with an isolated dbus bus
# (so it coexists with any GNOME session on the physical monitor)
@dakdevs
dakdevs / qa-comparison.md
Last active April 6, 2026 22:19
QA Comparison: Main vs Skills Architecture

QA Comparison: Main vs Skills Architecture

Side-by-side comparison of the native tool architecture (main) vs the skill+bash architecture across 85+ QA scenarios. Both runs use the same Qwen 3.5 397B model on the same hardware, same NATS infrastructure, same QA evaluator. Only the os-assistant binary and scenario acceptance criteria differ.

Skills scored 48 GREAT vs main's 44 with the same BAD count (23 vs 23). Token usage was comparable (10.3M vs 10.3M) with fewer LLM calls (4,869 vs 5,649). Median time to first audio was 1.5s (skills) vs 1.7s (main).

Grade Summary

Main Skills
@dakdevs
dakdevs / SKILL_ARCHITECTURE_REPORT.md
Last active April 5, 2026 01:24
OS Assistant: Skill+Bash vs Native Tools — Full Comparison Report

OS Assistant: Skill+Bash Architecture vs Native Tools — Full Comparison

Date: 2026-04-03 Branch under test: autoresearch/apr03 (skill+bash) vs main (native tools) Eval harness: os-qa automated scenario runner (84 scenarios)


Table of Contents

@dakdevs
dakdevs / mercury-dark.json
Created December 5, 2025 21:43
Mercury Dark & Light OpenCode Themes
{
"$schema": "https://opencode.ai/theme.json",
"defs": {
"purple-600": "#5266eb",
"purple-700": "#465bd1",
"purple-800": "#3442a6",
"purple-400": "#8da4f5",
"purple-300": "#a7b6f8",
"red-600": "#d03275",
"red-700": "#b0175f",
#!/bin/bash
# Run by calling the following from the terminal:
# curl -sL https://fromdak.to/setup | bash
mac_os_settings() {
echo "Turning off mouse cursor acceleration..."
defaults write -g com.apple.mouse.scaling -1
}
[-0.050116885,-0.030017678,0.025344552,0.046159033,0.004479405,-0.0017002665,0.016451309,0.022101974,-0.02157744,-0.012052371,-0.008338906,-0.01782225,0.031519752,0.010466847,0.04110443,0.014937311,0.014460461,0.015521452,-0.034047056,0.034786172,-0.014877705,0.015092287,0.008267378,0.023389468,0.025106126,-0.020397238,-0.041843545,0.0098231,-0.016892394,0.007844174,0.03995999,-0.016832788,-0.0013746677,0.030828321,0.017130818,0.04727963,0.0060232054,0.035501447,-0.016642049,0.025082285,-0.030899849,0.010347635,0.004178394,0.0131491255,0.010693351,0.01896669,0.01926472,0.018430233,0.007260034,0.012600749,-0.086929664,-0.03349868,0.014520068,0.015819483,-0.011420546,0.048686337,0.045586813,-0.014877705,0.030256102,0.008923046,0.040484525,-0.034833856,-0.021553598,-0.0014365092,-0.021827787,0.041271325,-0.055314545,-0.0065268776,-0.016916236,0.020731032,0.021136355,0.0052423645,0.03197276,-0.0069381604,-0.021803943,-0.0033737102,0.057603423,-0.007862057,-0.013101441,0.015449924,-0.036645886,0.02186355,0.0060202
@dakdevs
dakdevs / page.tsx
Created October 24, 2024 20:44
NextConf 2024 Community Challenge Competition
const boldText = "The React Framework for the Web.";
const regularText =
"Used by some of the world's largest companies, Next.js enables you to create high-quality web applications with the power of React components.";
// Use in img src
const nextjsConfHero = "/nextjs-conf-hero.svg";
const nextjsConfLogo = "/nextjs-conf-logo.svg";
const nextjsLogo = "/nextjs-logo.svg";
export default function Page() {
This file has been truncated, but you can view the full file.
<table style="border-collapse: collapse;">
<thead>
<tr style="border-bottom: 1px solid rgb(56, 68, 77);">
<th
style="width: 36%; text-align: start; padding: 8px; position: sticky; top: 0px; background-color: rgb(30, 39, 50); z-index: 1;">
<div dir="ltr" class="css-146c3p1 r-bcqeeo r-1ttztb7 r-qvutc0 r-37j5jr r-a023e6 r-rjixqe r-b88u0q"
style="text-overflow: unset; color: rgb(247, 249, 249);"><span
class="css-1jxf684 r-bcqeeo r-1ttztb7 r-qvutc0 r-poiln3" style="text-overflow: unset;">Post</span></div>
</th>
@dakdevs
dakdevs / useModal.jsx
Last active February 20, 2024 11:12
Antd Use Modal Hook
import React from 'react'
import ReactDOM from 'react-dom'
import { Modal } from 'antd'
const useModal = (Component, props) => {
const [open, setOpen] = React.useState(false)
const [loading, setLoading] = React.useState(false)
const onOk = props.onOk || (() => {})
const handleOk = () => {