Skip to content

Instantly share code, notes, and snippets.

View webmandman's full-sized avatar

Daniel Mejia webmandman

View GitHub Profile
@bdw429s
bdw429s / task.cfc
Last active February 23, 2022 22:50
Scan a folder of jars recursively for CVE-2021-44228 vulnerability
/**
* Scan all jars in folder recursivley for log4j vuln
*/
component {
property name="progressableDownloader" inject="ProgressableDownloader";
property name="progressBar" inject="ProgressBar";
/**
* @scanPath absolute or relative path to folder to look for jars
*/
@philipjfulcher
philipjfulcher / find-npm-dependents.ts
Last active September 17, 2021 19:07
Nx Dep Graph script examples
import * as yargs from 'yargs';
import { createProjectGraphAsync } from '@nrwl/workspace/src/core/project-graph';
async function main() {
const graph = await createProjectGraphAsync();
const libToFind = yargs.argv._[0];
console.log(`These projects depend on ${libToFind}`);
Object.values(graph.dependencies).forEach((deps) => {