Cassandra common commands

By | June 20, 2025

Cassandra version brew list –versions cassandra brew info cassandra cassandra -v Starting Cassandra cassandra -f (foreground) or brew services start cassandra Checking if Cassandra is up brew services list | grep cassandra Connecting to Cassandra jdbc:cassandra://127.0.0.1:9042?localdatacenter=datacenter1 jdbc:cassandra://127.0.0.1:9042/system?localdatacenter=datacenter1 also works. cqlsh DESCRIBE KEYSPACES; DROP KEYSPACE keyspace_name;

DBeaver GUI for Cassandra

By | June 20, 2025

Trying to get a UI for Cassandra is not as easy as it should be. DbVisualizer is usually a good option but I had issues and git cloning https://github.com/avalanche123/cassandra-web had hoops to jump through as well. DataStax Studio and TablePlus are popular choices but are commercial options. DBeaver was highly recommended but upon installation, I… Read More »

How to install NodeJS

By | May 2, 2025

The current recommended way to install NodeJS can be seen on Node’s website. Use the script they provide by running: Curl will download the script and “| bash” or pipe bash will run the script immediately, as if you typed it out manually. Then run nvm install 22 (or whatever version you want to install).… Read More »

How virtual environments work in Python

By | February 6, 2025

In Python there are generally 2 options for creating virtual environments. (Virtual environments are a must by the way so I won’t go into the pros and cons. Trust me and just use it). venv Firstly, there is venv which is shipped with Python so you can think of it as a standard library. virtualenv… Read More »

How to install Python on MacOS

By | February 5, 2025

Installing pyenv (brew install pyenv) The first step is to install pyenv which is Python’s version management system. You can read more about where it came from and what it does here but in a nutshell, it is a project that was forked from rbenv and ruby-build, and modified for Python and it let’s you change your… Read More »

Chrome on Raspberry Pi

By | October 19, 2024

On a Pi device, Chromium is installed by default on version 9 (Stretch) and above. To find the version run: To update the browser version run: What apt does is inspects /etc/apt/sources.list.d/raspi.list and uses the repo there to search for binary packages to install. For example: http://archive.raspberrypi.org/debian/dists/bullseye/main/binary-arm64/Packages contains the link to the Chromium browswer