Skip to content

Instantly share code, notes, and snippets.

View MrDOS's full-sized avatar
🦆

Samuel Coleman MrDOS

🦆
View GitHub Profile
@MrDOS
MrDOS / gist:22bb6a5b8098bf72b219852a81e321a6
Created October 23, 2026 20:22
/dev/nvme1n1p1 NVMe errors, 2026-10-23
[Fri Oct 23 21:17:22 2026] nvme nvme1: I/O tag 202 (f0ca) opcode 0x1 (Write) QID 2 timeout, aborting req_op:WRITE(1) size:131072
[Fri Oct 23 21:17:22 2026] nvme nvme1: I/O tag 203 (f0cb) opcode 0x1 (Write) QID 2 timeout, aborting req_op:WRITE(1) size:131072
[Fri Oct 23 21:17:22 2026] nvme nvme1: I/O tag 204 (f0cc) opcode 0x1 (Write) QID 2 timeout, aborting req_op:WRITE(1) size:131072
[Fri Oct 23 21:17:22 2026] nvme nvme1: I/O tag 205 (f0cd) opcode 0x1 (Write) QID 2 timeout, aborting req_op:WRITE(1) size:131072
[Fri Oct 23 21:17:52 2026] nvme nvme1: I/O tag 202 (f0ca) opcode 0x1 (Write) QID 2 timeout, reset controller
[Fri Oct 23 21:19:54 2026] nvme nvme1: Device not ready; aborting reset, CSTS=0x1
[Fri Oct 23 21:19:54 2026] nvme1n1: Read(0x2) @ LBA 1340924600, 48 blocks, Host Aborted Command (sct 0x3 / sc 0x71)
[Fri Oct 23 21:19:54 2026] I/O error, dev nvme1n1, sector 1340924600 op 0x0:(READ) flags 0x80700 phys_seg 6 prio class 2
[Fri Oct 23 21:19:54 2026] nvme nvme1: Abort status: 0x371
[Fri Oct 23 21:19:54
@MrDOS
MrDOS / launch.json
Created June 5, 2024 23:15
How do you influence a VSCode launch environment?
{
"version": "0.2.0",
"configurations": [
{
"name": "Launch",
"type": "debugpy",
"request": "launch",
"program": "${file}",
"console": "integratedTerminal"
}
@MrDOS
MrDOS / hide-porkbun-handshake-tlds.js
Created September 19, 2022 12:08
Userscript to hide Handshake TLDs from Pornbun's all-extensions page.
// ==UserScript==
// @name Hide Porkbun Handshake TLDs
// @description Hide Handshake TLDs from Pornbun's all-extensions page.
// @namespace http://seenet.ca/
// @version 1.0
// @match https://porkbun.com/products/domains
// @icon https://www.google.com/s2/favicons?sz=64&domain=porkbun.com
// @grant none
// ==/UserScript==
package config
import (
"net/http"
"regexp"
"strings"
)
// idPatterns describes patterns of IDs in URLs. These patterns are matched
// against an entire URL. These patterns are used as given without any
import java.io.IOException;
import java.io.InputStream;
import gnu.io.CommPortIdentifier;
import gnu.io.SerialPort;
public class DisconnectTest
{
private static final int SLEEP_AFTER_DISCONNECT = 2_000;
public static void main(String[] args) throws Exception
<?php
/**
* Plugin Name: Comment Suppressor
* Description: Hide comments for anonymous and “Subscriber” users.
* Version: 1.0.1
* Author: Samuel Coleman <samuel@seenet.ca>
* License: WTFPLv2
*/
#! /bin/sh
# Configure an Ubuntu system for running Space Engineers. Flagrantly untested.
# Seriously, I haven't even run this once.
# TODO: Report progress to the web UI.
# TODO: Error checking/early failure.
# User data should contain:
#
@MrDOS
MrDOS / modifyValidatorValue.js
Created July 25, 2019 18:13
The Daily WTF: Break my Validation
modifyValidatorValue: function (fieldName, validatorKey, key, value) {
if (helper.isNullOrUndefined(fieldName)
|| helper.isNullOrUndefined(validatorKey)
|| helper.isNullOrUndefined(key)
|| helper.isNullOrUndefined(value)) {
return;
}
// Iterate over fields
var field;
# In retaliation to https://blog.theodo.fr/2018/03/regex-warrior/.
#
# Usage:
#
# awk -v FS=';' -v OFS=';' -f mock.awk <mock.csv
# “NR” is the number of the record we're operating on; effectively a sequential
# counter. We don't want to filter on the first row, which is the header.
NR > 1 && $7 == "false" {
next;
Package: whatpulse
Section: misc
Priority: optional
Homepage: https://whatpulse.org/
Standards-Version: 3.9.2
Depends: libqtcore4, libqtwebkit4, libqt4-sql, libqt4-sql-sqlite, libqt4-script,
libssl1.0-dev, libpcap0.8, gksu
Description: Dummy package for WhatPulse dependencies.