Skip to content

Instantly share code, notes, and snippets.

View shtrophic's full-sized avatar
🎯
Focusing

shtrophic

🎯
Focusing
View GitHub Profile
@fpaupier
fpaupier / gpumeter.sh
Created February 13, 2024 06:32
Measure maximum VRAM consumption of a program on linux for Nvidia devices
#!/bin/bash
# Usage ./gpumeter.sh my-gpu-hungry-script.sh
# Check if the command argument is provided
if [ "$#" -ne 1 ]; then
echo "Usage: $0 <script_to_run>"
exit 1
fi
@kescherCode
kescherCode / daemon
Last active December 4, 2023 11:18
A rrdtool network graph generator, as seen on https://mirror.kescher.at.
#!/usr/bin/env bash
while :; do
bash loop
sleep 5
done
@JADC362
JADC362 / ROS2DebugVSCode.md
Last active August 26, 2025 13:51
Debug ROS2 C++ node on VSCode (Ubuntu)

Debug ROS2 C++ node on VSCode (Ubuntu)

Description

This is a small tutorial on how to debug a ROS2 C++ node usign VSCode.

Requeriments

This implementation was done using:

@kescherCode
kescherCode / 01-syncarch4edu.sh
Last active September 5, 2024 08:08
A mirror script for the arch4edu repositories. Assume MIT License.
#!/usr/bin/env bash
set -e
# This is a simple mirroring script. To save bandwidth it first checks a
# timestamp via HTTP and only runs rsync when the timestamp differs from the
# local copy. As of 2016, a single rsync run without changes transfers roughly
# 6MiB of data which adds up to roughly 250GiB of traffic per month when rsync
# is run every minute. Performing a simple check via HTTP first can thus save a
# lot of traffic.
@ageis
ageis / systemd_service_hardening.md
Last active August 23, 2025 18:27
Options for hardening systemd service units

security and hardening options for systemd service units

A common and reliable pattern in service unit files is thus:

NoNewPrivileges=yes
PrivateTmp=yes
PrivateDevices=yes
DevicePolicy=closed
ProtectSystem=strict