Skip to content

Instantly share code, notes, and snippets.

View harshavardhana's full-sized 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 22:23 — forked from davedoesdev/COPYING
Quietening Syslinux
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 / main.go
Created August 7, 2017 07:19 — forked from FZambia/main.go
Verify armored GPG signature using Go language
package main
import (
"bytes"
"errors"
"fmt"
"io/ioutil"
"os"
"golang.org/x/crypto/openpgp/armor"
@harshavardhana
harshavardhana / check_sig.go
Created August 7, 2017 07:18 — forked from lsowen/check_sig.go
GPG Signature Verification in go (with golang.org/x/crypto/openpgp)
package main
import (
"fmt"
"golang.org/x/crypto/openpgp"
"os"
)
func main() {
keyRingReader, err := os.Open("signer-pubkey.asc.txt")
@harshavardhana
harshavardhana / maintainers.md
Last active February 9, 2017 19:04 — forked from abperiasamy/maintainers.txt
Maintainer's Responsibilities

Upstream Maintainer's Responsibilities

  • Maintainer is also the top contributor of the project.
  • Keep upsteam branch at production quality at all times.
  • Work with the release maintainer to keep the release branch stay as close as possible.
  • Accept only high quality pull-requests. Provide code reviews and guidance on incomming pull requests.
  • Maintainer's Github keys must be password protected securely.
  • Any public facing API or UI or architectural or significant changes requires approval from the architect.

Sub-Maintainer's Responsibilities

  • When maintainer is offline, sub-maintainer takes his/her responsibilities.
@harshavardhana
harshavardhana / maintainers.txt
Created February 9, 2017 19:04 — forked from abperiasamy/maintainers.txt
Maintainer's Responsibilities
## Upstream Maintainer's Responsibilities
- Maintainer is also the top contributor of the project.
- Keep upsteam branch at production quality at all times.
- Work with the release maintainer to keep the release branch stay as close as possible.
- Accept only high quality pull-requests. Provide code reviews and guidance on incomming pull requests.
- Maintainer's Github keys must be password protected securely.
- Any public facing API or UI or architectural or significant changes requires approval from the architect.
## Sub-Maintainer's Responsibilities
- When maintainer is offline, sub-maintainer takes his/her responsibilities.
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
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

Business Models

Advertising

Models Examples
Display ads Yahoo!
Search ads Google
@harshavardhana
harshavardhana / object-storage.sh
Created October 12, 2016 07:16
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
#!/bin/bash
pwd_set () {
cd /root/
}
dl_kubernetes_archive () {
curl -sSL RELEASE_URL -O && \
KUBE_TAR="kubernetes.tar.gz"
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;