Skip to content

Instantly share code, notes, and snippets.

@0xee
0xee / CUDA deadlock reproducing testcase
Last active November 12, 2019 10:37
CUDA deadlock reproducing testcase
-
@0xee
0xee / test-prompt.sh
Created September 8, 2019 17:37
Bash prompt test
#!/usr/bin/env bash
# Checks if the bash prompt is setup correctly, i.e. if all non-printable
# characters are escaped correctly using \[...\] and if wide characters
# (eg. emoji) are displayed correctly by the terminal.
#
# Should work on any bash prompt, including ones containing colors, multiple
# lines, unicode characters, etc.
#
# The tests are performed by running a shell in a clean tmux session,