Skip to content

Instantly share code, notes, and snippets.

@JujuDel
JujuDel / coinMarketCapRTD.py
Last active January 24, 2022 10:30
Using python, get real time crypto prices and conversion rates in excel
from pyxll import xl_func, RTD
import threading
import time
import requests
from bs4 import BeautifulSoup
'''
Date: 19-April-2021
coin_rtd(crypto: str):
@JujuDel
JujuDel / .gitconfig
Last active April 21, 2023 09:01
Some git aliases taken on other gists, or created/adapted
[user]
name = JujuDel
email = julien.delclos@gmail.com
[filter "lfs"]
clean = git-lfs clean %f
smudge = git-lfs smudge %f
required = true
[alias]
@JujuDel
JujuDel / help.png
Last active June 23, 2022 06:19
Colorfull argparse formatter
help.png
@JujuDel
JujuDel / pretty_nvidia_smi.py
Last active September 11, 2022 13:06
Exact same thing as running 'watch -t -c -n 1 nvidia-smi' but with some colors
import argparse
import os
import re
import subprocess
import time
# User-friendly console display colors
# In case of f-formating alignment, str.rjust, str.ljust or str.center,
# be aware of their len even if you won't see then while printing
@JujuDel
JujuDel / utils.py
Last active December 10, 2022 15:37
Some helpers function for competitive programming
"""LuckyJ.: Utils scripts for CP"""
from __future__ import annotations
import subprocess
import string
from heapq import heappop, heappush
from queue import Queue
from queue import LifoQueue as Stack
@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:
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.