Skip to content

Instantly share code, notes, and snippets.

View luketn's full-sized avatar

Luke Thompson luketn

View GitHub Profile
@luketn
luketn / cdntest.js
Created November 18, 2022 04:18
CDN Test Script
var API_PREFIX = '/api/v1';
var stats = [];
var TEST_CDN = '';
function recordStat(url, cdnName, statName, timeInMillis) {
stats.push({
"name": statName,
"cdn": cdnName,
"timeTakenMillis": timeInMillis
});
@luketn
luketn / gist:99302cf20039a56772ff9eef707dede7
Created March 15, 2024 13:20
Install Docker and Docker Compose on AL2023
dnf install -y docker git
DOCKER_CONFIG=${DOCKER_CONFIG:-$HOME/.docker}
mkdir -p $DOCKER_CONFIG/cli-plugins
curl -SL https://github.com/docker/compose/releases/download/v2.24.7/docker-compose-linux-x86_64 -o $DOCKER_CONFIG/cli-plugins/docker-compose
chmod +x $DOCKER_CONFIG/cli-plugins/docker-compose
systemctl start docker
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>HNSW Graph Visualization</title>
<script src="https://d3js.org/d3.v7.min.js"></script>
<style>
.link {
stroke: #999;
stroke-opacity: 0.6;
@luketn
luketn / lucene-luke.md
Last active April 28, 2025 22:28 — forked from vladak/lucene-luke.md
How to run Luke

Lucene has Luke built in - to run it from the code I use this command:

git clone https://github.com/apache/lucene.git Lucene
cd Lucene
./gradlew assemble
java -cp './lucene/luke/build/lucene-luke-11.0.0-SNAPSHOT/*' \
    -Xmx1024m -Xms512m -XX:MaxMetaspaceSize=256m org.apache.lucene.luke.app.desktop.LukeMain