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
View trim_enabler.sh
#
# Original version by Grant Parnell is offline (http://digitaldj.net/2011/07/21/trim-enabler-for-lion/)
# Update July 2014: no longer offline, see https://digitaldj.net/blog/2011/11/17/trim-enabler-for-os-x-lion-mountain-lion-mavericks/
#
# Looks for "Apple" string in HD kext, changes it to a wildcard match for anything
#
# Alternative to http://www.groths.org/trim-enabler-3-0-released/
# Method behind this madness described: http://forums.macrumors.com/showthread.php?t=1409151&page=4
# See discussion in comments here: https://www.macupdate.com/app/mac/39654/lion-tweaks
# And here: http://forums.macrumors.com/showthread.php?t=1410459
@harshavardhana
harshavardhana / Gulpfile.js
Created Jan 31, 2016 — forked from wrouesnel/Gulpfile.js
webpack, react, golang self-contained gulpfile
View Gulpfile.js
var path = require('path');
var gulp = require('gulp');
var run = require('gulp-run');
var gutil = require('gulp-util');
var minimist = require('minimist');
var options = minimist(process.argv.slice(2), {
string: 'env',
@harshavardhana
harshavardhana / parallel-delete.go
Last active Mar 18, 2016 — forked from Rauk/gist:457be89a59c33220ab30
Delete All the objects in the bucket
View parallel-delete.go
package main
import (
"log"
"github.com/minio/minio-go"
"fmt"
)
func main() {
accessKey := "accessKey"
@harshavardhana
harshavardhana / xl-meta-parse_test.go
Created Aug 24, 2016 — forked from hackintoshrao/xl-meta-parse_test.go
comparison between GJson and json.UnMarshal for XLMetadata parsing for varying part sizes.Run using go test xl-meta-parse_test.go -run=xxx -bench=.
View xl-meta-parse_test.go
/*
* Minio Cloud Storage, (C) 2016 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
View UploadObjectSingleOperation.java
import java.io.File;
import java.io.IOException;
import com.amazonaws.regions.Region;
import com.amazonaws.regions.Regions;
import com.amazonaws.auth.BasicAWSCredentials;
import com.amazonaws.services.s3.S3ClientOptions;
import com.amazonaws.auth.AWSCredentials;
import com.amazonaws.services.s3.AmazonS3;
import com.amazonaws.services.s3.AmazonS3Client;
@harshavardhana
harshavardhana / object-storage.sh
Created Oct 12, 2016 — forked from jmarhee/object-storage.sh
bash script for deploying minio on DigitalOcean; this was removed from my kubernetes deployment util.sh (now just provision.sh), but will function to serve the binary if added to your util.sh and the object-storage.sh is invoked as your user-data
View object-storage.sh
#!/bin/bash
pwd_set () {
cd /root/
}
dl_kubernetes_archive () {
curl -sSL RELEASE_URL -O && \
KUBE_TAR="kubernetes.tar.gz"
View business-models.md

Business Models

Advertising

Models Examples
Display ads Yahoo!
Search ads Google
View small-obj-load-test.py
from minio import Minio
from minio.error import ResponseError
from sys import stdout
from itertools import cycle
import string
import sys
import datetime
import random
View minio_compose_sizes
version: '2'
# 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.
services:
minio1:
hostname: minio1
image: minio/minio:edge
size: s4
You can’t perform that action at this time.