I hereby claim:
- I am hartsock on github.
- I am hartsocks (https://keybase.io/hartsocks) on keybase.
- I have a public key ASBDED6lN9AWuOs6q22wMJr0mV5Bzxv2nTeTIuO-W7O01wo
To claim this, I am signing this object:
| #!/usr/bin/env bash | |
| # | |
| # claude-dgx1 — run Claude Code but route inference to our local NVIDIA DGX | |
| # Spark (dgx1.home.lan) using the model currently loaded there, | |
| # instead of Anthropic. I use llama.cpp on my NVIDIA DGX Spark. | |
| # | |
| # This is a thin wrapper around the `claude` binary. At startup it asks the | |
| # llama.cpp model manager on dgx1 which model is currently `loaded`, then | |
| # re-points Claude Code's API at that endpoint and forces the model name — | |
| # without touching your real ~/.claude/settings.json. |
| #!/usr/bin/env bash | |
| # | |
| # codex-dgx1 — run Codex CLI but route inference to our local NVIDIA DGX Spark | |
| # (dgx1.home.lan) using the model currently loaded there, instead | |
| # of OpenAI. I use lama.cpp on my NVIDIA DGX Spark. | |
| # | |
| # This is a thin wrapper around the `codex` binary. At startup it asks the | |
| # llama.cpp model manager on dgx1 which model is currently `loaded`, then | |
| # re-points Codex's "model provider" at that endpoint and forces the model | |
| # name — without touching your real ~/.codex/config.toml. |
| export IP_ADDR=`ipconfig getifaddr en0` | |
| export PS1="%n@$IP_ADDR:%~ % # " | |
| export PATH="$HOME/bin:$PATH" |
| #!/usr/bin/env python3 | |
| import collections.abc | |
| import json | |
| import numbers | |
| import sys | |
| ############################################################################### | |
| # converts a stdin text stream of python data and json data into pure json | |
| # this script should eventually get deleted | |
| # this script has NO smart flow control |
| #!/usr/bin/env bash | |
| STOP=30 | |
| i=0; | |
| while [ $i -le $STOP ] | |
| do | |
| i=$((i+1)) | |
| echo -n "${i} :" | |
| exec "$@"& | |
| echo |
| import io | |
| import os | |
| from setuptools import find_packages, setup | |
| # Author @hartsock | |
| # | |
| # Why: copy into a directory with some python scripts you want to call a "library" | |
| # How: pip3 install -e . | |
| # |
| --- | |
| - hosts: photon | |
| remote_user: root | |
| tasks: | |
| - name: pip prerequisite | |
| command: bash -c "tdnf -y install python-pip" | |
| - name: python prerequisites | |
| command: bash -c "pip install -I pexpect" |
| // A small SSH daemon providing bash sessions | |
| // | |
| // Server: | |
| // cd my/new/dir/ | |
| // #generate server keypair | |
| // ssh-keygen -t rsa | |
| // go get -v . | |
| // go run sshd.go | |
| // | |
| // Client: |
| // This shows an example of how to generate a SSH RSA Private/Public key pair and save it locally | |
| package main | |
| import ( | |
| "crypto/rand" | |
| "crypto/rsa" | |
| "crypto/x509" | |
| "encoding/pem" | |
| "golang.org/x/crypto/ssh" |
I hereby claim:
To claim this, I am signing this object: