Skip to content

Instantly share code, notes, and snippets.

@maxisoft
maxisoft / DaemonThreadPoolExecutor.py
Last active February 18, 2025 14:15
DaemonThreadPoolExecutor: A custom ThreadPoolExecutor that creates daemon threads by temporarily monkey patching threading.Thread.start and internal _threads_queues. This ensures background tasks don't block program exit. Use with caution!
import concurrent.futures
import importlib
import threading
import time
import weakref
from typing import Callable, TypeVar
__all__ = ["DaemonThreadPoolExecutor"]
_T = TypeVar('_T')

Installation Steps

  1. Install Visual Studio 2022 Pro:

    • Download and install Visual Studio 2022 Pro from the official Microsoft website.
    • During installation, select the Desktop development with C++ workload and the Windows 10 SDK component.
  2. Install Anaconda (2024.06 version):

    • Download and install the Anaconda individual installer (version 2024.06) from the official Anaconda website.
  3. Install PyTorch with CUDA Support:

@maxisoft
maxisoft / BloomFilter.cs
Last active March 29, 2022 10:18 — forked from richardkundl/BloomFilter.cs
Bloom filter implementation in c#.
#nullable disable
namespace BloomFilter {
using System;
using System.Collections;
/// <summary>
/// Bloom filter.
/// </summary>
/// <typeparam name="T">Item type </typeparam>
public class Filter<T> {
# remove logicom shits
adb shell pm uninstall --user 0 com.adups.fota
adb shell pm disable-user --user 0 com.sprd.systemupdate
adb shell pm uninstall -k --user 0 com.adups.fota.sysoper
adb shell pm uninstall -k --user 0 com.ruskin.grote
adb shell pm disable-user --user 0 com.cs.cittest
adb shell pm uninstall -k --user 0 kst.ibeuuytgskxtir.dxswrhwo
adb shell pm uninstall -k --user 0 com.logicom.portail
# remove sprd shits
@maxisoft
maxisoft / Program.cs
Last active November 22, 2020 14:52
LamarCrashOnNoNamespace
using System;
using Lamar;
using LamarCrashOnNoNamespace;
namespace LamarCrashOnNoNamespace
{
class Program
{
static void Main(string[] args)
login: [email protected]
password: yourpassword
# list here the records you want to add/update
record:
# the following will update both the A and AAAA records with your current ips (v4 and v6).
# If you don't have an ipv6 connection, the program'll detect it and will only update the A record (ipv4)
- domain: test.tk
# the following will update both your subdomain's A and AAAA records with your current ips (v4 and v6)
/******************************************************************************
* FILE: mpi_mm.c
* DESCRIPTION:
* MPI Matrix Multiply - C Version
* In this code, the master task distributes a matrix multiply
* operation to numtasks-1 worker tasks.
* NOTE: C and Fortran versions of this code differ because of the way
* arrays are stored/passed. C arrays are row-major order but Fortran
* arrays are column-major order.
* AUTHOR: Blaise Barney. Adapted from Ros Leibensperger, Cornell Theory
#include "mpi.h"
#include <stdio.h>
#include <stdlib.h>
// macro pour tester le cas de tableaux non egaux.
//mettre a 0 pour que les 2 tableaux soit egaux. 1 sinon.
#define ARRAY_NOT_EQUAL 0
  • ajouter une oeuvre (utilisateur / admin)

  • l'affichage de l'identifiant de l'administrateur doit etre differencié d'un utilisateur lambda

  • l'utilisateur (ou admin) peut se déconnecté

  • l'utilisateur (ou admin) ne peut pas se se reidentifier sans s'etre préalablement déco

  • l'utilisateur (ou admin) reste connecté durant la navigation

  • se logger de maniere secure (comme steam)