Skip to content

Instantly share code, notes, and snippets.

View leseb's full-sized avatar
👺

Sébastien Han leseb

👺
View GitHub Profile
bash-4.4$ radosgw-admin --no-mon-config --rgw-backend-store=dbstore --dbstore-db-dir=/var/lib/ceph/radosgw/data user create --uid=leseb --display-name=leseb
did not load config file, using default settings.
2022-06-22T09:10:05.800+0000 7f2ed43eb500 -1 Errors while parsing config file!
2022-06-22T09:10:05.800+0000 7f2ed43eb500 -1 can't open ceph.conf: (2) No such file or directory
2022-06-22T09:10:05.800+0000 7f2ed43eb500 -1 Errors while parsing config file!
2022-06-22T09:10:05.800+0000 7f2ed43eb500 -1 can't open ceph.conf: (2) No such file or directory
2022-06-22T09:10:05.801+0000 7f2ed43eb500 0 rgw dbstore: DB initialization full db_path(/var/lib/ceph/radosgw/data/dbstore-default_ns)
2022-06-22T09:10:05.801+0000 7f2ed43eb500 0 rgw DBStore backend: Opened database(/var/lib/ceph/radosgw/data/dbstore-default_ns.db) successfully
2022-06-22T09:10:05.801+0000 7f2ed43eb500 0 rgw DBStore backend: DB successfully initialized - name:/var/lib/ceph/radosgw/data/dbstore-default_ns
2022-06-22T09:10:05.802+0000 7f2ed43e
debug 2022-07-20T12:43:59.262+0000 7f999b93b700 1 ====== starting new request req=0x7f9a58b12650 =====
debug 2022-07-20T12:43:59.266+0000 7f999412c700 1 ====== req done req=0x7f9a58b12650 op status=0 http_status=200 latency=0.003999975s ======
debug 2022-07-20T12:43:59.266+0000 7f999412c700 1 beast: 0x7f9a58b12650: 172.17.0.1 - rook-ceph-internal-s3-user-checker-8f04e2b7-be8a-473f-8181-83f0eb753389 [20/Jul/2022:12:43:59.262 +0000] "PUT /rook-ceph-bucket-checker-8f04e2b7-be8a-473f-8181-83f0eb753389 HTTP/1.1" 200 0 - "aws-sdk-go/1.40.21 (go1.17.11; linux; amd64)" - latency=0.003999975s
use log::info;
use nix::{
sched::{unshare, CloneFlags},
sys::stat::stat,
unistd::{getpid, getppid, gettid},
};
pub type StratisResult<T> = Result<T, StratisError>;
#[derive(Debug)]
pub enum StratisError {
@leseb
leseb / weekly-report.py
Created May 7, 2025 14:42
weekly-report.py
import requests
from datetime import datetime, timedelta
import json
USERNAME = "YOUR_USERNAME_HERE" # or your GitHub username
TOKEN = "YOUR_TOKEN_HERE"
HEADERS = {
'Authorization': f'bearer {TOKEN}',
'Content-Type': 'application/json',
}