A beginner-friendly guide to understanding and fixing AMD GPU crashes, freezes, and instability on Linux.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #![deny(clippy::unwrap_used)] | |
| fn main() { | |
| Err::<(), _>("foo").or_panic() | |
| } | |
| trait UnwrapPanic<T> { | |
| fn or_panic(self) -> T; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| Copyright (c) 2024 Rendello | |
| Permission to use, copy, modify, and/or distribute this software for any | |
| purpose with or without fee is hereby granted. | |
| THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH | |
| REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY | |
| AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, | |
| INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| if [ "$EUID" -ne 0 ] && groups | grep -qwv 'i2c' && getent group i2c &> /dev/null | |
| then | |
| echo "Insuficient permissions, run as root ou join $USER to i2c group." | |
| exit 1 | |
| fi | |
| case "$1" in |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- BASIC EASING FUNCIONS CHEAT CHEET | |
| -- (most of them are based on glide by Jacob Albano https://github.com/jacobalbano/glide) | |
| function ease_linear(t) | |
| return t | |
| end | |
| function ease_cube_in(t) | |
| return t * t * t | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # ----------------------------------------------------------------------------------------------------------------------------- # | |
| # | nibble / half byte | 0 - passable | 0 - disabled | 0 - passable | | |
| # | | 1 - impassable | 1 - enabled | 1 - impassable | | |
| # ----------------------------------------------------------------------------------------------------------------------------- # | |
| # | Terrain Tag (4bits) | Vehicle Pass. (3bits) | Special Flags (4bits) | Passages (5bits) | | |
| # ----------------------------------------------------------------------------------------------------------------------------- # | |
| # | | Airship | Ship | Boat | Damage Floor | Counter | Bush | Ladder | Star | Top | Right | Left | Bottom | | |
| # ------------------------------------------------------------------------------------------------------------------------ |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000