Skip to content

Instantly share code, notes, and snippets.

View JnCrMx's full-sized avatar

JCM JnCrMx

  • Berlin, Germany
  • 08:35 (UTC +02:00)
  • Bluesky @jcm.re
View GitHub Profile
@JnCrMx
JnCrMx / usb-ether.sh
Last active June 6, 2025 15:04 — forked from dafta/usb-ether.sh
Steam Deck USB Ethernet (without DHCP server!)
#!/bin/sh
if [ "$UID" -ne 0 ]; then
echo "This script needs to be executed as root"
exit 1
fi
vendor_id="0x3000" # Valve
product_id="0x28DE"
serial_number="$(dmidecode -s system-serial-number)" # The Steam Deck's serial number
@JnCrMx
JnCrMx / numbers.asm
Created March 22, 2021 09:59
Weird Assembly program to print the numbers from 1 to 100.
section .text
global _start
print:
xor rax, rax
inc rax
xor rdi, rdi
xor rdx, rdx
inc rdx
inc rdx
@JnCrMx
JnCrMx / simple_renderer.cpp
Last active January 26, 2021 10:29
An extremely simple and basic 3d renderer written in C++ using HIP and lodepng.
#include <iostream>
#include <iomanip>
#include <string>
#include <vector>
#include <fstream>
#include <limits>
#include <chrono>
#include <hip/hip_runtime.h>
#include <hip/hip_vector_types.h>
#include "lodepng.h"
@JnCrMx
JnCrMx / instructions.md
Last active August 10, 2022 15:24
Build tensorflow-lite Java libraries for desktop rather than for Android

Required software:

  • Bazel version 3.0.0
  • Android SDK with NDK installed

First of all you need to clone tensorflow's repository from GitHub using git clone:

git clone https://github.com/tensorflow/tensorflow.git

Then cd into the directory you just cloned the repository to:

@JnCrMx
JnCrMx / GradleStartPatch.java
Last active April 8, 2020 14:09
Class to launch Minecraft Forge SRC with Java 8
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
public class GradleStartPatch
{
public static void main(String[] args)
{
try
{
// IDEA won't let me import those Classes, therefore acquire them manually.