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
# Pin *all* Nvidia apt packages to a specific version (including drivers, cuda, nvidia-docker-toolkit, etc.) | |
# Place this at /etc/apt/preferences.d/60-nvidia and run `apt update` | |
# NOTE: apparently, version and release pinning cannot be combined in a single section | |
# NOTE: version pinning doesn't work with Package: * (use regex instead) | |
Package: nsight* | |
Pin: release l=*Debian* | |
Pin-Priority: -1 |
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
https://www.crazygames.com/game/compact-conflict | |
https://www.crazygames.com/game/hex-empire |
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
# Display all cell outputs | |
from IPython.core.interactiveshell import InteractiveShell | |
InteractiveShell.ast_node_interactivity = 'all' | |
# Rich print | |
import rich.console | |
print = rich.console.Console(force_jupyter=False, width=220).print | |
# Render markdown/svg cells: | |
from IPython.display import display, Markdown, SVG |
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
PCIe diagnostics: | |
nvidia-smi dmon -s et -d 10 -o DT |
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
Fast one-liner in current dir: | |
docker run -v $PWD:$PWD -w $PWD --net=[host|none] image cmd | |
Verbose docker info: | |
docker system df -v | |
Delete all build cache: | |
docker builder prune -af | |
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
check for bash version 4+ (POSIX-compliant) : | |
[ -z "${BASH_VERSINFO}" ] || [ -z "${BASH_VERSINFO[0]}" ] || [ ${BASH_VERSINFO[0]} -lt 4 ] | |
path to script even if symlinked: | |
SCRIPT_DIR="$( cd -P "$( dirname "$(readlink -f "${BASH_SOURCE[0]}")" )" >/dev/null 2>&1 && pwd )" |
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
# Best practice pyproject.toml: | |
# https://github.com/airbytehq/airbyte/blob/master/airbyte-lib/pyproject.toml | |
[tool.coverage.run] | |
include = ["src/*"] | |
parallel = true | |
branch = true | |
[tool.coverage.paths] |
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
Add bash completions: | |
mkdir -p ${XDG_DATA_HOME:-~/.local/share}/bash-completion/completions | |
poetry completions bash > ${XDG_DATA_HOME:-~/.local/share}/bash-completion/completions/poetry | |
Enter virtual environment: | |
poetry shell | |
Exit virtual environment: | |
exit |
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
browser.compactmode.show true | |
browser.search.region EN | |
browser.tabs.insertAfterCurrent true | |
browser.tabs.loadBookmarksInBackground true | |
browser.tabs.loadBookmarksInTabs true | |
browser.tabs.tabClipWidth 10000 | |
browser.toolbars.bookmarks.visibility always | |
browser.translations.neverTranslateLanguages de | |
browser.uidensity 1 | |
full-screen-api.transition.timeout 0 |
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
Slow apt search: | |
rm /etc/apt/apt.conf.d/docker-gzip-indexes | |
rm /var/lib/apt/lists/*.lz4 | |
apt update |
NewerOlder