Skip to content

Instantly share code, notes, and snippets.

View i8degrees's full-sized avatar

Jeffrey Carpenter i8degrees

View GitHub Profile
@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 modified
2024-12-27 15:52:21 -0600
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
@i8degrees
i8degrees / app.cpp
Created July 21, 2025 06:11
wxWidgets Singleton Example
/*
* Copyright (C) 2023 - 2024 Vadym Hrynchyshyn <[email protected]>
*/
#include "app.h"
#include "utils.h"
#include "wusbip.h"
#include <libusbip/src/file_ver.h>
#!/bin/bash
#
# AUTHORS
# 1. Michael ****
# 2. Jeffrey Carpenter <[email protected]>
#
# CHANGELOG
# - [x] FIXME(JEFF): Fix the URL encodings in live_trackers_list_urls array
# - [x] TODO(JEFF): Add shell debug env; `DEBUG=1` and/or `DEBUG_TRACE=1` for
# feature activation
#!/bin/sh
# to use:
# write me to /usr/local/bin/dnsmasq-nsupdate.sh
# chmod +x /usr/local/bin/dnsmasq-nsupdate.sh
# append to /etc/dnsmasq.conf:
# dhcp-script=/usr/local/bin/dnsmasq-nsupdate.sh
# in /etc/init.d/dnsmasq, find the blob of lines that begin "procd_add_jail_mount" and add:
# procd_add_jail_mount /usr/local/bin/dnsmasq-nsupdate.sh /usr/bin/logger /usr/bin/nsupdate /lib /usr/lib /etc/dnsmasq-nsupdate
# restart dnsmasq
@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>