Skip to content

Instantly share code, notes, and snippets.

I may be slow to respond.

Harshavardhana harshavardhana

I may be slow to respond.
View GitHub Profile
harshavardhana /
Last active Mar 3, 2020
Shows given key name and set count, what is the set index used.
#!/usr/bin/env python3
import argparse
import binascii, sys
parser = argparse.ArgumentParser(description='Set indexer')
parser.add_argument('key', metavar='KEY', type=str, help='key name for the hash index')
parser.add_argument('setcount', metavar='SET', type=int, help='total set counts')
args = parser.parse_args()
harshavardhana / nuxeo-web-ui.diff
Last active Feb 16, 2020
Nuxeo patches to support MinIO - AssumeRole
View nuxeo-web-ui.diff
diff --git a/addons/amazon-s3-online-storage/index.js b/addons/amazon-s3-online-storage/index.js
index ce3b044e..6105b299 100644
--- a/addons/amazon-s3-online-storage/index.js
+++ b/addons/amazon-s3-online-storage/index.js
@@ -98,6 +98,8 @@ class S3Provider {
credentials: new AWS.Credentials(options.awsSecretKeyId, options.awsSecretAccessKey, options.awsSessionToken),
region: options.region,
+ endpoint: options.endpoint,
+ s3ForcePathStyle: options.pathstyleAccessEnabled || false,

Configure mc (snowball)

Amazon Snowball implements restricted S3 APIs. New release of mc automatically detects if its a snowball endpoint and turns-on legacy APIs.

Before we begin get the snowball credentials as mentioned here

Secured (recommended)

Before you configure to use HTTPS endpoint make sure to obtain the current Snowball Edge certificate following this document, once obtained same the certificate as shown below

#!/usr/bin/env python3
import argparse
# initiate the parser
parser = argparse.ArgumentParser()
parser.add_argument("-V", "--version", help="0.0.1", action="store_true")
parser.add_argument("--total_disks", "-t", type=int, help="set total disks in a MinIO deployment")
parser.add_argument("--storage-parity", "-p", type=int, help="set total partity per sets")
~ kubectl create secret generic my-secret --from-file=config.yml

~ kubectl apply -f minio1.yml
~ kubectl apply -f minio2.yml
~ kubectl apply -f minio3.yml

~ kubectl apply -f radio.yml
View radio.yml
- local:
bucket: radiobucket1
access_key: Q3AM3UQ867SPQQA43P2F
secret_key: zuf+tfteSlswRu7BJ86wekitnifILbZam1KYY3TG
- bucket: bucket1
access_key: TX8mIIOGC12QBMJ45F0Z
secret_key: 9ule1ga5JMfMmQXCoEPNcM2jij
View expansion.yaml
version: '3.7'
# starts 4 docker containers running minio server instances. Each
# minio server's web interface will be accessible on the host at port
# 9001 through 9004.
image: y4m4/minio:latest
- data1-1:/data1
harshavardhana /
Last active Dec 11, 2019 — forked from simonewebdesign/
Install Quake 3: Arena on a mac
# Install Quake 3: Arena on a mac
set -e # exit on error
if [ ! -d ${HOME}/ioq3 ]; then
(cd ${HOME} && git clone
(cd ${HOME}/ioq3 && git pull --rebase)
View xl-meta_test.go
* Minio Cloud Storage, (C) 2017 Minio, Inc.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* Unless required by applicable law or agreed to in writing, software

Start vault with file backend

~ docker run --rm --cap-add=IPC_LOCK --name vault -e 'VAULT_LOCAL_CONFIG={"api_addr": "", "backend": {"file": {"path": "/vault/file"}}, "default_lease_ttl": "168h", "max_lease_ttl": "720h",  "listener": { "tcp": { "address": "", "tls_disable": 1 } }, "ui": true}' vault server
==> Vault server configuration:

             Api Address:
                     Cgo: disabled
         Cluster Address:
              Listener 1: tcp (addr: "", cluster address: "", max_request_duration: "1m30s", max_request_size: "33554432", tls: "disabled")
               Log Level: info
You can’t perform that action at this time.