Skip to content

Instantly share code, notes, and snippets.

💭
I may be slow to respond.

Harshavardhana harshavardhana

💭
I may be slow to respond.
Block or report user

Report or block harshavardhana

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@harshavardhana
harshavardhana / minio-gateway-azure.bat
Last active Feb 8, 2018
Minio windows batch examples
View minio-gateway-azure.bat
rem This program starts the minio batch.
@echo off
setlocal
path=C:\programs\minio;%path%
set MINIO_ACCESS_KEY=accountname1
set MINIO_SECRET_KEY=secretForAccountName
call minio gateway azure --address=:9001 >c:\test\c1.out
endlocal
@harshavardhana
harshavardhana / upload-minio.html
Last active Dec 14, 2017
Upload to play.minio.io:9000 from browser using minio-js
View upload-minio.html
<!DOCTYPE html>
<html>
<head>
<title>Minio SDK for JavaScript - Sample Application</title>
@harshavardhana
harshavardhana / upload_upon_close.py
Created Nov 18, 2017
Watch for CLOSE events and upload the file to S3
View upload_upon_close.py
import inotify.adapters
from minio import Minio
from minio.error import ResponseError
minioClient = Minio('play.minio.io:9000',
access_key='Q3AM3UQ867SPQQA43P2F',
secret_key='zuf+tfteSlswRu7BJ86wekitnifILbZam1KYY3TG',
secure=True)
def _main():
View keybase.md

Keybase proof

I hereby claim:

  • I am harshavardhana on github.
  • I am y4m4 (https://keybase.io/y4m4) on keybase.
  • I have a public key ASAufnZvMt56rQ9785OSHLgz8g3ed1v-P_uBfie-iG5FRAo

To claim this, I am signing this object:

View mariadb-query.md

Database parameters

MariaDB [(none)]> CREATE DATABASE minio_event_db CHARACTER SET utf8 COLLATE utf8_bin;
Query OK, 1 row affected (0.00 sec)

MariaDB [(none)]> CREATE USER 'minio'@'%' IDENTIFIED BY '@0bjectst0rage';
Query OK, 0 rows affected (0.00 sec)

MariaDB [(none)]> GRANT ALL PRIVILEGES ON minio_event_db.* to minio@'%' identified by '0bjectst0rage';
Query OK, 0 rows affected (0.00 sec)
View putobject-sse.go
package main
import (
"bytes"
"crypto/md5"
"encoding/base64"
"io/ioutil"
"log"
"os"
View putobject-part.go
package main
import (
"bytes"
"fmt"
"io"
"log"
"os"
"github.com/cheggaaa/pb"
View b2-gateway.md

Minio B2 Gateway Slack

Minio Gateway adds Amazon S3 compatibility to Backblaze B2 Cloud Storage.

Run Minio Gateway for Backblaze B2 Cloud Storage

Please follow this guide to create an account on backblaze.com to obtain your access credentisals for B2 Cloud storage.

Using Binary

Please download the test binary for gateway B2 support https://data.minio.io:10000/minio-b2/linux-amd64/minio

View redirect.go
package main
import (
"log"
"net/http"
"strings"
)
func RedirectHandler(code int) http.Handler {
return &redirectHandler{code}
@harshavardhana
harshavardhana / README.md
Last active Jul 19, 2019
REX-Ray with Minio
View README.md

Getting Started

The following command will install the latest version of REX-Ray to /usr/bin/rexray on Linux systems:

$ sudo apt install s3fs
$ curl -sSL https://dl.bintray.com/emccode/rexray/install | sh

Depending on the Linux distribution REX-Ray will be registered as either a SystemD or SystemV service.

Configure

REX-Ray requires a configuration file for storing details used to communicate with storage providers. This can include authentication credentials and driver specific configuration options. After REX-Ray has been installed, copy and paste the contents below to a new file on the host at /etc/rexray/config.yml to configure s3fs storage driver.

You can’t perform that action at this time.