Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
I may be slow to respond.

Harshavardhana harshavardhana

💭
I may be slow to respond.
View GitHub Profile
@harshavardhana
harshavardhana / COPYING
Created May 6, 2018 — forked from davedoesdev/COPYING
Quietening Syslinux
View COPYING
GNU GENERAL PUBLIC LICENSE
Version 2, June 1991
Copyright (C) 1989, 1991 Free Software Foundation, Inc.
59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
@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 redirect.go
package main
import (
"log"
"net/http"
"strings"
)
func RedirectHandler(code int) http.Handler {
return &redirectHandler{code}
@harshavardhana
harshavardhana / README.md
Last active Oct 13, 2020
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.