Skip to content

Instantly share code, notes, and snippets.

View dharapvj's full-sized avatar

Vijay Dharap dharapvj

View GitHub Profile
@dharapvj
dharapvj / .vimrc
Created January 27, 2025 10:52 — forked from simonista/.vimrc
A basic .vimrc file that will serve as a good template on which to build.
" Don't try to be vi compatible
set nocompatible
" Helps force plugins to load correctly when it is turned back on below
filetype off
" TODO: Load plugins here (pathogen or vundle)
" Turn on syntax highlighting
syntax on
@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.