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
package main | |
import ( | |
"fmt" | |
"log" | |
"os" | |
"github.com/drone/drone-yaml/yaml" | |
"github.com/goccy/go-graphviz" | |
"github.com/goccy/go-graphviz/cgraph" |
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
package main | |
import ( | |
"image" | |
_ "image/gif" | |
_ "image/jpeg" | |
_ "image/png" | |
"io" | |
"mime" |
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
#include "gps.h" | |
HardwareSerial GPSSerial(1); | |
void gps::init() | |
{ | |
GPSSerial.begin(9600, SERIAL_8N1, GPS_TX, GPS_RX); | |
GPSSerial.setTimeout(2); | |
} |
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
theme = "solarized_dark" | |
[editor] | |
true-color = true | |
bufferline = "multiple" | |
cursorline = true | |
color-modes = true | |
[editor.cursor-shape] | |
insert = "bar" |
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
git clone https://github.com/ggerganov/llama.cpp | |
cd llama.cpp | |
make -j | |
pip3 install huggingface-hub | |
huggingface-cli download TheBloke/zephyr-7B-alpha-GGUF zephyr-7b-alpha.Q5_K_M.gguf --local-dir ./models --local-dir-use-symlinks False | |
export MODEL=./models/zephyr-7b-alpha.Q5_K_M.gguf | |
./examples/server-llama2-13B.sh | |
# go to http://localhost:8080 |
Note to quickly deploy Envoy Gateway for experiment on a Mac using Colima (or a Linux)
# clean up colima install BEWARE!! older version of colima sometimes are failing
rm -rf ~/.colima ~/.lima
# start colima with kubernetes option and disable Traefik
colima start --kubernetes --kubernetes-disable=traefik --arch aarch64 --vm-type=vz --vz-rosetta --cpu 2 --memory 4
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
-- rename files to parquet: find . -type f -exec mv {} {}.parquet \; | |
-- easier for tools detection like tad | |
LOAD spatial; | |
SELECT count(*) | |
from read_parquet('./theme=places/type=*/*.parquet', filename=true, hive_partitioning=1); | |
SELECT ST_AsText(ST_GeomFromWkb(geometry)) AS geometry, JSON(names) AS names, JSON(categories)->'$.main' AS category | |
from read_parquet('./theme=places/type=*/*.parquet', filename=true, hive_partitioning=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
qemu-system-aarch64 -m 4096M -cpu host -M virt,accel=hvf \ | |
-bios edk2-aarch64-code.fd -serial mon:stdio -nographic \ | |
-drive if=virtio,file=FreeBSD.qcow2,id=hd0 \ | |
-device virtio-net,netdev=vmnic \ | |
-netdev user,id=vmnic,hostfwd=tcp:127.0.0.1:9022-:22 | |
# on the guest service sshd onestart or enable sshd in rc.conf | |
# bios can be found here wget https://lxr.missinglinkelectronics.com/qemu/+save\=pc-bios/edk2-aarch64-code.fd.bz2 |
NewerOlder