Skip to content

Instantly share code, notes, and snippets.

View moosavimaleki's full-sized avatar
🎯
Focusing

Seyed hamed moosavi moosavimaleki

🎯
Focusing
View GitHub Profile
@garg-aayush
garg-aayush / Steps_multiple_cuda_environments.md
Last active March 2, 2025 17:09
Managing multiple CUDA versions using environment modules in Ubuntu

Steps to manage multiple CUDA environments

Latest Update: May 19th, 2024

This gist contains all the steps required to:

  • Install multiple CUDA versions (e.g., CUDA 11.8 and CUDA 12.1
  • Manage multiple CUDA environments on Ubuntu using the utility called environment modules.
  • Use this approach to avoid CUDA environment conflicts.

Environment Modules is a package that provides for the dynamic modification of a user's environment via modulefiles. You can find more on it at https://modules.readthedocs.io/en/latest/

@moosavimaleki
moosavimaleki / README.md
Last active July 2, 2021 18:03
add postgres seq (sequence) to all table (automatic add sequence to all table in postgresql with php script[laravel])

automatic add sequence to all table in postgresql with php script [laravel]

run this code in laravel

change owner or schema or ...

code steps:

  1. get all tables
  2. get max id in each table
@rponte
rponte / register_dll.sh
Created July 2, 2014 12:35
Registering a DLL or OCX with Wine
# registering a dll
wine regsvr32 midas.dll
wine regsvr32 fee.ocx
# unregistering a dll
wine regsvr32 /u fee.dll
wine regsvr32 /u fee.ocx