Skip to content

Instantly share code, notes, and snippets.

View side2k's full-sized avatar

Leonid Amirov side2k

View GitHub Profile
@side2k
side2k / pre-commit
Created September 2, 2024 08:55
Git pre-commit hook with black/flake8 checks for Python
#!/bin/sh
branch=`git branch --show-current`
if [ -z "$branch" ]; then
branch=detached
fi
if [ "$branch" = "dev" ]; then
echo Thou shalt not commit directly to dev branch!
exit 1
fi
@side2k
side2k / ubuntu-gl502vs.md
Last active June 5, 2025 06:30 — forked from GMMan/ubuntu-gl502vs.md
Problems and Solutions for Ubuntu 16.04 LTS on ASUS ROG GL502VS Laptop

Problems and Solutions for Ubuntu 16.04 LTS on ASUS ROG GL502VS/GL702VM Laptops

NVIDIA Graphics

Nouveau does not appear to support Pascal cards right now, so you should use the proprietary NVIDIA driver, available from the Additional Drivers applet.

Panel Dithering