requires
jqCLI
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 ]'
| // ==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/* |
| 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(); | |
| }); |
requires
jqCLI
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 ]'