Thanks to visit codestin.com
Credit goes to gist.github.com

Skip to content

Instantly share code, notes, and snippets.

@JujuDel
JujuDel / run_until_failure.sh
Created May 7, 2026 13:19
Run a command repeatedly until it fails
#!/bin/bash
# Check if command is provided
if [ $# -eq 0 ]; then
echo "Usage: $0 <command> [args...]"
echo "Example: $0 ./SomeExec --some_arg"
exit 1
fi
# Store the command and arguments
@JujuDel
JujuDel / monitor_memory.py
Created May 6, 2026 20:53
Helper script to monitor the mem taken by a command
import psutil
import subprocess
import time
import threading
import argparse
import matplotlib.pyplot as plt
import matplotlib.animation as animation
# Global variables
csv_file = "memory_usage_log.csv"
#!/usr/bin/env python3
"""
CI Runner Monitor — checks GitLab runners status and notifies Slack on changes.
Monitors ALL runners (instance, group, and project) via the GitLab admin API.
Behaviour:
- On every run: notifies Slack when a runner transitions
(offline ↔ online, paused ↔ unpaused).
- Once a day at DAILY_SUMMARY_HOUR (default 9am UTC): sends a summary with
@JujuDel
JujuDel / lsi_vs_dca.ipynb
Created June 16, 2025 20:04
LSI vs DCA - Simulated with a starting investment every day and a comparaison after a certain duration
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@JujuDel
JujuDel / scratch_tickets.ipynb
Created January 6, 2025 19:40
My family asked for the stats, here they are
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@JujuDel
JujuDel / prepare_labels_COCO_CrowdHuman.sh
Created November 1, 2024 09:05
Copy CrowdHuman dataset with `person head` label changed to 80
#!/bin/bash
# Copies the dataset
# Changes the person head label of the CrowdHuman to 80.
# Initial CrowdHuman dataset can be obtained from
# - https://gist.github.com/adujardin/62653118466962264aa0c6339c3e9cf5#file-crowdhuman_to_yolo-py-L144
datasets="/home/user/code/datasets"
newFolder="NewCrowdHuman"
@JujuDel
JujuDel / trtexec_v11.sh
Last active November 1, 2024 09:01
Run trtexec on yolo v11 model variations.
# sudo apt-get install -y cuda-toolkit-<major>-<minor>
# sudo apt-get install -y tensorrt nvidia-tensorrt-dev
# sudo nvpmodel -m 0
# sudo jetson_clocks
out_file="/home/user/yolo11_trtexec.txt"
rm ${out_file}
variants=("yolo11n" "yolo11s" "yolo11m" "yolo11l" "yolo11x")
image_sizes=("320" "384" "416" "512" "608" "640")
@JujuDel
JujuDel / .bashrc
Last active May 6, 2026 21:01
Some minor stuff I usually add in my bashrc. Can't share whatever's specific to previous jobs thought
######################
## JULIEN - START ##
######################
export PATH=/usr/src/tensorrt/bin:/usr/local/cuda-12/bin${PATH:+:${PATH}}
export LD_LIBRARY_PATH=/usr/local/cuda-12/lib64${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
export LD_LIBRARY_PATH="/usr/lib/x86_64-linux-gnu:$LD_LIBRARY_PATH"
export PATH="/home/julien/Documents/android-studio/bin:$PATH"
# ALIASES TO USE HELPER SCRIPT
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@JujuDel
JujuDel / crackRAR.py
Created October 8, 2023 13:21
Open a password protected RAR file from a RegEx pattern. The RegEx serves as hint to provide a list of password to try
"""
Brute force a password protected rar file with a RegEx pattern hint.
This is not meant to be used with malicious intent.
I have made this script only because I had a protected rar file for which I forget
the pwd but remembered partially what it was. Writing a RegEx helped to reduce the
pwd candidates to something I could easily fastly recover :)
Pre-requisites: