Skip to content

Instantly share code, notes, and snippets.

View bvpatel's full-sized avatar

Bhavesh Patel bvpatel

  • Pune, India
View GitHub Profile
@bvpatel
bvpatel / errors.go
Created May 3, 2021 05:28 — forked from sudaraka94/errors.go
Custom error struct and helpers
package errors
import "github.com/sirupsen/logrus"
type Operation string
type ErrorType string
const (
NotFoundError ErrorType = "NOT_FOUND"
@bvpatel
bvpatel / cookie_jar.go
Created December 14, 2020 06:56 — forked from rowland/cookie_jar.go
Go http client with cookie support
@bvpatel
bvpatel / 00. tutorial.md
Created July 27, 2019 07:27 — forked from maxivak/00. tutorial.md
Importing/Indexing database (MySQL or SQL Server) in Solr using Data Import Handler
@bvpatel
bvpatel / nginx.conf
Created January 24, 2018 08:36 — forked from micho/nginx.conf
nginx config for http/https proxy to localhost:3000
First, install nginx for mac with "brew install nginx".
Then follow homebrew's instructions to know where the config file is.
1. To use https you will need a self-signed certificate: https://devcenter.heroku.com/articles/ssl-certificate-self
2. Copy it somewhere (use full path in the example below for server.* files)
3. sudo nginx -s reload
4. Access https://localhost/
Edit /usr/local/etc/nginx/nginx.conf: