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
#!/bin/sh | |
OPENSSL="openssl-1.1.1d" | |
if [ -d ${OPENSSL} ]; then | |
rm -rf ${OPENSSL} | |
fi | |
if [ ! -f ${OPENSSL}.tar.gz ]; then | |
curl -O https://www.openssl.org/source/${OPENSSL}.tar.gz |
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
// from https://gist.github.com/navix/6c25c15e0a2d3cd0e5bce999e0086fc9 | |
export type DeepPartial<T> = T extends Function ? T : (T extends object ? { [P in keyof T]?: DeepPartial<T[P]>; } : T); | |
export type DeepRequired<T> = T extends Function ? T : (T extends object ? { [P in keyof T]-?: DeepRequired<T[P]>; } : T); |
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
-- in response to https://twitter.com/jfischoff/status/1228861734271647745 | |
-- | |
-- The challenge is to visualize the diff of two flame graphs. My idea is: we | |
-- need to draw both Trees in the same image, so we draw each node as the _sum_ | |
-- of the two durations. The color of the node indicates whether the nodes above | |
-- it are slower or faster. Grey is "same speed", orange is "slower" (burns more | |
-- resources), and blue is "faster" (dousing the flames). | |
-- | |
-- Note that I'm using a simple 'Tree' from the containers library, not whatever | |
-- is the real output from 'perf', so more work would be needed to make this |