This file contains 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
{ | |
"models": [ | |
{ | |
"model": "claude-3-5-sonnet-20240620", | |
"provider": "anthropic", | |
"apiKey": "", | |
"title": "Claude 3.5 Sonnet" | |
}, | |
{ | |
"title": "Llama 3.1 8B", |
This file contains 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
"$schema" = "https://starship.rs/config-schema.json" | |
# colorscheme | |
# | |
# #2E3440 | |
# #3B4252 | |
# #434C5E | |
# #4C566A | |
# #D8DEE9 | |
# #E5E9F0 |
This file contains 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
# vim:filetype=ruby | |
# colours | |
BLACK = "\001\e[0;30m\002" | |
RED = "\001\e[0;31m\002" | |
GREEN = "\001\e[0;32m\002" | |
YELLOW = "\001\e[0;33m\002" | |
BLUE = "\001\e[0;34m\002" | |
MAGENTA = "\001\e[0;35m\002" | |
CYAN = "\001\e[0;36m\002" |
This file contains 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 -e | |
QUERY='{ | |
search(type: ISSUE, query: "is:pr state:closed repo:clio/grow", first: 100) { | |
nodes { | |
... on PullRequest { | |
title | |
number | |
additions | |
deletions |
This file contains 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 | |
# Simple file refactoring for a c project, not intended for use, just | |
# preserving something I've used a couple of times. | |
function __refactor { | |
dir=$(echo $1 | sed 's/\/$//') | |
files=$(find $dir -type f -regex ".*\.[ch]") | |
for file in $files; do | |
new=$(basename $file | sed "s/$2/$3/") |
This file contains 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
# curl -fLo ~/.gitconfig --create-dirs https://gist.github.com/geoffjay/483828b55925045fc39687bbba573b2f | |
[user] | |
name = Geoff Johnson | |
email = [email protected] | |
[alias] | |
ci = commit -a | |
co = checkout | |
cop = checkout @{-1} |
This file contains 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
/** | |
* compile: | |
* gcc -g -o json-hashtable `pkg-config --cflags --libs json-glib-1.0` json-hashtable.c | |
* | |
* memcheck: | |
* G_SLICE=always-malloc G_DEBUG=gc-friendly valgrind --tool=memcheck \ | |
* --leak-check=full --show-leak-kinds=definite --errors-for-leak-kinds=definite \ | |
* --leak-resolution=high --num-callers=20 \ | |
* --suppressions=/usr/share/glib-2.0/valgrind/glib.supp \ | |
* ./json-hashtable |
This file contains 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
pub fn recv(&mut self) -> Result<Vec<Vec<u8>>, Box<Error>> { | |
let poller = self.poller.as_mut().unwrap(); | |
let sock = poller.wait::<ZSock>(Some(self.timeout.as_millis() as u32)); | |
let mut resp: Vec<Vec<u8>> = Vec::new(); | |
match sock { | |
Some(mut sock) => { | |
let msg = ZMsg::recv::<ZSock>(&mut sock).unwrap(); | |
sock.flush(); |
This file contains 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 | |
sudo dnf -y install https://dl.folkswithhats.org/fedora/$(rpm -E %fedora)/RPMS/fedy-release.rpm | |
sudo dnf -y install https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm https://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm | |
sudo dnf -y install fedy | |
cd /tmp | |
git clone https://github.com/coanda/dactl.plugin | |
git clone https://github.com/coanda/dactl-mcc.plugin | |
sudo cp -R dactl.plugin /usr/share/fedy/plugins/ | |
sudo cp -R dactl-mcc.plugin /usr/share/fedy/plugins/ |
This file contains 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
import { makeExecutableSchema } from 'graphql-tools' | |
import Configuration from './configuration' | |
import resolvers from '../resolvers' | |
const Query = ` | |
type Query { | |
configuration(id: String!): Configuration | |
configurations: [Configuration] | |
} |
NewerOlder