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
2021-08-13 20:24:14.719798 I | rookcmd: starting Rook v1.6.8 with arguments '/usr/local/bin/rook ceph operator' | |
2021-08-13 20:24:14.719875 I | rookcmd: flag values: --add_dir_header=false, --alsologtostderr=false, --csi-cephfs-plugin-template-path=/etc/ceph-csi/cephfs/csi-cephfsplugin.yaml, --csi-cephfs-provisioner-dep-template-path=/etc/ceph-csi/cephfs/csi-cephfsplugin-provisioner-dep.yaml, --csi-rbd-plugin-template-path=/etc/ceph-csi/rbd/csi-rbdplugin.yaml, --csi-rbd-provisioner-dep-template-path=/etc/ceph-csi/rbd/csi-rbdplugin-provisioner-dep.yaml, --enable-machine-disruption-budget=false, --help=false, --kubeconfig=, --log-flush-frequency=5s, --log-level=DEBUG, --log_backtrace_at=:0, --log_dir=, --log_file=, --log_file_max_size=1800, --logtostderr=true, --mon-healthcheck-interval=45s, --mon-out-timeout=5m0s, --one_output=false, --operator-image=, --service-account=, --skip_headers=false, --skip_log_headers=false, --stderrthreshold=2, --v=0, --vmodule= | |
2021-08-13 20:24:14.719879 I | cephcmd: starting Rook- |
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
#!/usr/bin/python3 | |
# Use as ./program <total-wealth-as-int> | |
import sys | |
SCALE_1_END=72797 | |
SCALE_2_END=1000000 | |
FREE=30846 | |
a=int(sys.argv[1]) |
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.7' | |
services: | |
service: | |
build: | |
args: | |
FOO: iamhardcoded |
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.7' | |
services: | |
service: | |
build: | |
args: | |
FOO: ${FOO:? Set FOO !} |
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
VERYGREEDYDATA (.|\n)* | |
SYMFONY_EXCEPTION [^:]* | |
SYMFONY_LOG_TYPE request|security|app|profiler|doctrine|event|budget|%{WORD} | |
SYMFONY_LOG_LEVEL DEBUG|INFO|WARNING|ERROR|CRITICAL|ALERT | |
SYMFONY_LOG %{SYMFONY_LOG_TYPE:log_type}\.%{SYMFONY_LOG_LEVEL:log_level} | |
SYMFONY_PARAMETER "[^"]*":( )?"[^"]*" | |
SYMFONY_PARAMETERS (%{SYMFONY_PARAMETER}(, )?)* |
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
actions: | |
1: | |
action: shrink | |
description: >- | |
Shrink logstash indices older than 21 days on the node with the most | |
available space, excluding the node named 'not_this_node'. | |
Delete each source index after successful shrink, then reroute the shrunk | |
index with the provided parameters. | |
options: | |
disable_action: False |
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
#!/usr/bin/env python | |
import time | |
import rados | |
import json | |
def get_cluster_health(r): | |
cmd = {"prefix":"status", "format":"json"} | |
ret, buf, errs = r.mon_command(json.dumps(cmd), b'', timeout=5) | |
result = json.loads(buf) |
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 --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)' --all |
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
#include <algorithm> | |
#include <iostream> | |
#include <vector> | |
#include <boost/compute/system.hpp> | |
#include <boost/compute/algorithm/copy.hpp> | |
#include <boost/compute/algorithm/sort.hpp> | |
#include <boost/compute/container/vector.hpp> | |
namespace compute = boost::compute; |