Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
| #!/usr/bin/env python3 | |
| """ | |
| Slurm Job Timeline Visualizer | |
| Generates a Gantt chart from sacct output showing job execution and idle periods. | |
| """ | |
| import sys | |
| import argparse | |
| from datetime import datetime | |
| import matplotlib.pyplot as plt |
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
| #!/usr/bin/env python3 | |
| import sys | |
| from collections import defaultdict, OrderedDict | |
| def main(): | |
| # Read all lines and track original order | |
| lines = [line.strip() for line in sys.stdin if line.strip()] | |
| # Build hierarchy while preserving order | |
| hierarchy = defaultdict(OrderedDict) |
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
| #!/usr/bin/env python3 | |
| """ | |
| pytorch_bench.py – Multi‑GPU stress test with safety checks | |
| Install | |
| ------- | |
| python3 -m venv ./venv | |
| python3 -m pip install tqdm | |
| python3 -m pip install torch torchvision --index-url https://download.pytorch.org/whl/cu129 |
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
| /* Compile in any of the following ways | |
| nvcc vram_test.cu -o vram_test | |
| nvcc -Wno-deprecated-gpu-targets vram_test.cu -o vram_test | |
| nvcc -arch=sm_86 vram_test.cu -o vram_test | |
| nvcc -arch=sm_75 -gencode=arch=compute_86,code=sm_86 vram_test.cu -o vram_test | |
| */ | |
| #include <cuda_runtime.h> | |
| #include <iostream> | |
| #include <cstdlib> |
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
| <!-- not working yet --> | |
| <?xml version="1.0"?> | |
| <!DOCTYPE profile> | |
| <profile xmlns="http://www.suse.com/1.0/yast2ns" xmlns:config="http://www.suse.com/1.0/configns"> | |
| <general t="map"> | |
| <mode t="map"> | |
| <confirm t="boolean">false</confirm> | |
| </mode> | |
| <self_update config:type="boolean">false</self_update> | |
| </general> |
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
| #!/bin/bash | |
| url="https://discord.com/api/download?platform=linux" | |
| remote_version=$(curl -sIL $url | grep location: | cut -d/ -f7 | sed -ne 's/discord-\([0-9.]*\)\.deb/\1/p' | tr -d '\r$') | |
| local_version=$(dpkg-query -W -f'${Version}\n' discord) | |
| rc=$(dpkg --compare-versions "${local_version}" "lt" "${remote_version}"; echo $?) | |
| if [ $rc -eq 0 ]; then |
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
| #!/bin/bash | |
| total_rss=0 | |
| total_vsz=0 | |
| total_size=0 | |
| while read -r size rss vsz user command; do | |
| total_rss=$((total_rss+rss)) | |
| total_vsz=$((total_vsz+vsz)) | |
| total_size=$((total_size+size)) |
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
| #!/bin/bash | |
| ls -d /usr/src/linux-headers-* \ | |
| | sed -e 's/.*linux-headers-//' \ | |
| | grep generic \ | |
| | sort -V \ | |
| | tac \ | |
| | sudo xargs -n1 /usr/lib/dkms/dkms_autoinstaller start |
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
| #!/bin/bash | |
| umask 022 | |
| {% if letsencrypt_eab %} | |
| server={{ letsencrypt_server }} | |
| kid={{ letsencrypt_eab_kid }} | |
| hmac={{ letsencrypt_eab_hmac }} | |
| acmeurl={{ letsencrypt_acmeurl }} | |
| {% elif letsencrypt_testmode %} | |
| server=acme-staging-v02.api.letsencrypt.org |
NewerOlder