Skip to content

Instantly share code, notes, and snippets.

@britisharmy
britisharmy / rejson-for-ubuntu.md
Last active May 17, 2024 10:48 — forked from lmj0011/rejson-for-ubuntu.md
Building and Loading the ReJSON v2.2.0 Module on Linux Ubuntu 20.04 for Redis
git clone https://github.com/RedisJSON/RedisJSON.git

git checkout v2.2.0

sudo apt-get install -y clang

curl https://sh.rustup.rs -sSf | sh
@nmpowell
nmpowell / python-venv-script.bat
Last active March 28, 2024 01:27
Windows batch script to run a Python program or script within its virtual environment. This can be called from Windows Task Scheduler.
REM Windows batch script to run 1+ Python program/scripts, sequentially, within their virtual environment. This can be called from Windows Task Scheduler.
set original_dir=%CD%
set venv_root_dir="C:\Python-Venvs\env-name"
cd %venv_root_dir%
call %venv_root_dir%\Scripts\activate.bat
python your_python_script.py <arg1> <arg2> <arg3>
@lmj0011
lmj0011 / rejson-for-ubuntu.md
Last active August 30, 2023 05:50
Building and Loading the ReJSON v1 Module on Linux Ubuntu 16.04 for Redis

make sure you have at least redis v4.0+

redis-server --version

redis-cli --version

install the build-essential package

apt-get install build-essential