This is proof of concept how length of the labels in Graphviz impacts the layout.
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
local runscript=1 | |
while [ $runscript -eq 1 ]; do | |
./your-script | |
local exitcode=$? | |
if [ $status -eq 0 ]; then | |
runscript=1 | |
else | |
runscript=0 | |
fi | |
done |
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
#!/bin/bash | |
KEYSPACE=$1 | |
DATE=`date +"%Y-%m-%d--%H-%M-%S"` | |
FOLDER_NAME=${DATE}-daily | |
S3_BUCKET=s3://YOUR-S3-BUCKET | |
S3_BUCKET_PATH=cassandra/full/`date +"%Y/%m/%d/%H/%M"`/`cat /etc/hostname` | |
SNAPSHOTID=`uuidgen --time` | |
PGP_KEY_RECIPIENT=YOUR-PGP-KEY-RECIPIENT |
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
#!/bin/bash | |
while [ 1 ];do date -Iseconds | tr -d '\n';sudo nodetool netstats | grep Receiving | grep -Eo '[0-9]* bytes' | sed 's/ bytes//' | awk 'BEGIN {NODES=6;} NR%2==1 {TOTAL+=$0;} NR%2==0 {PROGRESS+=$0;} END {NODESRUNNING=NR/2;NODESDONE=NODES-NODESRUNNING;print " progress:", 100*(NODESDONE/NODES+(NODESRUNNING/NODES)*(PROGRESS/TOTAL)) "%", "running:", NODESRUNNING, "done:", NODESDONE;}';sleep 30;done |
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
#!/bin/python | |
from collections import namedtuple | |
from datetime import date, timedelta | |
import itertools | |
import logging | |
logging.basicConfig(level=logging.DEBUG) |
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
# Copyright 2016 Google Inc. All Rights Reserved. | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# | |
# Unless required by applicable law or agreed to in writing, software | |
# distributed under the License is distributed on an "AS IS" BASIS, |
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 -1 | |
commit 6aa11872c88481dfa2da151536317176c48f226c (HEAD -> dev, origin/dev, origin/HEAD) | |
Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> | |
Date: Tue Feb 22 19:38:12 2022 +0100 | |
build(deps): bump ajv from 6.6.2 to 6.12.6 (#12468) | |
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> | |
$ find . -type f -exec cat {} + | wc -l | |
307257 |
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
#!/bin/bash | |
# Executed on MacOSX | |
go build signal.go | |
./signal & | |
kill -INT $! | |
# Prints the "interrupt" and quits after 5 seconds, which is to be expected. |
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
$ sstabledump ./mykeyspace/mytable/mc-12109-big-Data.db | awk '/key/ {print counter, key;counter=0;key=$0;} /^ / {counter++;}' | sort -n | tail -n 40 |
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
package my.project.ssl; | |
import java.security.cert.CertificateException; | |
import java.security.cert.X509Certificate; | |
import java.util.List; | |
import javax.net.ssl.SSLContext; | |
import javax.net.ssl.X509TrustManager; | |
import com.google.common.collect.ImmutableList; |
NewerOlder