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
### Example for updating Prometheus targets with out restart | |
#!/bin/bash | |
echo fs.aio-max-nr=1048576 | sudo tee /etc/sysctl.d/41-aio_max_nr.conf | |
sudo sysctl -p /etc/sysctl.d/41-aio_max_nr.conf | |
docker network create -d bridge scylla | |
cd scylla-monitoring |
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
(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
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
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
gh api -H "Accept: application/vnd.github+json" /repos/scylladb/scylladb/issues/10121 -q ."title",."url" | paste -d " " - - |
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