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 / install-quake3.sh
Created Nov 14, 2019 — forked from simonewebdesign/install-quake3.sh
Install Quake 3: Arena on a mac
View install-quake3.sh
#!/bin/bash
# Install Quake 3: Arena on a mac
# Copyright (c) 2016 simonewebdesign
# Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
# The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
@harshavardhana
harshavardhana / go-os-arch.md
Created Jun 18, 2019 — forked from asukakenji/go-os-arch.md
Go (Golang) GOOS and GOARCH
View go-os-arch.md

Go (Golang) GOOS and GOARCH

All of the following information is based on go version go1.8.3 darwin/amd64.

A list of valid GOOS values

(Bold = supported by go out of the box, ie. without the help of a C compiler, etc.)

  • android
  • darwin
@harshavardhana
harshavardhana / random-servers.go
Last active Dec 26, 2018 — forked from fwessels/random-servers.go
Create a list of random servers
View random-servers.go
package main
import (
"fmt"
"hash/crc32"
)
func randomServers(token string, count int) []int {
hTok := crc32.Checksum([]byte(token), crc32.IEEETable)
val := uint32(hTok)
@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 / main.go
Created Aug 7, 2017 — forked from FZambia/main.go
Verify armored GPG signature using Go language
View main.go
package main
import (
"bytes"
"errors"
"fmt"
"io/ioutil"
"os"
"golang.org/x/crypto/openpgp/armor"
@harshavardhana
harshavardhana / check_sig.go
Created Aug 7, 2017 — forked from lsowen/check_sig.go
GPG Signature Verification in go (with golang.org/x/crypto/openpgp)
View check_sig.go
package main
import (
"fmt"
"golang.org/x/crypto/openpgp"
"os"
)
func main() {
keyRingReader, err := os.Open("signer-pubkey.asc.txt")
@harshavardhana
harshavardhana / nginx-minio-static.md
Last active Oct 31, 2019 — forked from koolhead17/gist:4b8dd8d95ec86368634693cf9ad9391c
How to configure static website using Nginx with MinIO ?
View nginx-minio-static.md

How to configure static website using Nginx with MinIO ?

1. Install nginx

2. Install minio

3. Install mc client

4. Create a bucket:

$ mc mb myminio/static
Bucket created successfully ‘myminio/static’.
View testing minio heal feature.md

Install Setup [running on ubuntu 16.04]

1. Install go 1.7.5

sudo apt-get install git 
wget https://storage.googleapis.com/golang/go1.7.5.linux-amd64.tar.gz
tar -C ${HOME} -xzf go1.7.5.linux-amd64.tar.gz

Add the following exports to your ~/.bashrc.

@harshavardhana
harshavardhana / AES.java
Created Feb 12, 2017 — forked from dweymouth/AES.java
A Java class to perform password-based AES encryption and decryption
View AES.java
/*
* ----------------------------------------------------------------------------
* "THE BEER-WARE LICENSE" (Revision 42):
* <dweymouth@gmail.com> wrote this file. As long as you retain this notice you
* can do whatever you want with this stuff. If we meet some day, and you think
* this stuff is worth it, you can buy me a beer in return. D. Weymouth 4/2014
* ----------------------------------------------------------------------------
*/
import java.io.*;
@harshavardhana
harshavardhana / maintainers.md
Last active Feb 9, 2017 — forked from abperiasamy/maintainers.txt
Maintainer's Responsibilities
View maintainers.md

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.
You can’t perform that action at this time.