Skip to content

Instantly share code, notes, and snippets.

@Natrinicle
Natrinicle / failing_drive_serial_numbers
Created October 6, 2025 14:20
Find Drive Serial Numbers that are Failing According to SMART using BASH
function failing_drive_serial_numbers () {
shopt -s nullglob
local drives=()
local nvme_devices=($(lsblk -dno name,tran 2>/dev/null | awk '$2 == "nvme" {print "/dev/" $1}'))
local ssd_devices=($(lsblk -dno name,rota,tran 2>/dev/null | awk '$2 == "0" && $3 != "nvme" {print "/dev/" $1}'))
local hdd_devices=($(lsblk -dno name,rota 2>/dev/null | awk '$2 == "1" {print "/dev/" $1}'))
if [ "$#" -eq 0 ]; then
set -- "$@" "all"
fi
#!/usr/bin/env bash
IR_AGENT_TOKEN="REDACTED"
XDG_RUNTIME_DIR=/run/user/$(id -u)
APP_NAME="ir_agent"
APP_FOLDER="$XDG_RUNTIME_DIR/app/$APP_NAME"
mkdir -p "${APP_FOLDER}"
@Natrinicle
Natrinicle / keybase.md
Created March 28, 2020 16:45
Keybase Proof

Keybase proof

I hereby claim:

  • I am natrinicle on github.
  • I am natrinicle (https://keybase.io/natrinicle) on keybase.
  • I have a public key ASCv6ZlvE824mDSuzSwLQISSpyKsiQIH2seWHB1mGhgDwQo

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am natrinicle on github.
  • I am natrinicle (https://keybase.io/natrinicle) on keybase.
  • I have a public key whose fingerprint is E17E 56EF 69E7 BC3F BA4A ED3C C105 46A5 4ABA 1CE5

To claim this, I am signing this object: