Skip to content

Instantly share code, notes, and snippets.

View jarkko-hautakorpi's full-sized avatar

Jarkko jarkko-hautakorpi

View GitHub Profile
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
wget https://huggingface.co/datasets/MemGPT/example-sec-filings/blob/main/airbnb.txt -P memgpt/personas/examples/preload_archival
wget https://huggingface.co/datasets/MemGPT/example-sec-filings/blob/main/lyft.txt -P memgpt/personas/examples/preload_archival
wget https://huggingface.co/datasets/MemGPT/example-sec-filings/blob/main/uber.txt -P memgpt/personas/examples/preload_archival
@jarkko-hautakorpi
jarkko-hautakorpi / mysql_backup.sh
Created September 2, 2020 06:26 — forked from tleish/mysql_backup.sh
Bash Script to backup all MySQL databases
#!/bin/bash
#==============================================================================
#TITLE: mysql_backup.sh
#DESCRIPTION: script for automating the daily mysql backups on development computer
#AUTHOR: tleish
#DATE: 2013-12-20
#VERSION: 0.4
#USAGE: ./mysql_backup.sh
#CRON:
# example cron for daily db backup @ 9:15 am
#!/usr/bin/env ruby
require 'open-uri'
require 'pathname'
require 'json'
def strip_hash(f)
ext = f.extname
if ext.include?("?")

Create Root CA (Done once)

Create Root Key

Attention: this is the key used to sign the certificate requests, anyone holding this can sign certificates on your behalf. So keep it in a safe place!

openssl genrsa -des3 -out rootCA.key 4096
@jarkko-hautakorpi
jarkko-hautakorpi / build.sh
Last active July 13, 2018 18:42 — forked from aczid/build.sh
AVR build script for bleeding edge toolchain
# - requires git, svn, hg installed
# - will just build the bleeding edge of everything
export PREFIX=`pwd`
export PATH=$PATH:$PREFIX/bin/
export SRCDIR=$PREFIX/src/
# todo test if SRCDIR exists, then get the source
mkdir -p $SRCDIR
# get binutils/gdb, gmp, mpfr, mpc
<?
# Add following line in ".htaccess".
# php_value auto_prepend_file compat.php
$HTTP_SERVER_VARS = $_SERVER;
$HTTP_COOKIE_VARS = $_COOKIE;
$HTTP_POST_VARS = $_POST;
$HTTP_GET_VARS = $_GET;