Skip to content

Instantly share code, notes, and snippets.

View i8degrees's full-sized avatar

Jeffrey Carpenter i8degrees

View GitHub Profile
@i8degrees
i8degrees / patriot_rma.md
Created June 13, 2026 17:15
Patriot Memory & Disk Warranties Draft

title: "Patriot Memory | Warranties Draft" source: https://www.patriotmemory.com/patriot-memory-warranties-and-rma date: 2026-06-13 10:09 tags:

  • rma
  • warranty
  • Patriot
  • P210 SSD description: Patriot warrants that all Patriot product(s) will be free from defects in the material and workmanship and are guaranteed to operate in complete conformance to the specification described in the datasheet. Learn more here.
- `vcpkg.json`
```shell
{
"$schema": "https://raw.githubusercontent.com/microsoft/vcpkg-tool/main/docs/vcpkg.schema.json",
"port-version": 0,
"version-semver": "0.13.1",
"name": "nomlib",
"description": "C++11 game engine",
"license": "BSD-2-Clause",
@i8degrees
i8degrees / !README.md
Last active May 26, 2026 04:31 — forked from mmozeiko/!README.md
Download MSVC compiler/linker & Windows SDK without installing full Visual Studio

This downloads standalone MSVC compiler, linker & other tools, also headers/libraries from Windows SDK into portable folder, without installing Visual Studio. Has bare minimum components - no UWP/Store/WindowsRT stuff, just files & tools for native desktop app development.

Run py.exe portable-msvc.py and it will download output into msvc folder. By default it will download latest available MSVC & Windows SDK from newest Visual Studio.

You can list available versions with py.exe portable-msvc.py --show-versions and then pass versions you want with --msvc-version and --sdk-version arguments.

To use cl.exe/link.exe first run setup_TARGET.bat - after that PATH/INCLUDE/LIB env variables will be updated to use all the tools as usual. You can also use clang-cl.exe with these includes & libraries.

To use clang-cl.exe without running setup.bat, pass extra /winsysroot msvc argument (msvc is folder name where output is stored).

@i8degrees
i8degrees / clang_windows_cross.cmake
Created April 22, 2026 17:28 — forked from HiImJulien/clang_windows_cross.cmake
Toolchain file to cross-compile from clang (WSL-Ubuntu) to Windows.
# Cross toolchain configuration for using clang-cl.
set(CMAKE_SYSTEM_NAME Windows)
set(CMAKE_SYSTEM_VERSION 10.0)
set(CMAKE_SYSTEM_PROCESSOR AMD64)
set(CMAKE_C_COMPILER "/usr/bin/clang-cl-9")
set(CMAKE_CXX_COMPILER "/usr/bin/clang-cl-9")
set(CMAKE_LINKER "/usr/bin/lld-link-9")
@i8degrees
i8degrees / test_mermaid.md
Last active December 25, 2025 22:01
Mermaid syntax test
@i8degrees
i8degrees / hyperlinks_surface-pro-v1
Created October 15, 2025 14:23
hyperlinks cache for upcoming project; surface pro v1 windows 10 -> Linux Mint
@i8degrees
i8degrees / setup.sh
Last active October 15, 2025 14:21
shutdown workaround patch
# Remark1: see https://uefi.org/sites/default/files/resources/UEFI_Shell_2_2.pdf for information
# Remark2: for manual shutdown or using EFI shell
# - SHUTDOWNSCRIPT is not required
# - remove "-u -@ ./cmdline.bin"
# - the command from "cd ..." to "iconv ..." is not required
# Path to device file to disk contains selected EFI partition
DISKFILE=/dev/nvme0n1
# selected EFI partition, index start at 1
PARTNUM=1
# entry number do you want to create entry, recommened to be the equals to highest entry number visibled in the command `efibootmgr` added 1.
@i8degrees
i8degrees / system-sleep
Last active October 15, 2025 13:54
systemd-sleep customizations stub
- `/usr/lib/systemd/system-sleep`
- `chmod +x`
```shell
#!/bin/bash
## REMARK:
# - above shebang is required for scripting file
# - 1st arg passed to executable file is either "pre" (mean that the entry of a power operation) or "post" (mean that the exit of a power operation)
# - 2nd arg passed to executable file is either "suspend", "hibernate", "hybrid-sleep", or "suspend-then-hibernate", depends on what power operation is operating
# - SYSTEMD_SLEEP_ACTION environment variable is helpful for "suspend-then-hibernate", it has value of either "suspend", "hibernate", or "suspend-after-failed-hibernate"
@i8degrees
i8degrees / ssd_optimizations.md
Created August 25, 2025 19:15
u.2 nvme usage
created 2024-12-27 15:52:21 -0600
modified 2025-04-21 07:23:34 -0500

ssd_optimizations


created: 2023-01-15T00:00:00-05:00 modified: 2023-01-15T00:00:00-05:00

@i8degrees
i8degrees / PM1377.md
Created August 24, 2025 18:00
smart diag
smartctl 7.4 2023-08-01 r5530 [x86_64-linux-5.15.178-2-MANJARO] (local build)
Copyright (C) 2002-23, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Number:                       AEGL15T4P5xnNTRI
Serial Number:                      S5V3NA0T800880
Firmware Version:                   3P01
PCI Vendor ID:                      0x144d
PCI Vendor Subsystem ID:            0x1590