Skip to content

Instantly share code, notes, and snippets.

@wxgeorge
wxgeorge / recursal+llm.md
Last active April 22, 2024 13:31
Using Recursal-hosted RWKV models on the Command Line

Using Recursal Models on the Command Line

Recursal provides an OpenAI compatible interface to their hosted RWKV models.

These can be easily configured to be accessible and interrogable through llm.

Specifically, suppose the Recursal dashboard is suggesting you use the following in your python code

from openai import OpenAI
@wxgeorge
wxgeorge / yk-tech.2020-01-09.md
Created January 10, 2020 21:50
Yukon Tech Collective January 2020 meetup notes

We investigated the tool jq.

Wes first encountered this as a query tool for JSON. Our probing with the tool lead us to believe that it is much more than this.

This author intends to investigate JSONPath in the future, as it feels targetted specifically at querying. jq is capable of arbitrary JSON transformations. There is also JMESpath which is described as query language for JSON (this author was under the impression JMESpath was also capable of JSON transformations, albeit a more limited set than jq allows for the expression of)

First we needed some JSON. @ryanagar noted the considerable breadth of Yukon GIS data. With the help of a query builder, we were able to pull down a blob, and the task for the group was to investigate it's structure w

@wxgeorge
wxgeorge / spring-adventure-notes.md
Last active January 25, 2019 22:31
debug log: some troubles involving DATABASE_URL, spring, guard and a constantly nuked dev database

The problem

Working on a rails application and a spring server is started with DATABASE_URL environment variable set, both development and test environments connect to that database. My test setup has a database wipe between tests.

I was using guard to run my tests, which made the initial diagnosis challenging.

Things I learned

  1. DATABASE_URL has special meaning for Active Record - it overrides any other configuration. This is tacitly understood - heroku will setup DATABASE_URL as an environment variable - but it is explicitly mentioned in the edge guides (describing v6).
#!/usr/bin/env python
def my_decorator(f):
def g(x):
return f(x, 22)
return g
def multi_valued_function(arg1, arg2=100):
print "multi_valued_function(%s,%s)" % (arg1, arg2)
#include "fixtures/PersistingTestFixture.h"
class FirmwareDownloadtests : public PersistingTestFixture {};
TEST_F(FirmwareDownloadTests, TestBasicHappyPath) {
// no cached image
// image is an upgrade
NclFirmwareVersion current_version = {0x01, 0x04, 0x00};