// types.ts - GSDState becomes extensible
export interface GSDState {
activeMilestone: ActiveRef | null;
activeSlice: ActiveRef | null;
activeTask: ActiveRef | null;
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| # nvidia-p2p-setup.sh | |
| # Idempotently install the aikitoria/open-gpu-kernel-modules P2P-patched NVIDIA | |
| # driver (610.57.04-p2p-v2) on this host. | |
| # | |
| # Re-running this script is safe: every step checks whether it has already | |
| # been done and skips if so. Steps that cannot be safely re-run (driver | |
| # install, module swap) are guarded by version/state checks. | |
| # | |
| # Usage: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # vLLM deadlock watchdog — detect stalled inference and recover by dropping stale TCP connections. | |
| # Runs as a system service (root). | |
| PORT="${VLLM_PORT:-8000}" | |
| STALL_WINDOW="${VLLM_WATCHDOG_STALL:-30}" | |
| CHECK_INTERVAL="${VLLM_WATCHDOG_INTERVAL:-5}" | |
| RECOVERY_COOLDOWN="${VLLM_WATCHDOG_COOLDOWN:-15}" | |
| log() { echo "$(date '+%F %T') $*"; } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| use std::collections::{HashMap, VecDeque}; | |
| use std::future::Future; | |
| use std::pin::Pin; | |
| use std::sync::{Arc, Mutex}; | |
| use std::task::{Context, Poll}; | |
| use futures::channel::oneshot::{channel, Receiver, Sender}; | |
| // === Simulated HTTP Future Token === |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (require 'json) | |
| (defconst continue-core-host "127.0.0.1") | |
| (defconst continue-core-port 3000) | |
| (defvar continue-core-socket nil) | |
| (defvar continue-core-response-queue '() | |
| "Queue for storing responses from Continue Core server.") |
I hereby claim:
- I am gtrak on github.
- I am gtrak (https://keybase.io/gtrak) on keybase.
- I have a public key ASD9Y8nFoqgxhXrlFDg8RTtSXgT2p2z0WuWZQZNx9hvRqgo
To claim this, I am signing this object:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (defun sql-switch-sqli-buffer () | |
| (interactive) | |
| (unless (and sql-buffer (buffer-live-p (get-buffer sql-buffer)) | |
| (get-buffer-process sql-buffer)) | |
| (sql-set-sqli-buffer)) | |
| (setq last-sql-buffer (current-buffer)) | |
| (pop-to-buffer sql-buffer)) | |
| (defun sqli-switch-sql-buffer () | |
| (interactive) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| gary@gary-macbook:~/dev$ lein new expo expotest | |
| Retrieving expo/lein-template/0.17.1/lein-template-0.17.1.pom from clojars | |
| Retrieving expo/lein-template/0.17.1/lein-template-0.17.1.jar from clojars | |
| Generating fresh Expo project. | |
| README.md contains instructions to get you started. | |
| If you have any questions, you can ask us on Expo slack #clojurescript channel. https://slack.expo.io/ | |
| gary@gary-macbook:~/dev$ cd expotest/ | |
| gary@gary-macbook:~/dev/expotest$ cat project.clj | |
| (defproject expotest "0.1.0-SNAPSHOT" | |
| :description "FIXME: write description" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ;; I need this often enough, a lightweight introspectable fn+data | |
| ;; container with a default operation - GT | |
| (defrecord _DerefMap [deref-fn] | |
| clojure.lang.IDeref | |
| (deref [me] (deref-fn me))) | |
| (prefer-method print-method clojure.lang.IRecord clojure.lang.IDeref) | |
| (prefer-method clojure.pprint/simple-dispatch clojure.lang.IRecord clojure.lang.IDeref) | |
| (prefer-method clojure.pprint/simple-dispatch clojure.lang.IPersistentMap clojure.lang.IDeref) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Traditional latkes (pareve) | |
| This recipe is from one of my favorite cookbooks, “Jewish Cooking in America,” by Joan Nathan. These are thin “pancakes” with no flour or matzo meal. | |
| 2 pounds russet (baking) or Yukon Gold potatoes | |
| 1 medium onion | |
| 1-1/2 cups chopped scallions, including the green part |
NewerOlder