Skip to content

Instantly share code, notes, and snippets.

View ArunVenkata's full-sized avatar
:shipit:
Focusing

Arun V ArunVenkata

:shipit:
Focusing
  • -
  • Pittsburgh, United States
  • LinkedIn in/arunvv
View GitHub Profile
@ArunVenkata
ArunVenkata / install_cassandra.sh
Last active April 7, 2024 01:11
Install Apache Cassandra
#!/bin/bash
# Installs the latest Version of Apache Cassandra
sudo apt-get update
sudo apt-get install openjdk-8-jdk -y
echo "deb [signed-by=/etc/apt/keyrings/apache-cassandra.asc] https://debian.cassandra.apache.org 41x main" | sudo tee -a /etc/apt/sources.list.d/cassandra.sources.list
sudo curl -o /etc/apt/keyrings/apache-cassandra.asc https://downloads.apache.org/cassandra/KEYS
sudo apt-get update
@ArunVenkata
ArunVenkata / scripts.md
Last active September 20, 2022 06:26
Useful python snippets

Note: Modify and use as needed. Suggestions for improvements are welcome!

Parameter validator - useful to validate parameters for any api/function etc.

""" Usage:
from uuid import UUID
print(check_mandatory_params(
    {"score": 7.5, "id": "e76cbfa0-06e6-4ad9-8209-3ae786cf344d", "name": "John" },
@ArunVenkata
ArunVenkata / sql-mem-usage.md
Last active April 13, 2020 05:27
Reducing memory usage of mysql server in ec2 linux instance

Reducing sql memory usage

Note: This link was followed for this answer.

This is primarily meant for low memory servers only. Before we go ahead with this, it is important to understand what exactly is mysql performance_schema.

This MySQL link defines performance_schema as follows:

>The MySQL Performance Schema is a feature for monitoring MySQL Server execution at a low level. The Performance Schema has these characteristics: