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 | |
| # 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 |
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
| 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" |
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 | |
| """ | |
| 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 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
| #!/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" |
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
| # 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") |
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
| ###################### | |
| ## 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.
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
| """ | |
| 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: |
NewerOlder