Skip to content

Instantly share code, notes, and snippets.

View Polygonalr's full-sized avatar
🗿

Zhi Heng Polygonalr

🗿
View GitHub Profile
@Polygonalr
Polygonalr / README.md
Last active May 13, 2025 10:22
Getting Kubuntu 25.04 to work probably on a system with an Nvidia GPU

Nvidia drivers stopped working after a system update

Purge everything Nvidia-related, remove PPA and reinstall via ubuntu-drivers.

sudo apt remove --purge "*nvidia*"
sudo dpkg -P --force-all $(dpkg -l | grep "nvidia-" | grep -v lib | awk '{print $2}')
sudo apt-add-repository -r ppa:graphics-drivers/ppa
sudo apt update
sudo apt autoremove
@Polygonalr
Polygonalr / mlir-standalone-setup.md
Created May 6, 2024 14:01
Commands to get out-of-tree custom MLIR dialect code working

Instructions are working as of 6 May 2024, and may break in the future.

Assuming llvm-project is cloned to current working directory.

Copy the standalone dialect template out:

cp llvm-project/mlir/examples/standalone ./standalone
@Polygonalr
Polygonalr / script.py
Last active February 22, 2022 12:32
panopto video downloader
# Script to rip panopto videos
# Requirements:
# - Selenium with chromedriver configured
# - Cookies ripped from your browser for panopto cookies locked behind authentication
#
# What it does:
# Opens panopto with the specified cookies in cookies.json with chrome using selenium
# Gets the video endpoints and downloads them using cookies.txt (netscape format, yes I know there's 2 different cookie files)
# If there are 2 video endpoints, splice the audio from the camera video to the screenshare video
#
@Polygonalr
Polygonalr / cloudSettings
Last active September 18, 2021 12:40
Visual Studio Code Settings Sync Gist
{"lastUpload":"2021-09-18T12:40:16.311Z","extensionVersion":"v3.4.3"}