This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// npm audit --json | node formatJson.js | |
const fs = require('fs'); | |
function findDependencyPath(json, moduleName) { | |
if (!json.vulnerabilities[moduleName].isDirect | |
&& json.vulnerabilities[moduleName].effects.length) { | |
return `${findDependencyPath(json, json.vulnerabilities[moduleName].effects[0])}>${moduleName}` | |
} | |
return moduleName; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Date: Wed, 26 Apr 2017 17:24:15 -0500 | |
Subject: [PATCH] Fix segfault on macOS due to getpass() | |
The prototype is not present when _XOPEN_SOURCE >= 600; unlike other | |
BSDs, macOS does not include it when _BSD_SOURCE is defined. | |
Also remove bogus _BSD_SOURCE definition. | |
Submitted upstream: https://sourceforge.net/p/ipmitool/bugs/433/#89ea | |
--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/ruby | |
# Create display override file to force Mac OS X to use RGB mode for Display | |
# see http://embdev.net/topic/284710 | |
require 'base64' | |
data=`ioreg -l -d0 -w 0 -r -c AppleDisplay` | |
edids=data.scan(/IODisplayEDID.*?<([a-z0-9]+)>/i).flatten | |
vendorids=data.scan(/DisplayVendorID.*?([0-9]+)/i).flatten |