Skip to content

Instantly share code, notes, and snippets.

@crash8229
crash8229 / install_hyperv_session.sh
Last active October 11, 2025 09:02 — forked from ikr4-m/install.sh
Hyper-V Enhanced Session for Debian Cinnamon
#!/bin/sh
# This script based on linux-vm-tools for Ubuntu 22.02.
# Thanks to https://github.com/Hinara/linux-vm-tools/ to script
# This script is for Ubuntu 22.04 Jammy Jellyfish to download and install XRDP+XORGXRDP via
# source.
#
# Major thanks to: http://c-nergy.be/blog/?p=11336 for the tips.
#
@crash8229
crash8229 / rpi_pico_sd_card_read_test_adafruit_bob.txt
Last active May 23, 2023 08:30
RPi Pico SD card test with the Adafruit SPI/SDIO Breakout Board
// RPi Pico SD Card Read Test Results with the Adafruit SPI/SDIO Breakout Board
// Code used to read from the SD Card: https://github.com/carlk3/no-OS-FatFS-SD-SPI-RPi-Pico
//
// SPI:
// 104857500 bytes in 209715 byte chunks:
// | Hz | Cheap 8GB SD card | PNY 32GB SD Card | SAMSUNG 32GB SD Card |
// | 8928571 | 428.8 KB/s | 521.9 KB/s | 500.0 KB/s |
// | 10416666 | 459.6 KB/s | 568.1 KB/s | 547.6 KB/s |
// | 12500000 | 495.1 KB/s | 623.3 KB/s | 598.7 KB/s |
// | 15625000 | 536.3 KB/s | 690.2 KB/s | 660.1 KB/s |
@crash8229
crash8229 / Dockerfile
Created July 15, 2022 22:46
Example of running a GUI app via X11 with Docker
FROM alpine:latest
LABEL title="xeyes"
LABEL description="Test of X11 using xeyes"
LABEL author="crash8229"
RUN apk add xeyes
CMD [ "xeyes" ]
@crash8229
crash8229 / mcresources.py
Created January 18, 2022 03:05 — forked from dequis/mcresources.py
This script prints a list of URLs required to download all the minecraft resources that the new launcher can access (jars, libraries, assets) Redirect stdout to a file to do something useful with it.
"""
This script prints a list of URLs required to download all the minecraft
resources that the new launcher can access (jars, libraries, assets)
Redirect stdout to a file to do something useful with it.
Will store cached json indexes in
versions.json
versions/*.json
@crash8229
crash8229 / ReflectionDemo.java
Last active July 26, 2020 05:51
Me practicing reflections to access private methods.
import java.lang.reflect.Method;
import static java.lang.Math.pow;
class Test {
public int value;
public Test(int v) {
value = v;
}