Skip to content

Instantly share code, notes, and snippets.

View venkyvb's full-sized avatar

Venki Balakrishnan venkyvb

  • @linkedin.com
  • 00:25 (UTC -12:00)
View GitHub Profile
@venkyvb
venkyvb / samplerest.js
Created November 7, 2016 07:11 — forked from joshbirk/samplerest.js
Sample of using passport w/ mult strategies
var fs = require("fs")
var ssl_options = {
key: fs.readFileSync('privatekey.pem'),
cert: fs.readFileSync('certificate.pem')
};
var port = process.env.PORT || 3000;
var express = require('express');
var ejs = require('ejs');
var passport = require('passport')
@venkyvb
venkyvb / index.js
Created June 26, 2017 06:20 — forked from JonathanMH/index.js
JSON Web Token Tutorial: Express
// file: index.js
var _ = require("lodash");
var express = require("express");
var bodyParser = require("body-parser");
var jwt = require('jsonwebtoken');
var passport = require("passport");
var passportJWT = require("passport-jwt");
package com.example.jersey;
import javax.net.ssl.*;
import javax.ws.rs.client.Client;
import javax.ws.rs.client.ClientBuilder;
import javax.ws.rs.core.Configuration;
import java.security.KeyManagementException;
import java.security.NoSuchAlgorithmException;
import java.security.SecureRandom;
import java.security.cert.CertificateException;
@venkyvb
venkyvb / angular.md
Created August 9, 2018 02:14 — forked from sinedied/angular.md
The Missing Introduction to Angular 2 and Modern Design Patterns

Introduction to Angular

Angular (aka Angular 2) is a new framework completely rewritten from the ground up, replacing the famous AngularJS framework (aka Angular 1.x).

More that just a framework, Angular should now be considered as a whole platform which comes with a complete set of tools, like its own CLI, debug utilities or performance tools.

Getting started

@venkyvb
venkyvb / README.md
Created August 13, 2018 16:38 — forked from nicerobot/README.md
Mac OS X uninstall script for packaged install of node.js

To run this, you can try:

curl -ksO https://gist.githubusercontent.com/nicerobot/2697848/raw/uninstall-node.sh
chmod +x ./uninstall-node.sh
./uninstall-node.sh
rm uninstall-node.sh
@venkyvb
venkyvb / build.gradle
Created April 10, 2019 21:27 — forked from Zetten/build.gradle
Bazel workspace generation script
plugins {
id "com.github.ben-manes.versions" version "0.17.0"
id "io.spring.dependency-management" version "1.0.5.RELEASE"
id "com.github.jk1.dependency-license-report" version '1.0'
}
apply plugin: 'base'
group = 'com.example'
version = '0.0.0'
@venkyvb
venkyvb / BUILD
Created April 10, 2019 21:27 — forked from Zetten/BUILD
Bazel spring-boot jar
java_binary(
name = "spring_boot_packager",
srcs = ["src/SpringBootPackager.java"],
main_class = "src.SpringBootPackager",
visibility = ["//visibility:public"],
deps = ["//third_party/java:org_springframework_boot_spring_boot_loader_tools"],
)
@venkyvb
venkyvb / GitHub-Forking.md
Created June 2, 2019 17:39 — forked from Chaser324/GitHub-Forking.md
GitHub Standard Fork & Pull Request Workflow

Whether you're trying to give back to the open source community or collaborating on your own projects, knowing how to properly fork and generate pull requests is essential. Unfortunately, it's quite easy to make mistakes or not know what you should do when you're initially learning the process. I know that I certainly had considerable initial trouble with it, and I found a lot of the information on GitHub and around the internet to be rather piecemeal and incomplete - part of the process described here, another there, common hangups in a different place, and so on.

In an attempt to coallate this information for myself and others, this short tutorial is what I've found to be fairly standard procedure for creating a fork, doing your work, issuing a pull request, and merging that pull request back into the original project.

Creating a Fork

Just head over to the GitHub page and click the "Fork" button. It's just that simple. Once you've done that, you can use your favorite git client to clone your repo or j

@venkyvb
venkyvb / GitCommitEmoji.md
Created September 24, 2019 05:04 — forked from parmentf/GitCommitEmoji.md
Git Commit message Emoji
@venkyvb
venkyvb / alternative.go
Last active July 12, 2020 05:39 — forked from montanaflynn/pget.go
Bounded Parallel Get Requests in Golang
package main
import (
"fmt"
"sync"
)
const maxConcurrency = 5 // Max number of concurrency
func doSomething(a int) {