Skip to content

Instantly share code, notes, and snippets.

smartctl 7.3 2022-02-28 r5338 [x86_64-linux-6.2.1-arch1-1] (local build)
Copyright (C) 2002-22, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF INFORMATION SECTION ===
Device Model: SSD 1TB
Serial Number: 2023011300110
LU WWN Device Id: 0 000000 000000000
Firmware Version: HPS2704D
User Capacity: 1,000,204,886,016 bytes [1.00 TB]
Sector Size: 512 bytes logical/physical
--[ FileConcat-S src/license_blurb.lua HASH:1198092acdd22752d33872a3d0fdd75ae520cfa3b8a1acc1d66fac6d8906229b ]--
--[[
Copyright (C) 2017 AMM
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
--[ FileConcat-S src/license_blurb.lua HASH:1198092acdd22752d33872a3d0fdd75ae520cfa3b8a1acc1d66fac6d8906229b ]--
--[[
Copyright (C) 2017 AMM
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
@jamesxmcintosh
jamesxmcintosh / 000000.bgra.log
Created May 19, 2021 01:35
mpv_thumbnail_script error log
`[ 0.003][v][cplayer] mpv 0.33.1 Copyright © 2000-2020 mpv/MPlayer/mplayer2 projects
[ 0.003][v][cplayer] built on UNKNOWN
[ 0.003][v][cplayer] FFmpeg library versions:
[ 0.003][v][cplayer] libavutil 56.70.100
[ 0.003][v][cplayer] libavcodec 58.134.100
[ 0.003][v][cplayer] libavformat 58.76.100
[ 0.003][v][cplayer] libswscale 5.9.100
[ 0.003][v][cplayer] libavfilter 7.110.100
[ 0.003][v][cplayer] libswresample 3.9.100
[ 0.003][v][cplayer] FFmpeg version: 4.4
#!/bin/bash
echo "Hi there!"
# Parameter Expansion
xxx${xxx}xxx # parameter in braces
xxx${"{"}xxx xxx${"}"}xxx # brace in quoted string
xxx${xxx}xxx # Parameter in braces
xxx${var/\"}xxx xxx${var/\}}xxx # Escaped characters
@jamesxmcintosh
jamesxmcintosh / nvidia-gpu-sensor.pl
Created December 7, 2018 08:23 — forked from frantic1048/nvidia-gpu-sensor.pl
KDE KSysGuard NVIDIA GPU temperature/memory/utilization sensor
#!/usr/bin/perl -w
# act as a KSysGuard sensor
# provides NVIDIA GPU info via `nvidia-settings`
# Usage (e.g. add gpu temperature sensor)
# 1. save this file, make sure it has a exec permission
# 2. in KSysGuard's menu, open `File` -> `Monitor Remote Machine`
# 3.1 in new dialog, type `Host` whatever you want
# 3.2 set `Connection Type` to `Custom command`