From 6c9d78750f1230c368564377337e6d671768c9fb Mon Sep 17 00:00:00 2001 From: mjkwiatkowski Date: Sun, 26 Jul 2026 22:55:57 +0200 Subject: feat: updated the README.md file --- shell_scripts/useful_commands.sh | 25 ------------------------- 1 file changed, 25 deletions(-) delete mode 100644 shell_scripts/useful_commands.sh (limited to 'shell_scripts/useful_commands.sh') diff --git a/shell_scripts/useful_commands.sh b/shell_scripts/useful_commands.sh deleted file mode 100644 index 503794a1..00000000 --- a/shell_scripts/useful_commands.sh +++ /dev/null @@ -1,25 +0,0 @@ -#!/bin/bash - -doas su postgres -# In this project we only use the ``opendc'' database. -psql -d opendc - -# Queries -# Selects everything from the topic which Kafka writes to. -SELECT * FROM postgres_topic; - -# Redis CLI -# Connect to Redis -redis-cli -h localhost -p 6379 -# Very useful tutorial https://redis.io/docs/latest/develop/data-types/streams/ -# https://redis.io/docs/latest/develop/tools/cli/ -# Returns all items in the Redis stream -XRANGE postgres_topic - + -XTRIM postgres_topic MAXLEN 0 -# https://codesignal.com/learn/courses/mastering-redis-for-high-performance-applications-with-java-and-jedis-1/lessons/redis-streams-with-java -# -# Creating a group for consumers to read from stream -XGROUP CREATE mystream mygroup 0 -# This is to periodically get updates from the server. -# https://medium.com/@manoel.al.amaro/understand-kotlin-flow-coroutines-by-implementing-server-side-sent-sse-9e190ff5f24f - -- cgit v1.2.3