This file contains hidden or 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
/** | |
* Make libnvidia-ml.so (nvidia-smi) write plaintext debug logs. | |
* | |
* Usage: | |
* | |
* gcc -shared -fPIC -ldl nvml-debugdump.c -o nvml-debugdump.so | |
* LD_PRELOAD=./nvml-debugdump.so nvidia-smi --debug=debug.log -q | |
* | |
* For other NVML applications, set env var __NVML_DBG_FILE=debug.log | |
* |
This file contains hidden or 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/bash | |
# Extracts commits from the src/crypto/tls/ directory (from Go upstream) in a | |
# reproducible way, preserving all metadata (including committer info). | |
# | |
# Strategy: | |
# 0. Create a new temporary working repo. | |
# 1. Fetch go branch/commit that should be pulled from. | |
# 2. Rewrite history of go branch, extracting just the src/crypto/tls/ commits. | |
# 3. Push the updated branch back to tls-tris. |
This file contains hidden or 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/env python3 | |
# Extracts a subset of TLS secrets and injects them in an existing capture file. | |
# | |
# Author: Peter Wu <[email protected]> | |
import argparse | |
import os | |
import shlex | |
import subprocess | |
import sys |
OlderNewer