diff options
| author | mjkwiatkowski <mati.rewa@gmail.com> | 2026-07-26 22:55:57 +0200 |
|---|---|---|
| committer | mjkwiatkowski <mati.rewa@gmail.com> | 2026-07-26 22:55:57 +0200 |
| commit | 6c9d78750f1230c368564377337e6d671768c9fb (patch) | |
| tree | 0bfeb8ea665d5caaead7e70489611cd61f22d436 /shell_scripts/useful_commands.sh | |
| parent | ab7d7c84652ec4b0ac1081b76add56824de851f1 (diff) | |
feat: updated the README.md file
Diffstat (limited to 'shell_scripts/useful_commands.sh')
| -rw-r--r-- | shell_scripts/useful_commands.sh | 25 |
1 files changed, 0 insertions, 25 deletions
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 - |
