Skip to content

Instantly share code, notes, and snippets.

View amine250's full-sized avatar
🤞

Amine amine250

🤞
View GitHub Profile
@ruanbekker
ruanbekker / tree_style_tab_firefox.md
Created November 28, 2019 06:18
Hide Native Tabs with Tree Style Tabs for Firefox
$ ls /opt/sonatype/sonatype-work/nexus3/db/
OSystem accesslog analytics audit component config model.properties security
$ docker-compose exec nexus java -jar ./lib/support/nexus-orient-console.jar
CONNECT PLOCAL:/opt/sonatype/sonatype-work/nexus3/db/component admin admin
REBUILD INDEX *
REPAIR DATABASE --fix-graph
REPAIR DATABASE --fix-links
REPAIR DATABASE --fix-ridbags
@phillipsmith
phillipsmith / auth-cache.js
Last active May 11, 2020 01:38
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');