Skip to content

Instantly share code, notes, and snippets.

View elyzion's full-sized avatar

Berthold Alheit elyzion

View GitHub Profile
@elyzion
elyzion / pyproject.toml
Last active July 19, 2026 07:51
uv + AMD ROCm PyTorch wheels: fixing 'rocm[libraries]==7.14.0' unsatisfiable (explicit=true transitive-source trap) — one-line fix + device-extras and git-downgrade traps
[project]
name = "my-rocm-project"
version = "0.1.0"
requires-python = ">=3.12"
dependencies = [
# Mirrors the official ROCm-docs install line. The [device-gfx1200] extras are
# MANDATORY: bare torch omits the amd-torch-device-gfx1200 GPU-kernel packages,
# and `uv sync` will UNINSTALL them (substitute your arch: gfx1100, gfx1030, ...).
"rocm[libraries,device-gfx1200]==7.14.0",
"torch[device-gfx1200]==2.12.0+rocm7.14.0",
@elyzion
elyzion / Trouble shooting
Created March 5, 2019 02:24
Kubernetes notes
Spin up a quick shell with network-utils.
```k run tmp-shell --rm -i --tty --image amouat/network-utils -- /bin/bash```
#Non-align
def foo
some_function(true, { :before => 1,
:after => 2 })
end
def bar
case @var
when 1
print 'a'
#!/bin/bash
# chkconfig: 345 20 80
# description: Play start/shutdown script
# processname: play
#
# Instalation:
# copy file to /etc/init.d
# chmod +x /etc/init.d/play
# chkconfig --add /etc/init.d/play
# chkconfig play on
//! A simplistic echo server that allows client to exit using the quit command.
//! Based on various examples and sources from the internet.
#[crate_id = "echo:0.1pre"];
use std::io::{Listener, Acceptor, BufferedStream};
use std::io::net::tcp::TcpListener;
use std::io::net::ip::{SocketAddr, Ipv4Addr};
//FIXME: In general, need more error handling.
@elyzion
elyzion / echo.rs
Last active August 29, 2015 13:56
A very simple echo server.
//! A simplistic echo server that allows client to exit using the quit command.
#![crate_id = "echo:0.1pre"]
#![feature(phase)]
#[phase(plugin, link)] extern crate log;
use std::io::{Listener, Acceptor, BufferedStream};
use std::io::net::tcp::TcpListener;