Skip to content

Instantly share code, notes, and snippets.

View gcoakes's full-sized avatar

Gregory Oakes gcoakes

View GitHub Profile
Jan 06 23:57:07 amdgpu-fancontrol[805]: setting fan mode to 1
Jan 06 23:57:07 amdgpu-fancontrol[805]: /usr/bin/amdgpu-fancontrol: line 37: /sys/class/drm/card0/device/hwmon/hwmon2/pwm1_enable: No such file or directory
Jan 06 23:57:07 amdgpu-fancontrol[805]: cat: /sys/class/drm/card0/device/hwmon/hwmon2/temp1_input: No such file or directory
Jan 06 23:57:07 amdgpu-fancontrol[805]: current temp:
Jan 06 23:57:07 amdgpu-fancontrol[805]: cat: /sys/class/drm/card0/device/hwmon/hwmon2/pwm1: No such file or directory
Jan 06 23:57:07 amdgpu-fancontrol[805]: current pwm: , requested to set pwm to 15
Jan 06 23:57:07 amdgpu-fancontrol[805]: /usr/bin/amdgpu-fancontrol: line 46: [: : integer expression expected
Jan 06 23:57:07 amdgpu-fancontrol[805]: temp at last change was
Jan 06 23:57:07 amdgpu-fancontrol[805]: changing pwm to 15
Jan 06 23:57:07 amdgpu-fancontrol[805]: /usr/bin/amdgpu-fancontrol: line 49: /sys/class/drm/card0/device/hwmon/hwmon2/pwm1: No such file or directory
@gcoakes
gcoakes / gist:1f399c8655eba7a2bec73c7ef9059d08
Created March 12, 2020 17:30
nvme-cli sanitize-log json malformed test
[root@FM21V304-DEV09 NVMECLI]# make clean && git checkout v1.9 && make && ./nvme sanitize-log -o json /dev/nvme0n1
rm -f nvme argconfig.o suffix.o parser.o nvme-print.o nvme-ioctl.o nvme-lightnvm.o fabrics.o json.o nvme-models.o plugin.o nvme-status.o plugins/intel/intel-nvme.o plugins/lnvm/lnvm-nvme.o plugins/memblaze/memblaze-nvme.o plugins/wdc/wdc-nvme.o plugins/wdc/wdc-utils.o plugins/huawei/huawei-nvme.o plugins/netapp/netapp-nvme.o plugins/toshiba/toshiba-nvme.o plugins/micron/micron-nvme.o plugins/seagate/seagate-nvme.o plugins/virtium/virtium-nvme.o plugins/shannon/shannon-nvme.o *~ a.out NVME-VERSION-FILE *.tar* nvme.spec version control nvme-*.deb
make -C Documentation clean
make[1]: Entering directory `/root/.local/share/cve_automation/TOOLS_NEW/NVMECLI/Documentation'
rm -f *.xml *.xml+ *.html+
rm -f *.texi *.texi+ *.texi++ nvme.info nvmeman.info
rm -f *.pdf
rm -f howto-index.txt howto/*.html doc.dep
rm -f technical/*.html technical/api-index.txt
rm -f cmds-ancillaryinterrogators.txt cmds-ancillary
/*
* Copyright (C) 2020 Oakes, Gregory <gregoryoakes@fastmail.com>
* Author: Oakes, Gregory <gregory.oakes@fastmail.com>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero 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,
// @ts-check
/** @class Transport */
class Transport {
/**
* @method
* @name dial
* @param {string} multiaddr
* @param {boolean} role_override
* @returns {Promise<Connection>}
❯ cargo check --workspace
Checking cohort-crdt v0.1.0 (/home/gcoakes/src/cohort/crates/crdt)
error[E0495]: cannot infer an appropriate lifetime for autoref due to conflicting requirements
--> crates/crdt/src/gcounter.rs:78:14
|
78 | self.count() == other.count()
| ^^^^^
|
note: first, the lifetime cannot outlive the anonymous lifetime defined here...
--> crates/crdt/src/gcounter.rs:77:11