Skip to content

Instantly share code, notes, and snippets.

View ZiggyMaes's full-sized avatar

Ziggy Maes ZiggyMaes

View GitHub Profile
using OpenSSL.X509Certificate2Provider;
using System;
using System.IO;
using System.Net.Security;
using System.Security.Cryptography.X509Certificates;
using WebSocketSharp;
namespace FcdConsole
{
class Program
@ZiggyMaes
ZiggyMaes / radosgw-object-shard-checker.sh
Last active September 8, 2022 19:20
Detect oversized buckets on Ceph
#!/bin/bash
BUCKETS=($(radosgw-admin bucket list | jq -r .[]))
OVERSIZED_BUCKETS=0
for BUCKET in "${BUCKETS[@]}"
do
OBJECT_SIZE=$(radosgw-admin bucket stats --bucket=${BUCKET} | jq -r '.usage["rgw.main"].num_objects')
SHARDS=$(radosgw-admin bucket stats --bucket=${BUCKET} | jq -r .max_marker | awk -F "," '{print $NF}' | sed 's/[^0-9]*//g')
@ZiggyMaes
ZiggyMaes / radosgw-gc-bucket-indexes.sh
Created January 28, 2019 12:55 — forked from wido/radosgw-gc-bucket-indexes.sh
Ceph RADOS Gateway bucket index garbage collection
#!/bin/bash
#
# Find orphaned bucket index objects in the RGW bucket index pool
# and clean them up if they do not belong to a bucket
#
# Author: Wido den Hollander <[email protected]>
#
INDEX_POOL=$1

Keybase proof

I hereby claim:

  • I am ziggymaes on github.
  • I am ziggymaes (https://keybase.io/ziggymaes) on keybase.
  • I have a public key whose fingerprint is E37F 87FB 75AA 53D5 7885 1ACB 7299 DBD8 6392 95B0

To claim this, I am signing this object:

@ZiggyMaes
ZiggyMaes / project-labo
Created May 2, 2016 05:25
NewMedia-project-labo
import g4p_controls.G4P;
import g4p_controls.GAlign;
import g4p_controls.GButton;
import g4p_controls.GCScheme;
import g4p_controls.GEvent;
import g4p_controls.GLabel;
import org.gamecontrolplus.Configuration;
import org.gamecontrolplus.ControlDevice;
import org.gamecontrolplus.ControlIO;