Skip to content

Instantly share code, notes, and snippets.

git clone https://github.com/cpacker/MemGPT.git
conda create -n memgpt python=3.10
conda activate memgpt
cd memgpt
pip install -r requirements.txt
export OPENAI_API_KEY="YOUR_API_KEY"
# download .txt docs from: https://huggingface.co/datasets/MemGPT/example-sec-filings/tree/main
# place in "memgpt/personas/examples/preload_archival/*.txt"
python3 main.py --archival_storage_files_compute_embeddings="memgpt/personas/examples/preload_archival/*.txt" --persona=memgpt_doc --human=basic
@subfuzion
subfuzion / curl.md
Last active March 28, 2024 23:11
curl POST examples

Common Options

-#, --progress-bar Make curl display a simple progress bar instead of the more informational standard meter.

-b, --cookie <name=data> Supply cookie with request. If no =, then specifies the cookie file to use (see -c).

-c, --cookie-jar <file name> File to save response cookies to.

@silver-xu
silver-xu / ts-boilerplate.md
Last active March 28, 2024 23:08
Setup a Node.js project with Typescript, ESLint, Prettier, Husky

Setup a Node.js project with Typescript, ESLint, Prettier, Husky

1_D8Wwwce8wS3auLAiM3BQKA

Starting a personal node project could be easy; starting a team node project could be challenging.

I am a developer currently working in SEEK Australia.

In my experience, common mistakes developer make when starting a projects are:

  • No Linting
@ditzel
ditzel / PhysicsHelper.cs
Created January 20, 2019 16:54
Unity Helper for Physic Functions
using UnityEngine;
namespace Ditzelgames
{
public static class PhysicsHelper
{
public static void ApplyForceToReachVelocity(Rigidbody rigidbody, Vector3 velocity, float force = 1, ForceMode mode = ForceMode.Force)
{
if (force == 0 || velocity.magnitude == 0)
@PaulBraetz
PaulBraetz / booklist.md
Last active March 28, 2024 23:07
Cool Books I Like
  • CLR via C# 9780735667457
  • Refactoring 9780134757599
  • The Practice Of Programming 9780201615869
  • Everyware 9780321384010
  • Simple And Usable 9780134777603
  • C# In Depth 9781617294532
  • Dependency Injection 9781617294730
  • Design Patterns GOF 9780201633610
  • The C Programming Language 9780131103627
  • Learning Domain-Driven Design 9781098100131
@0xdevalias
0xdevalias / _deobfuscating-unminifying-obfuscated-web-app-code.md
Last active March 28, 2024 23:06
Some notes and tools for reverse engineering / deobfuscating / unminifying obfuscated web app code
@astronotter
astronotter / io_export_anim.py
Created July 10, 2020 08:46
Blender exporter for saving animations as a csv file.
bl_info = {
"name": "Export Camera Animation",
"author": "ottle",
"version": (0, 1),
"blender": (2, 80, 0),
"location": "File > Export > Animation (.csv)",
"description": "Export Animation (.csv)",
"warning": "",
"wiki_url": "",
"support": 'COMMUNITY',
@codeSTACKr
codeSTACKr / mongodb_cheat_sheet_2022.md
Created January 10, 2022 22:54
MongoDB Cheat Sheet 2022
@gtallen1187
gtallen1187 / slope_vs_starting.md
Created November 2, 2015 00:02
A little bit of slope makes up for a lot of y-intercept

"A little bit of slope makes up for a lot of y-intercept"

01/13/2012. From a lecture by Professor John Ousterhout at Stanford, class CS140

Here's today's thought for the weekend. A little bit of slope makes up for a lot of Y-intercept.

[Laughter]

@bgolus
bgolus / WorldNormalFromDepthTexture.shader
Last active March 28, 2024 22:54
Different methods for getting World Normal from Depth Texture, without any external script dependencies.
Shader "WorldNormalFromDepthTexture"
{
Properties {
[KeywordEnum(3 Tap, 4 Tap, Improved, Accurate)] _ReconstructionMethod ("Normal Reconstruction Method", Float) = 0
}
SubShader
{
Tags { "RenderType"="Transparent" "Queue"="Transparent" }
LOD 100