Adapted from Arch wiki
The extrnal monitor has to be attached to eGPU, not laptop. Otherwise this won't work.
Install virt manager:
sudo apt-get install qemu-kvm libvirt-daemon-system libvirt-clients bridge-utils
################################################################################ | |
########### 2024 July 03 - TLP P14s Gen 5 AMD by Sylvain POULAIN ############### | |
################################################################################ | |
# Content of /etc/tlp.d/tlp.conf for P14s Gen 5 AMD | |
# (Also works with T14 Gen 5 : same hardware, same motherboard) | |
################################################################################ | |
# Complete harware list => https://linux-hardware.org/?probe=1c547a828f | |
################################################################################ | |
# /!\ For better performance use "acpi.ec_no_wakeup=1" in Kernel option | |
# https://patchwork.kernel.org/project/linux-acpi/patch/ZnFYpWHJ5Ml724Nv@ohnotp/ |
import torch, grp, pwd, os, subprocess | |
devices = [] | |
try: | |
print("\n\nChecking ROCM support...") | |
result = subprocess.run(['rocminfo'], stdout=subprocess.PIPE) | |
cmd_str = result.stdout.decode('utf-8') | |
cmd_split = cmd_str.split('Agent ') | |
for part in cmd_split: | |
item_single = part[0:1] | |
item_double = part[0:2] |
Adapted from Arch wiki
The extrnal monitor has to be attached to eGPU, not laptop. Otherwise this won't work.
Install virt manager:
sudo apt-get install qemu-kvm libvirt-daemon-system libvirt-clients bridge-utils
#!/bin/bash | |
### usage ./convert.sh game | |
## where game is baseName of the export | |
if [ ! "$1" ]; then | |
read -p 'Game name: ' game | |
else | |
game="$1" | |
fi |
Copy from: https://gist.github.com/felixjones/f8a06bd48f9da9a4539f
This is an English description of the .PMX file format used in Miku Miku Dance (MMD).
PMX is the successor to the .PMD format (Polygon Model Data).
PMX files must be read in binary mode as EOF markers may appear in the middle of the file.
/* OpenSimplex Noise in C# | |
* Ported from https://gist.github.com/KdotJPG/b1270127455a94ac5d19 | |
* and heavily refactored to improve performance. */ | |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Runtime.CompilerServices; | |
namespace NoiseTest |
/** | |
* K.jpg's OpenSimplex 2, smooth variant ("SuperSimplex") | |
* | |
* More language ports, as well as legacy 2014 OpenSimplex, can be found here: | |
* https://github.com/KdotJPG/OpenSimplex2 | |
*/ | |
public class OpenSimplex2S { | |
private static final long PRIME_X = 0x5205402B9270C86FL; |