This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "3" | |
services: | |
scylla-node1: | |
container_name: scylla-node1 | |
image: scylladb/scylla:5.1.0 | |
restart: always | |
command: --seeds=scylla-node1 --smp 1 --memory 750M --overprovisioned 1 --api-address 0.0.0.0 | |
volumes: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gh pr list --state closed --search "created:>2023-03-01" -L 1000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DROP KEYSPACE mykeyspace ; | |
CREATE KEYSPACE mykeyspace WITH replication = {'class': 'NetworkTopologyStrategy', 'replication_factor' : 3} AND durable_writes = true; | |
USE mykeyspace; | |
CREATE TABLE heartrate_v10 ( | |
pet_chip_id uuid, | |
owner uuid, | |
time timestamp, | |
heart_rate int, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defn count-consecutive-doubles [word] | |
{word | |
(->> word | |
(partition-by identity) | |
(map count) | |
(filter #(>= % 2)) | |
count | |
)}) | |
(with-open [rdr (clojure.java.io/reader "/home/tzach/Downloads/words.txt")] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://gist.github.com/tzach/7486f1a0cc904c52f4514f20f14d2a97 | |
docker run --name some-scylla -d scylladb/scylla:5.2 --smp 1 --memory 750M --overprovisioned 1 | |
SEED=$(docker inspect --format='{{ .NetworkSettings.IPAddress }}' some-scylla) | |
docker run --name some-scylla2 -d scylladb/scylla:5.2 --smp 1 --memory 750M --overprovisioned 1 --api-address 0.0.0.0 --seeds="$SEED" | |
docker run --name some-scylla3 -d scylladb/scylla:5.2 --smp 1 --memory 750M --overprovisioned 1 --api-address 0.0.0.0 --seeds="$SEED" | |
docker exec -it some-scylla nodetool status | |
cd ~/projects/scylla-monitoring/ | |
## update scylla-monitoring/prometheus/scylla_servers.example.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit scylla-5.2.0.. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Scylla | |
docker cp some-scylla:/etc/scylla/scylla.yaml . | |
// update scylla.yaml | |
authenticator: PasswordAuthenticator | |
authorizer: CassandraAuthorizer | |
docker cp scylla.yaml some-scylla:/etc/scylla/scylla.yaml | |
docker exec -it some-scylla supervisorctl restart scylla |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Scylla | |
docker run --name some-scylla -d scylladb/scylla:2.1.3 | |
docker cp data.cql some-scylla:/data.cql | |
docker exec -it some-scylla cqlsh -f data.cql | |
### Spark | |
docker run -it -p 4040:4040 -p 8080:8080 -p 8081:8081 -p 10000:10000 -h spark --name=spark -d p7hb/docker-spark | |
docker exec -it spark /usr/local/spark-2.2.0-bin-hadoop2.7/sbin/start-thriftserver.sh \ | |
--conf hive.server2.thrift.bind.host=0.0.0.0 \ | |
--conf spark.cassandra.connection.host=172.17.0.2 \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var issuePrefix = "https://github.com/scylladb/scylladb/issues/" | |
function replaceWithLink(s) { | |
var regExp = new RegExp("([0-9]+)","gi"); | |
var isseuNumber = regExp.exec(s)[0]; | |
return ("#" + isseuNumber); | |
} | |
function test() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git log scylla-5.1.0..scylla-5.2.0-rc0 | grep -E -i '(fixes|fix|close|closes|closed|fixed|resolve|resolved|resolved) #' | grep -Eo '#[0-9]*' |
NewerOlder