Skip to content

Instantly share code, notes, and snippets.

View raeidsaqur's full-sized avatar
💭
I may be slow to respond.

Raeid raeidsaqur

💭
I may be slow to respond.
View GitHub Profile
@raeidsaqur
raeidsaqur / wolf_requirements.txt
Last active January 12, 2022 01:37
Installed modules on `teach.cs.toronto.edu` ($python3 -m pip freeze > requirement.txt). For last year's (python 3.8) use $python3.8 -m pip freeze
astroid==2.7.3
attrs==20.3.0
certifi==2020.12.5
chardet==4.0.0
click==8.0.1
colorama==0.4.4
conllu==4.4.1
filelock==3.0.12
funcparserlib==0.3.6
huggingface-hub==0.0.17
@raeidsaqur
raeidsaqur / virtual_x-server_setup.sh
Created April 26, 2022 17:51
Bash script for Virtual X-server setup
#!/bin/bash
# Install NVIDIA driver:
sudo apt-get update
sudo apt-get install nvidia-driver-460
sudo reboot now
# Wait 3 minutes and reconnect
sleep 3m
# Check that nvidia driver is loaded:
@raeidsaqur
raeidsaqur / headless_rendering_unity.py
Created June 24, 2022 17:58
Create a WSGI server to allow declarative headless rendering for unity based gaming environments.
## For general architecture see: https://silverweed.github.io/assets/docs/distributed_rendering_in_vulkan.pdf
import Xlib.display
import glob
import warnings
import os
import ctypes.util
import xml.etree.ElementTree
@raeidsaqur
raeidsaqur / jupyter.slurm
Last active November 19, 2023 13:17
SLURM script for opening a Jupyter Notebook tunnel
#!/bin/bash
#SBATCH -p p100
#SBATCH --gres=gpu:1
#SBATCH -c 4
#SBATCH --mem=16G
#SBATCH --nodes=1
#SBATCH --ntasks=1
##SBATCH --ntasks-per-node=1
#SBATCH --time=04:00:00
#SBATCH --job-name=jupyter-notebook
@raeidsaqur
raeidsaqur / wolf-py310-requirements.txt
Created January 13, 2023 16:20
python version: 3.10.6. Installed modules on `teach.cs.toronto.edu` ($python3 -m pip freeze > requirement.txt).
absl-py==1.1.0
astroid==2.12.13
astunparse==1.6.3
attrs==21.4.0
blis==0.7.8
cachetools==5.2.0
catalogue==2.0.7
certifi==2022.6.15
chardet==5.0.0
charset-normalizer==2.1.0