Skip to content

Instantly share code, notes, and snippets.

View umbertogriffo's full-sized avatar
🫵
How dare you nitpicking my PR

Umberto Griffo umbertogriffo

🫵
How dare you nitpicking my PR
View GitHub Profile
@umbertogriffo
umbertogriffo / build_opencv.md
Last active February 24, 2023 12:48
MacOS 12 M1 (Apple Silicon) - Build OpenCV

MacOS 12 M1 (Apple Silicon) - Build OpenCV

Install CMake (3.16 or higher):

brew install cmake

If it's already installed, uninstall opencv-python:

@umbertogriffo
umbertogriffo / cuda_11.7_installation_on_Ubuntu_22.04
Created April 6, 2023 13:13 — forked from primus852/cuda_11.7_installation_on_Ubuntu_22.04
Instructions for CUDA v11.7 and cuDNN 8.5 installation on Ubuntu 22.04 for PyTorch 1.12.1
#!/bin/bash
### steps ####
# verify the system has a cuda-capable gpu
# download and install the nvidia cuda toolkit and cudnn
# setup environmental variables
# verify the installation
###
### to verify your gpu is cuda enable check
@umbertogriffo
umbertogriffo / cuda_11.7_installation_on_Ubuntu_22.04
Last active April 19, 2023 13:49 — forked from primus852/cuda_11.7_installation_on_Ubuntu_22.04
Instructions for CUDA v11.7 and cuDNN 8.5 installation on Ubuntu 22.04 for PyTorch 1.12.1
#!/bin/bash
### steps ####
# verify the system has a cuda-capable gpu
# download and install the nvidia cuda toolkit and cudnn
# setup environmental variables
# verify the installation
###
### to verify your gpu is cuda enable check
@umbertogriffo
umbertogriffo / downloads_files_asynchronously.py
Last active October 7, 2025 12:04
Asynchronous File Downloader with httpx and aiofiles.
"""
This Python script demonstrates how to download multiple files asynchronously using the httpx library for HTTP requests
and aiofiles for asynchronous file operations.
"""
import asyncio
import tempfile
import time
from pathlib import Path
import aiofiles