Skip to content

Instantly share code, notes, and snippets.

View dharapvj's full-sized avatar

Vijay Dharap dharapvj

View GitHub Profile

Keybase proof

I hereby claim:

  • I am dharapvj on github.
  • I am dharapvj (https://keybase.io/dharapvj) on keybase.
  • I have a public key whose fingerprint is 04AB E978 9C0C BE38 D4EF 9AE1 C7AF 07C6 FF22 0A4E

To claim this, I am signing this object:

@dharapvj
dharapvj / nexus-repo-manager-privilege-example.groovy
Created July 3, 2019 08:15 — forked from nblair/nexus-repo-manager-privilege-example.groovy
A groovy script to create Content Selectors, privileges, and roles programmatically via the Nexus Repository Manager 3 Scripting API.
import org.sonatype.nexus.common.entity.*
import org.sonatype.nexus.security.*
import org.sonatype.nexus.security.authz.*
import org.sonatype.nexus.selector.*
import com.google.common.collect.ImmutableMap
// use container.lookup to fetch internal APIs we need to use
def selectorManager = container.lookup(SelectorManager.class.name)
def securitySystem = container.lookup(SecuritySystem.class.name)
@dharapvj
dharapvj / auth-cache.js
Created February 5, 2019 11:05 — forked from phillipsmith/auth-cache.js
Express.js + Passport.js: LDAP Basic Authentication for Login and Bearer Token Authentication for everything else
/**
* Copyright (c) 2017, Three Pawns, Inc. All rights reserved.
*/
'use strict';
const config = require('config');
const crypto = require('crypto');
const uuid = require('uuid');
const NodeCache = require('node-cache');
@dharapvj
dharapvj / git-suse
Created April 13, 2016 09:35 — forked from orctom/git-suse
Install GIT Client on SuSE
Install GIT Client on SuSE 11.2
Add repositories:
For Git,
# zypper addrepo http://download.opensuse.org/repositories/devel:/tools:/scm/SLE_11_SP2/devel:tools:scm.repo
For perl
# zypper addrepo http://download.opensuse.org/repositories/devel:/languages:/perl/SLE_11/devel:languages:perl.repo
if cannot find the repository, try below one.
@dharapvj
dharapvj / IE9NetworkLog.xml
Created January 18, 2013 10:35
head js network log.xml
<?xml version="1.0" encoding="UTF-8"?>
<log>
<version>1.1</version>
<creator>
<name>Internet Explorer Network Inspector</name>
<version>9.0.8112.16421</version>
</creator>
<browser>
<name>Internet Explorer</name>
<version>9.0.8112.16421</version>
@dharapvj
dharapvj / test.html
Last active March 8, 2016 09:14
The html sample for head.js issue
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>test page</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- <script src="jslib/lib/loader/head.min.js"></script> -->