Skip to content

Instantly share code, notes, and snippets.

View jmikedupont2's full-sized avatar
😀
Thanks for the follows! Have a nice day.

Mike DuPont jmikedupont2

😀
Thanks for the follows! Have a nice day.
View GitHub Profile
This file has been truncated, but you can view the full file.
[
{
"word": "ZOS",
"norm": 334.24116662735787,
"emoji": "\ud83d\udcb0",
"embedding": [
0.41360861349893874,
0.3309204284679603,
0.37258456238677384,
// untested ai generated from https://stackoverflow.com/a/275295/7026063
#include <iostream>
#include <ostream>
// Conditional template
template<bool C, typename A, typename B>
struct Conditional {
typedef A type;
};
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Prime Number Polygons</title>
<style>
body {
margin: 0;
padding: 20px;
table agents {
id uuid [pk, not null, default: `gen_random_uuid()`]
enabled boolean [not null, default: true]
createdAt timestamptz [not null, default: `now()`]
updatedAt timestamptz [not null, default: `now()`]
name text
username text
system text
bio jsonb [not null]
message_examples jsonb [default: `'[]'::jsonb`]
import { PGlite } from "@electric-sql/pglite";
const db = new PGlite("file:///var/run/agent/database/");
//let res = await db.query("select table_schema, count(*) from information_schema.tables group by table_schema;");
//let res = await db.query("select table_name,table_schema from information_schema.tables where table_schema = 'public';");
let res = await db.query("select * from public.worlds;");
//console.log(res)
res.rows.forEach((row) => {
@jmikedupont2
jmikedupont2 / transfer_ssm_file.sh
Last active March 3, 2025 17:34 — forked from lukeplausin/transfer_ssm_file.sh
Transfer a file to EC2 SSM instance without using S3 (SSM only)
# This script will explain how to transfer a file to EC2 using SSM ONLY!
# You will need to have permission to run SSM commands on the target machine and have sudo access as well
# Infos
INSTANCE_ID=i-1234567890
FILE_NAME=/opt/agent/strace.log
# Step 1: Run command on machine to install netcat and dump from port to filename
# < Start session
INF initializing upgrade `v0.32.0`
INF initializing upgrade `v0.34.0`
INF initializing upgrade `v0.24.0`
INF initializing upgrade `akash_v0.15.0_cosmos_v0.44.x`
INF initializing upgrade `v0.20.0`
INF initializing upgrade `v0.26.0`
INF initializing upgrade `v0.28.0`
INF initializing upgrade `v0.30.0`
INF starting node with ABCI Tendermint in-process
INF service start impl=multiAppConn module=proxy msg={}
00one00 [email protected]:00one00/eliaz.git (fetch)
01xcoder [email protected]:01xcoder/eliza.git (fetch)
0glabs [email protected]:0glabs/0g-eliza.git (fetch)
0hexquant [email protected]:0hexquant/eliza.git (fetch)
0x0000369 [email protected]:0x0000369/eliza.git (fetch)
0x1rubck [email protected]:0x1rubck/eliza.git (fetch)
0x2bc [email protected]:0x2bc/eliza.git (fetch)
0x311decker [email protected]:0x311decker/eliza.git (fetch)
0x330a [email protected]:0x330a/eliza.git (fetch)
0x369D [email protected]:0x369D/eliza.git (fetch)
All dependencies: 11.48 MiB
All dependencies: 11.73 MiB
All dependencies: 11.74 MiB
All dependencies: 11.85 MiB
All dependencies: 122.02 MiB
All dependencies: 12.29 MiB
All dependencies: 12.44 MiB
All dependencies: 12.48 MiB
All dependencies: 13.39 MiB
cat <<END > ./run.sh
#!/bin/bash
sudo apt update
export DEBIAN_FRONTEND=noninteractive
apt-get install -y emacs-nox tmux jq
END
sudo bash ./run.sh