Skip to content

Instantly share code, notes, and snippets.

View KiralyCraft's full-sized avatar

Alex Kiraly KiralyCraft

View GitHub Profile
@KiralyCraft
KiralyCraft / min-linux.md
Created August 1, 2024 18:35 — forked from bluedragon1221/min-linux.md
Create a minimal linux from scratch with initramfs and busybox.

https://www.youtube.com/watch?v=QlzoegSuIzg

The Three Parts

To build a minimal linux distro, we need three parts:

  1. The Kernel
  2. Userspace (busybox)
  3. Bootloader (syslinux)

When the system boots, it loads the kernel, which loads busybox.

@KiralyCraft
KiralyCraft / showBlockPCIe.sh
Last active May 30, 2024 07:26
Show which PCI-e devices do block devices belong to
#!/bin/bash
# Get a list of all block devices
block_devices=$(lsblk -nd -o NAME)
# Loop through each block device
for device in $block_devices; do
# Run udevadm info and filter the output
pci_info=$(udevadm info --query=all --name=/dev/$device | grep -i pci)
# Check if we found a matching line
@KiralyCraft
KiralyCraft / gist:50877d899c7f5ae18a1a6d84687c0b50
Created November 25, 2023 07:36
GTX 580 Hashcat 6.2.6 OpenCL Benchmark
hashcat (v6.2.6) starting in benchmark mode
* Device #2: This hardware has outdated CUDA compute capability (2.0).
For modern OpenCL performance, upgrade to hardware that supports
CUDA compute capability version 5.0 (Maxwell) or higher.
* Device #2: WARNING! Kernel exec timeout is not disabled.
This may cause "CL_OUT_OF_RESOURCES" or related errors.
To disable the timeout, see: https://hashcat.net/q/timeoutpatch
CUDA API (CUDA 9.0)
===================
This file has been truncated, but you can view the full file.
[00:50:41] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker
[00:50:41] [main/INFO] [LaunchWrapper]: Using primary tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker
[00:50:41] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLTweaker
[00:50:41] [main/INFO] [FML]: Forge Mod Loader version 14.23.5.2846 for Minecraft 1.12.2 loading
[00:50:41] [main/INFO] [FML]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.8.0_91, running on Windows 10:amd64:10.0, installed at C:\Program Files\Java\jre1.8.0_91
[00:50:41] [main/ERROR] [FML]: Apache Maven library folder was not in the format expected. Using default libraries directory.
[00:50:41] [main/ERROR] [FML]: Full: C:\Users\KiralyCraft\AppData\Roaming\GamsterFiles\libraries\maven-artifact-3.5.3.jar
[00:50:41] [main/ERROR] [FML]: Trimmed: c:/users/kiralycraft/appdata/roaming/gamsterfiles/
[00:50:41] [main/WARN] [FML]: The coremod FMLCorePlugin (net.minecraft
This file has been truncated, but you can view the full file.
[16:59:49] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLServerTweaker
[16:59:49] [main/INFO] [LaunchWrapper]: Using primary tweak class name net.minecraftforge.fml.common.launcher.FMLServerTweaker
[16:59:49] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLServerTweaker
[16:59:49] [main/INFO] [FML]: Forge Mod Loader version 14.23.5.2847 for Minecraft 1.12.2 loading
[16:59:49] [main/INFO] [FML]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.8.0_241, running on Linux:amd64:5.3.0-51-generic, installed at /mcpool/jre1.8.0_241
[16:59:49] [main/WARN] [FML]: The coremod FMLCorePlugin (net.minecraftforge.fml.relauncher.FMLCorePlugin) is not signed!
[16:59:49] [main/WARN] [FML]: The coremod FMLForgePlugin (net.minecraftforge.classloading.FMLForgePlugin) is not signed!
[16:59:49] [main/INFO] [FML]: Searching /mcpool/FTBRevelation/./mods for mods
[16:59:49] [main/INFO] [FML]: Searching /mcpool/FTBRevelation/./mods/1.12.2
This file has been truncated, but you can view the full file.
[11:53:48] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLServerTweaker
[11:53:48] [main/INFO] [LaunchWrapper]: Using primary tweak class name net.minecraftforge.fml.common.launcher.FMLServerTweaker
[11:53:48] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLServerTweaker
[11:53:48] [main/INFO] [FML]: Forge Mod Loader version 14.23.5.2847 for Minecraft 1.12.2 loading
[11:53:48] [main/INFO] [FML]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.8.0_241, running on Linux:amd64:5.3.0-51-generic, installed at /mcpool/jre1.8.0_241
[11:53:49] [main/WARN] [FML]: The coremod FMLCorePlugin (net.minecraftforge.fml.relauncher.FMLCorePlugin) is not signed!
[11:53:49] [main/WARN] [FML]: The coremod FMLForgePlugin (net.minecraftforge.classloading.FMLForgePlugin) is not signed!
[11:53:49] [main/INFO] [FML]: Searching /mcpool/FTBRevelation/./mods for mods
[11:53:49] [main/INFO] [FML]: Searching /mcpool/FTBRevelation/./mods/1.12.2
@KiralyCraft
KiralyCraft / gist:15a89729091a622fe70496cc166b84de
Created March 24, 2020 10:01
buildcraft-all-7.99.24.4 _ Spark Healthreport
iVBORw0KGgoAAAANSUhEUgAABv0AAA1tCAYAAADjMcw8AAAgAElEQVR4XuzdD3SV9Z3v+08iUJQAIlgzOkgyYJNarHpirPgv1FEIlXj1nLuK/eMlgtzWg9LpGdap2HM6zJwzomeY6fiHsV2IDUd7K13rjl6DNYijxn9YMNOqqMlUJvwZHSwgJQRFVHLX7/mz9/Nv7+y98+zk2ck7a80akv08v+f3e/2eoMtPv99fWWVlZZ/4QgABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQACBkhUoI/Qr2b1j4ggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAghYAoR+vAgIIIAAAggggAACCCCAAAIIIIAAAggggAACCCCAAAIIlLgAoV+JbyDTRwABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQIDQj3cAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAgRIXSFzo19fXp48//liHDx+W+fOECRM0duzYEmdm+ggggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggUTyBxod9HH31kBX5lOq7jx6XyE07Q5MmTVV5eXjwFRkYAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEEEECghAUSFfp9+OGH6u3t1cRx0henjdE//8vH+uSzckK/En7BmDoCCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggEDxBRIT+rmB35hRffr+9adq38Hj+tkT+zV6zFidfPLJxZfgCQgggAACCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAgiUqMCQh37m3L6jR49aLT1N4Pfd607RsuvP1P99xw49va1HkyZN0uc+97kS5WXaCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCBRfYMhDP/cMP9PS8z//p1P1F0v+RM++elCL/sc72nuwT1OmTFFZWVnxJXgCAggggAACCCCAAAIIIIAAAggggAACCCCA