Skip to content

Instantly share code, notes, and snippets.

View gwr's full-sized avatar

Gordon Ross gwr

View GitHub Profile
@gwr
gwr / procinfo.cs
Last active July 14, 2025 18:12
S.D.Process test
// C# program to print info about curproc
using System;
using System.Diagnostics;
// namespace declaration
namespace TestProcNS
{
// Class declaration
class TestProcCl
@gwr
gwr / watchdir.c
Last active September 15, 2024 14:53
Demo_port_associate
/*
* This file and its contents are supplied under the terms of the
* Common Development and Distribution License ("CDDL"), version 1.0.
* You may only use this file in accordance with the terms of version
* 1.0 of the CDDL.
*
* A full copy of the text of the CDDL should have accompanied this
* source. A copy of the CDDL is also available via the Internet at
* http://www.illumos.org/license/CDDL.
*/
@gwr
gwr / DotNet Scratch
Last active July 1, 2024 21:33
dotnet runtime illumos
See (3520dfbf14190e9225e8214f434ca38e/README.md)
@gwr
gwr / wpts-smb-bvt.html
Last active August 2, 2023 19:45
smbsrv WPTS SMB BVT test results
<!--
use like this:
xsltproc -o ~/Temp/wpts-results.html ~/Temp/wpts.xsl ~/Downloads/_smbtest_2021-12-08_17_28_23.trx
--><html xmlns:t="http://microsoft.com/schemas/VisualStudio/TeamTest/2010">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<style type="text/css">
h2 {color: sienna}
.resultsHdrRow { font-face: arial; padding: 5px }
.resultsRow { font-face: arial; padding: 5px }
@gwr
gwr / gist:53819bdcb7bd24d9b62609338626c404
Created August 2, 2023 19:37
smbsrv-tests baseline summary output
smb2.scan.scan.scan: SKIP
smb2.scan.getinfo.getinfo: SKIP
smb2.scan.setinfo.setinfo: SKIP
smb2.scan.find.find: SKIP
smb2.getinfo.complex.complex: FAIL
smb2.getinfo.fsinfo.fsinfo: FAIL
smb2.getinfo.qfs_buffercheck.qfs_buffercheck: FAIL
smb2.getinfo.qfs1_buffer24.qfs1_buffer24: PASS
smb2.getinfo.qfile_buffercheck.qfile_buffercheck: FAIL
smb2.getinfo.qsec_buffercheck.qsec_buffercheck: PASS
# ipmitool sensor
3VSB | 3.320 | Volts | ok | 2.880 | 3.040 | na | na | 3.700 | 3.880
5VSB | 5.100 | Volts | ok | 4.260 | 4.500 | na | na | 5.490 | 5.730
VCPU | 1.430 | Volts | ok | na | na | na | na | 1.650 | 1.730
VSOC | 1.020 | Volts | ok | 0.340 | 0.360 | na | na | 1.540 | 1.610
VCCM | 1.210 | Volts | ok | 1.020 | 1.080 | na | na | 1.320 | 1.380
APU_VDDP | 0.910 | Volts | ok | 0.770 | 0.810 | na | na | 1.160 | 1.210
PM_VDD_CLDO | 1.200 | Volts | ok | 1.020 | 1.080 | na | na | 1.320 | 1.380
PM_VDDCR_S5 | 1.010 | Volts | ok | 0.800 | 0.890 | na | na | 1.160 | 1.210
PM_VDDCR
% ipmitool -I lanplus -H ... -U ... sensor
Password:
3VSB | 3.320 | Volts | ok | 2.880 | 3.040 | na | na | 3.700 | 3.880
5VSB | 5.070 | Volts | ok | 4.260 | 4.500 | na | na | 5.490 | 5.730
VCPU | na | Volts | na | na | na | na | na | 1.650 | 1.730
VSOC | na | Volts | na | 0.340 | 0.360 | na | na | 1.540 | 1.610
VCCM | na | Volts | na | 1.020 | 1.080 | na | na | 1.320 | 1.380
APU_VDDP | na | Volts | na | 0.770 | 0.810 | na | na | 1.160 | 1.210
PM_VDD_CLDO | na | Volts | na | 1.020 | 1.080 | na | na | 1.320 | 1.380
PM_VDDCR_S5 | na | Volts | na | 0.800 | 0.890 | na | na | 1
619: /usr/lib/saf/ttymon -g -d /dev/console -l console -m ldterm,ttcompat -h -p rock
argv[0]: /usr/lib/saf/ttymon
argv[1]: -g
argv[2]: -d
argv[3]: /dev/console
argv[4]: -l
argv[5]: console
argv[6]: -m
argv[7]: ldterm,ttcompat
argv[8]: -h
@gwr
gwr / gist:4dcb3d15629ef36df372
Created June 19, 2015 23:08
A handy script to use with: git diff some-branch -- `smbsrv-dirs`
#!/bin/sh
# print the list of directories to look in when comparing SMB code across branches.
cat <<EOF
usr/src/uts/common/smbsrv
usr/src/uts/common/netsmb
usr/src/uts/common/fs/smbsrv
usr/src/uts/common/fs/smbclnt
usr/src/common/smbsrv
usr/src/lib/libads