Skip to content

Instantly share code, notes, and snippets.

@slowpeek
slowpeek / temp.sh
Last active February 28, 2024 20:20
temp.sh
# -*- mode: sh; sh-shell: bash; -*-
# shellcheck shell=bash
# MIT license (c) 2021 https://github.com/slowpeek
# Homepage: https://gist.github.com/slowpeek/f3e851f5c6fa6a7ba1f33d1e903bf4a9
# Temporarily assign a new value to a var and restore it
# later. Strings only. The code is simple on intention, use it
# correctly.
#
@slowpeek
slowpeek / ubuntu-sources
Last active April 10, 2024 22:59
Simple apt sources generator for ubuntu
#!/usr/bin/env bash
# MIT license (c) 2021 https://github.com/slowpeek
# Homepage: https://gist.github.com/slowpeek/beedb0c9c79638d4a7ec0099d0875ecb
# Simple apt sources generator for ubuntu.
############################ DEPRECATION NOTICE ############################
#
# This script has evolved into https://github.com/slowpeek/ubuntu-sources
@slowpeek
slowpeek / nvidia-smi
Last active May 5, 2024 20:21
nvidia-smi dmon adapter: 525, 530, 535, 545
#!/usr/bin/env bash
# MIT license (c) 2022-2024 https://github.com/slowpeek
# Homepage: https://gist.github.com/slowpeek/006680bb06e671bc489d4a3274ff3d19
: <<'README'
Applicable nvidia driver versions: 525, 530, 535, 545, 550
ABOUT --