Skip to content

Instantly share code, notes, and snippets.

View jomoflash's full-sized avatar
🧑‍🍳
Chef mode

James Emmanuel jomoflash

🧑‍🍳
Chef mode
View GitHub Profile
// ==UserScript==
// @name Dowmload VSIX
// @namespace http://tampermonkey.net/
// @version 1.0.0
// @description This userscript allows you to download VSIX files directly from the Visual Studio Marketplace
// @updateURL https://gist.githubusercontent.com/Sigmanor/8e367568ba3dd88b8a2c30fb7ec083e3/raw/script.user.js
// @downloadURL https://gist.githubusercontent.com/Sigmanor/8e367568ba3dd88b8a2c30fb7ec083e3/raw/script.user.js
// @author sigmanor
// @homepageURL https://github.com/Sigmanor
// @match https://marketplace.visualstudio.com/*
@ganeshkbhat
ganeshkbhat / expressjs-req.baseUrl-req.originalUrl-req.path-difference.snippet.js
Created October 4, 2018 03:03
ExpressJS Series: Difference the req.baseUrl req.originalUrl req.path
app.use('/admin', function(req, res, next) {
/* GET 'http://www.example.com/admin/new' */
console.log(req.originalUrl); // '/admin/new'
console.log(req.baseUrl); // '/admin'
console.log(req.path); // '/new'
next();
});
@rafaeltuelho
rafaeltuelho / openshift-cheatsheet.md
Last active December 5, 2025 14:24
My Openshift Cheatsheet

My Openshift Cheatsheet

List all non openshift/kube namespaces

requires jq CLI

oc get namespaces -o json | jq '[.items[] | select((.metadata.name | startswith("openshift") | not) and (.metadata.name | startswith("kube-") | not) and .metadata.name != "default" and (true)) | .metadata.name ]'

Project Quotes, Limits and Templates