Skip to content

Instantly share code, notes, and snippets.

View smiklosovic's full-sized avatar

Štefan Miklošovič smiklosovic

View GitHub Profile
@smiklosovic
smiklosovic / pulls.py
Created May 20, 2024 11:17
gets all pulls which are not closed but they are resolved in jira
#!/usr/bin/env python3
import requests
import json
import jq
import re
pulls_url_template = "https://api.github.com/repos/apache/cassandra/pulls?state=open&per_page=100&page=%s"
@smiklosovic
smiklosovic / jira
Last active February 26, 2024 09:44
#!/usr/bin/env python3
import sys
import argparse
import json
import requests
import os
from jira import JIRA
from datetime import datetime, timezone
import random
@smiklosovic
smiklosovic / cici
Last active February 26, 2024 09:35
#!/usr/bin/env python3
import webbrowser
import subprocess
import hashlib
import argparse
import json
import requests
import jq
import os
fermat@thor:~/dev/cassandra/cassandra-instaclustr/cassandra/pylib$ ./cassandra-cqlsh-tests.sh /home/fermat/dev/cassandra/cassandra-instaclustr/cassandra
+ WORKSPACE=/home/fermat/dev/cassandra/cassandra-instaclustr/cassandra
+ '[' /home/fermat/dev/cassandra/cassandra-instaclustr/cassandra = '' ']'
+ PYTHON_VERSION=python3
+ export PYTHONIOENCODING=utf-8
+ PYTHONIOENCODING=utf-8
+ export PYTHONUNBUFFERED=true
+ PYTHONUNBUFFERED=true
+ export CASS_DRIVER_NO_EXTENSIONS=true
+ CASS_DRIVER_NO_EXTENSIONS=true
commit a1cd27e406b2671fd43600ab3bed060197348844
Author: DuyHai DOAN <[email protected]>
Date: Sat Apr 23 22:56:37 2016 +0200
Debug SASI OnDiskIndex structure
diff --git a/src/java/org/apache/cassandra/index/sasi/disk/AbstractTokenTreeBuilder.java b/src/java/org/apache/cassandra/index/sasi/disk/AbstractTokenTreeBuilder.java
index 9a1f7f1..d874467 100644
--- a/src/java/org/apache/cassandra/index/sasi/disk/AbstractTokenTreeBuilder.java
+++ b/src/java/org/apache/cassandra/index/sasi/disk/AbstractTokenTreeBuilder.java
Bootstrap 83edd7c0-e213-11ea-b653-b9aaf3de32ab
/127.0.0.2
Sending 6 files, 1868156 bytes total. Already fully sent 5 files (83.33%), 1166533 bytes total (62.44%) V
/tmp/dtests2841635694764269138/node1/data/netstats_test/test_table-6c309280e21311eaaf47b3bc3e4f6030/na-2-big-Data.db 131072/280912 bytes (46%) sent to idx:0/127.0.0.2
/tmp/dtests2841635694764269138/node1/data/netstats_test/test_table-6c309280e21311eaaf47b3bc3e4f6030/na-1-big-Data.db 264109/264109 bytes (100%) sent to idx:0/127.0.0.2
/tmp/dtests2841635694764269138/node1/data/netstats_test/test_table-6c309280e21311eaaf47b3bc3e4f6030/na-5-big-Data.db 220832/220832 bytes (100%) sent to idx:0/127.0.0.2
/tmp/dtests2841635694764269138/node1/data/netstats_test/test_table-6c309280e21311eaaf47b3bc3e4f6030/na-4-big-Data.db 269399/269399 bytes (100%) sent to idx:0/127.0.0.2
/tmp/dtests2841635694764269138/node1/data/system_auth/roles-5bc52802de2535edaeab188eecebb090
Adjusting node count to 2 for supplied network topology
DEBUG [node1_isolatedExecutor:1] node1 2020-08-18 19:31:08,683 DatabaseDescriptor.java:382 - Syncing log with batch mode
INFO [node1_isolatedExecutor:1] node1 2020-08-18 19:31:08,686 DatabaseDescriptor.java:414 - DiskAccessMode 'auto' determined to be mmap, indexAccessMode is mmap
INFO [node1_isolatedExecutor:1] node1 2020-08-18 19:31:08,688 DatabaseDescriptor.java:472 - Global memtable on-heap threshold is enabled at 10MB
INFO [node1_isolatedExecutor:1] node1 2020-08-18 19:31:08,688 DatabaseDescriptor.java:476 - Global memtable off-heap threshold is enabled at 1769MB
WARN 17:31:08 Small commitlog volume detected at '/tmp/dtests2876178479202265154/node1/commitlog'; setting commitlog_total_space_in_mb to 3981. You can override this in cassandra.yaml
WARN [node1_isolatedExecutor:1] node1 2020-08-18 19:31:08,697 DatabaseDescriptor.java:855 - Small commitlog volume detected at '/tmp/dtests2876178479202265154/node1/commitlog'; setting commitlog_total_sp
@smiklosovic
smiklosovic / spec.yaml
Last active June 3, 2020 14:05
Instaclustr Cassandra Sidecar spec
openapi: "3.0.3"
info:
description: "REST API for Cassandra Sidecar from Instaclustr"
version: "1.1.0"
title: "Instaclustr Cassandra Sidecar"
termsOfService: "https://github.com/instaclustr/cassandra-sidecar"
contact:
email: "[email protected]"
license:
name: "Apache 2.0"

Cassandra and Kafka workshop demo instructions

We recommend doing all the hands-on work including registering for Instaclustr account from Ubuntu VM image that was provided to you.

If you still do not have this image, then ask and we will provide the OVA image file to you.

Opening Instaclustr console website in VM makes it easy to copy connection credentials when connecting to Cassandra or Kafka clusters.

@smiklosovic
smiklosovic / ssl-certs.md
Created April 15, 2019 04:15 — forked from Eng-Fouad/ssl-certs.md
Generate self-signed PKCS#12 SSL certificate and export its keys using Java keytool and openssl.

Steps to generate self-signed PKCS#12 SSL certificate and export its keys:

1- Create PKCS#12 keystore (.p12 or .pfx file)

keytool -genkeypair -keystore myKeystore.p12 -storetype PKCS12 -storepass MY_PASSWORD -alias KEYSTORE_ENTRY -keyalg RSA -keysize 2048 -validity 99999 -dname "CN=My SSL Certificate, OU=My Team, O=My Company, L=My City, ST=My State, C=SA" -ext san=dns:mydomain.com,dns:localhost,ip:127.0.0.1
  • myKeystore.p12 = keystore filename. It can with .pfx extension as well.
  • MY_PASSWORD = password used for the keystore and the private key as well.
  • CN = commonName, it will be shown as certiciate name in certificates list.
  • OU = organizationUnit, department name for example.