Skip to content

Instantly share code, notes, and snippets.

View vadmeste's full-sized avatar

Anis Eleuch vadmeste

View GitHub Profile
@vadmeste
vadmeste / spec.md
Last active October 14, 2019 15:34
ILM mc command line

Draft for ILM command in MC

Showing expiry rules

$ mc ilm expiry show myminio/bucket
Expiry rules:
   ID       Prefixes               Enabled    Days/Date
   fgh      ""                        ✓       10 May 2019
 gop "temporary_uploads/" ✓ 7 days
@vadmeste
vadmeste / mc-admin.md
Last active December 6, 2016 19:58 — forked from krisis/mc-admin.md

Management REST API

Authentication

  • AWS signatureV2

Versioning

  • Standard REST API versioning

List of management APIs

  • Service
@vadmeste
vadmeste / -
Last active August 26, 2016 14:31
#!/bin/bash
_nr_nodes=4
# Run minio docker instances in background and name them minio1, minio2, ..
for i in $(seq 1 $_nr_nodes); do
docker run -d --name=minio$i -it -v /home/vadmeste/:/root minio/distributed
done
# Check allocated ip addresses to minio instances
#!/bin/bash
usage() {
echo "USAGE: ./$0 NR_PARALLEL_MINIOS BACKEND_PATH"
exit -1
}
[[ -z "$1" ]] && usage || nr_parallel="$1"
[[ -z "$2" ]] && usage || backend_path="$2"
#!/bin/bash
decode() {
printf "%s-decoded-pwd" $(echo $2 | cut -c1-4)
}
main() {
read -p "Password: " passwd
while read ln; do
_cur_access_key=$(echo $ln | sed "s#.*accessKey:\([^,]*\),.*#\1#g" | tr -d ' ')