Skip to content

Instantly share code, notes, and snippets.

View rileyseaburg's full-sized avatar
🐢
Slow and steady wins the race.

Riley Seaburg rileyseaburg

🐢
Slow and steady wins the race.
View GitHub Profile
@rileyseaburg
rileyseaburg / Concept_First_CodeGen.ipynb
Last active January 18, 2026 17:51
Concept-First Code Generation: JEPA-style concept prediction for code (VL-JEPA inspired)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@rileyseaburg
rileyseaburg / RLM_Finetune_Qwen3_4B.ipynb
Last active January 18, 2026 02:42
Fine-tune Qwen3-4B for Recursive Language Models (RLM) - Infinite Context
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@rileyseaburg
rileyseaburg / install-postgres-ubuntu-22-04.sh
Last active July 2, 2023 13:51
Install Postgres on Ubuntu
#!/bin/sh
# Get database name from user
read -p "Enter database name: " dbname
# Prompt user for the password for the default PostgreSQL user (postgres)
read -s -p "Enter password for the default PostgreSQL user (postgres): " password
echo
# Update package lists
@rileyseaburg
rileyseaburg / install-nginx-ubuntu.sh
Last active November 23, 2022 09:22
Install and configure nginx completely from source and create systemd service.
#!/bin/bash
# PCRE version 10.40
wget https://github.com/PCRE2Project/pcre2/releases/download/pcre2-10.40/pcre2-10.40.tar.gz && tar xzvf pcre2-10.40.tar.gz
# zlib version 1.2.13
wget https://www.zlib.net/zlib-1.2.13.tar.gz && tar xzvf zlib-1.2.13.tar.gz
# OpenSSL version 1.1.0h
wget https://www.openssl.org/source/openssl-1.1.0h.tar.gz && tar xzvf openssl-1.1.0h.tar.gz
sudo add-apt-repository -y ppa:maxmind/ppa
@rileyseaburg
rileyseaburg / install_docker_ubuntu_22_04.sh
Created August 20, 2022 13:51
Install Docker on Ubuntu 22.04
# Shell script to install docker on Ubuntu 22.04
#!/bin/bash
sudo apt-get update
sudo apt-get install -y apt-transport-https ca-certificates curl software-properties-common gnupg lsb-release
sudo mkdir -p /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
echo \
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt-get update
@rileyseaburg
rileyseaburg / gettter.dart
Last active August 12, 2022 07:13
Dart Stream Getters
import 'dart:async';
/// Demontrates how to conviently access stream data with Getters.
void main() {
final bloc = Bloc();
/// Manually update from stream
// bloc.emailController.sink.add("my new email");
/// Listen for the email to change and print the value.
@rileyseaburg
rileyseaburg / index.html
Last active August 12, 2022 04:47
Validate User Input Using Streams in Dart
<form>
<h4>Guess the Word<h4>
<input/>
<button>Guess</button>
<div id="error" ></div>
</form>
@rileyseaburg
rileyseaburg / index.html
Created August 12, 2022 04:28
Dart Print Form Input
<form>
<h4>Guess the Word<h4>
<input/>
<button>Guess</button>
<div id="error" ></div>
</form>
@rileyseaburg
rileyseaburg / index.html
Created August 12, 2022 04:10
Stream 'Take' and 'Where' Functions in Dart
<form>
<h4>Guess the Word<h4>
<input/>
<button>Guess</button>
</form>
@rileyseaburg
rileyseaburg / stream.dart
Created August 11, 2022 20:16
Dart Streams Example with a Cake Factory
import 'dart:async';
class Cake {}
class Order {
String type;
Order(this.type);
}
void main() {