Skip to content

Instantly share code, notes, and snippets.

View DouglasK's full-sized avatar

Douglas DouglasK

  • Ontario, Canada
  • 06:52 (UTC -05:00)
View GitHub Profile
@randompherret
randompherret / quantity_unit.php
Last active September 21, 2024 03:24
Script to import conversion factors into grocy
<?php
$apiaccess =[
"url" => "https://grocy.yourdomain.tld/api",
"key" => "1234password"
];
$quantity_units = [
"Cup" => [
"name" => "Cup",
"description" => "",
"name_plural" => "Cups"
@mbrownnycnyc
mbrownnycnyc / nterr.h (errors)
Created February 24, 2017 19:47
NT errors with descriptions (hooray!)
Error Code Error Code NT Status Description
0x00000000 0x00000000 NT_STATUS_OK “The operation completed successfully.”
0xC0000001 0x0000001f NT_STATUS_UNSUCCESSFUL “A device attached to the system is not functioning.”
0xC0000002 0x00000001 NT_STATUS_NOT_IMPLEMENTED “Incorrect function.”
0xC0000003 0x00000057 NT_STATUS_INVALID_INFO_CLASS “The parameter is incorrect.”
0xC0000004 0x00000018 NT_STATUS_INFO_LENGTH_MISMATCH “The program issued a command but the command length is incorrect.”
0xC0000005 0x000003e6 NT_STATUS_ACCESS_VIOLATION “Invalid access to memory location.”
0xC0000006 0x000003e7 NT_STATUS_IN_PAGE_ERROR “Error performing inpage operation.”
0xC0000007 0x000005ae NT_STATUS_PAGEFILE_QUOTA “Insufficient quota to complete the requested service.”