Skip to content

Instantly share code, notes, and snippets.

@tobimd
tobimd / install.sh
Last active March 12, 2024 00:07
script: installer / updater for discord
#!/usr/bin/env bash
set -e
if [[ $(/usr/bin/id -u) -ne 0 ]]; then
printf "[error] not running as root\n"
exit 1
fi
# find this file's path
@tobimd
tobimd / Makefile
Created March 9, 2023 02:45
c/c++ makefile
# name of the binary to create
PROJECT_NAME :=
IS_STATIC_LIB := true # only used if project is a library (false: dynamic library)
# compiling options and settings
CEXT := cpp
CXX := gcc
CXXSTD := c++20
CXXFLAGS := -W -Wall -Wextra -pedantic -std=$(CXXSTD)
LDFLAGS := -L@/usr/lib -lstdc++ -lfmt
@tobimd
tobimd / tegrastats_utility_statistics_format.md
Created September 12, 2022 01:27
Two tables containing reported statistics from nvidia's tegrastats utility.
@tobimd
tobimd / zshenv
Last active September 24, 2021 22:35
# /etc/zsh/zshenv: system-wide .zshenv file for zsh(1).
#
# This file is sourced on all invocations of the shell.
# If the -f flag is present or if the NO_RCS option is
# set within this file, all other initialization files
# are skipped.
#
# This file should contain commands to set the command
# search path, plus other important environment variables.
# This file should not contain commands that produce