Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View hansbogert's full-sized avatar

Hans van den Bogert hansbogert

View GitHub Profile
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-
#!/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])
version: '3.7'
services:
service:
build:
args:
FOO: iamhardcoded
version: '3.7'
services:
service:
build:
args:
FOO: ${FOO:? Set FOO !}
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}(, )?)*
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
@hansbogert
hansbogert / ceph-health.py
Last active October 2, 2017 11:38 — forked from wido/ceph-health.py
Ceph Health in Python in a loop
#!/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)
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
@hansbogert
hansbogert / gist:10975461
Created April 17, 2014 11:24
boost::compute::sort fails with 33 items
#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;