Skip to content

Instantly share code, notes, and snippets.

View jubalskaggs's full-sized avatar

Jubal Skaggs jubalskaggs

View GitHub Profile
@phansson
phansson / watchdir.c
Created August 9, 2015 16:20
Solaris File Events Notification working example
/* ************************************************************************
* watchdir.c
*
* watchdir uses Solaris' File Event Notification system to monitor
* a directory for changes. It is in this respect similar in use case
* to Linux's inotify-tools.
*
* This method of monitoring a directory is far superior to any
* alternative that would probably use looping and some sort of polling.
*
@teancom
teancom / gist:0d80c417b49cdc926a1c381b195fa522
Created October 18, 2017 20:32
console.app output every time the screen pauses
fault 14:30:05.230227 -0600 kernel virtual IOReturn IOAccelEventMachine2::waitForStamp(int32_t, stamp_t, stamp_t *): initial wait for 1 second expired. Continue wait for 4 seconds. stamp 8060894 (gpu_stamp=8060893)
fault 14:30:09.230120 -0600 kernel virtual IOReturn IOAccelEventMachine2::waitForStamp(int32_t, stamp_t, stamp_t *): timeout waiting for IntelAccelerator stamp 8060894 (gpu_stamp=8060893)
fault 14:30:09.230137 -0600 kernel void IOAccelEventMachine2::handleFinishChannelRestart(IOReturn, int32_t, uint32_t) - Setting restart type to 4
fault 14:30:09.230141 -0600 kernel void IOAccelEventMachine2::handleFinishChannelRestart(IOReturn, int32_t, uint32_t): GPURestartDequeued stampIdx=4 type=4 fromWhere=1 waitingOnIdx=4
fault 14:30:09.230190 -0600 kernel void IOAccelEventMachine2::restart_channel(): GPURestartSkipped stampIdx=4 type=4
fault 14:30:09.230194 -0600 kernel void IOAccelEventMachine2::restart_channel(): no channel associated with stamp_idx 4 (type 4)
@mgerdts
mgerdts / README.md
Last active July 26, 2024 17:12
Install windows with bhyve

These are bare-bones instructions for creating a Windows image for bhyve on SmartOS. You will need a platform image that has the fix for OS-7117. Platform images that I've used in testing are here: iso tgz usb

Create a volume that will be the disk.

zfs create -o volblocksize=4k -V 16g -s zones/hdd-windows

This script will be used for booting from the CD.