Skip to content

Instantly share code, notes, and snippets.

View i8degrees's full-sized avatar

Jeffrey Carpenter i8degrees

View GitHub Profile
@i8degrees
i8degrees / games.md
Created April 30, 2025 19:50
My games "TODO"
  • FortNite

  • Final Fantasy Brav

  • F.E.A.R.

  • Uncharted

  • Farcry

  • Perfect Dark

  • Legend of Dragoon

  • Shadowrun

  • Secret of Evermore

@i8degrees
i8degrees / virgil_from.rss
Created April 27, 2025 05:02
youtube rss feed
<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns:yt="http://www.youtube.com/xml/schemas/2015" xmlns:media="http://search.yahoo.com/mrss/" xmlns="http://www.w3.org/2005/Atom">
<link rel="self" href="http://www.youtube.com/feeds/videos.xml?playlist_id=PLDGx-1nzm08f8RJ-eD0iGfNWZDGubRIqt"/>
<id>yt:playlist:PLDGx-1nzm08f8RJ-eD0iGfNWZDGubRIqt</id>
<yt:playlistId>PLDGx-1nzm08f8RJ-eD0iGfNWZDGubRIqt</yt:playlistId>
<yt:channelId>UCU0EAOCPqUgEGdpixEVDRHQ</yt:channelId>
<title>virgil_from</title>
<author>
<name>Jeffrey Carpenter</name>
<uri>https://www.youtube.com/channel/UCU0EAOCPqUgEGdpixEVDRHQ</uri>
@i8degrees
i8degrees / movies.md
Created April 26, 2025 05:18
movies export from my notes
@i8degrees
i8degrees / NVMe_tweaks.md
Created April 21, 2025 23:10 — forked from v-fox/NVMe_tweaks.md
Linux kernel optimizations for NVMe

By default Linux distros are unoptimized in terms of I/O latency. So, here are some tips to improve that.

Most apps still don't do multi-threaded I/O access, so it's a thread-per-app which makes per-app speed always bottlenecked by single-core CPU performance (that's not even accounting for stuttering on contention between multiple processes), so even with NVMe capable of 3-6 GB/s of linear read you may get only 1-2 GB/s with ideal settings and 50-150/100-400 MB/s of un/buffered random read (what apps actually use in real life) is the best you can hope for.

All writes are heavily buffered on 3 layers (OS' RAM cache, device's RAM cache, device's SLC-like on-NAND cache), so it's difficult to get real or stable numbers but writes are largelly irrelevant for system's responsiveness, so they may be sacrificed for better random reads.

The performance can be checked by:

  • `fio --name=read --readonly --rw={read/randread} --ioengine=libaio --iodepth={jobs_per_each_worker's_command} --bs={4k/2M} --direct={0/1} --num
@i8degrees
i8degrees / nvme-vf
Created April 21, 2025 12:21 — forked from roolebo/nvme-vf
#!/bin/bash
# SPDX-License-Identifier: MIT
# Copyright (C) 2024 Roman Bolshakov.
# All rights reserved.
#
# The script was tested on Samsung PM173x with FW EPK9CB5Q and EPK9GB5Q.
#
# It's recommended to use at least VQ=3 VI=3 with PM173x for decent
# single-threaded I/O performance.
#
@i8degrees
i8degrees / sanitize_url.mjs
Last active April 10, 2025 17:50
Borrowed from a chrome web extension at https://github.com/mikan/ec-url-cleaner
#!/usr/bin/env node
`use strict`;
import {argv} from "node:process";
import {URL} from "node:url";
//const url = require('node:url');
// [SOURCE](https://github.com/mikan/ec-url-cleaner)

Steam Client on APFS Case Sensitive Mac OS Drive

If you are using APFS Case Sensitive File system and trying to use Steam, it will flicker & silently fail or show the following error message:

steam requires that '~/library/application support/steam/steam.appbundle/steam/contents/macos' be on a case-insensitive filesystem.

To fix the issue, follow the instruction here.

Run from your user account, NOT ROOT!

@i8degrees
i8degrees / sendkeys.awk
Created November 29, 2024 23:38 — forked from zambonin/sendkeys.awk
AWK script to send multiple `sendkey` commands to a QEMU virtual machine.
#!/usr/bin/env awk -f
#
# AWK script to send multiple `sendkey` commands to a QEMU virtual machine.
# It writes at a rate of roughly 40 keys per second, due to lower delays
# resulting in garbage output.
#
# It makes use of a TCP client created by an external utility, such as OpenBSD
# Netcat, to interact with QEMU's monitor and send a stream of `sendkey`
# commands. This is a practical way to transfer a small file or to script
# interactions with a terminal user interface.
Gigabytes (GB) Megabytes (MB) decimal Megabytes (MB) binary
1 GB 1,000 MB 1,024 MB
2 GB 2,000 MB 2,048 MB
3 GB 3,000 MB 3,072 MB
4 GB 4,000 MB 4,096 MB
5 GB 5,000 MB 5,120 MB
6 GB 6,000 MB 6,144 MB
7 GB 7,000 MB 7,168 MB
8 GB 8,000 MB 8,192 MB
@i8degrees
i8degrees / firefox_mobile.md
Last active November 26, 2024 23:05
Enable the use private PKI certificates for Firefox Mobile on Android
created modified description
2024-11-18+CST -06:00
2024-11-18+CST -06:00
Enable the use private PKI certificates for Firefox Mobile on Android

Firefox Mobile

usage