This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ref: http://fileformats.archiveteam.org/wiki/Linear_Executable | |
// ref: https://moddingwiki.shikadi.net/wiki/Linear_Executable_(LX/LE)_Format | |
// ref: https://github.com/open-watcom/open-watcom-v2/blob/master/bld/watcom/h/exeflat.h (this is specifically for LE VXDs) | |
// ref: http://www.textfiles.com/programming/FORMATS/lxexe.txt (comprehensive but actually for LX, not LE) | |
typedef unsigned char undefined; | |
typedef unsigned char byte; | |
typedef unsigned long dword; | |
typedef unsigned long uint3; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.intel_syntax noprefix | |
.altmacro | |
.section .data | |
.align 4 | |
.globl KernelInterruptContext | |
KernelInterruptContext: | |
.long 0 // eax | |
.long 0 // ebx | |
.long 0 // ecx |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections; | |
namespace ChessboardPuzzle | |
{ | |
static class Program | |
{ | |
static void Main() | |
{ | |
// Inspired by 3blue1brown's excellent video on the topic: https://www.youtube.com/watch?v=wTJI_WuZSwE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifndef __INCLUDE_INTERRUPTS_H__ | |
#define __INCLUDE_INTERRUPTS_H__ | |
#include "Arduino.h" | |
#include <algorithm> | |
typedef void (*ISRFunctionPtr)(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <Adafruit_Sensor.h> | |
#include <DHT.h> | |
#include <DHT_U.h> | |
#include <ESP8266WiFi.h> | |
#include <ESP8266WebServer.h> | |
const char* ssid = "ssid"; | |
const char* password = "password"; | |
const char* hostname = "esp_dht22_bedroom"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/local/bin/python3 | |
import curses | |
from curses import wrapper | |
import math | |
import time | |
import psutil | |
from pySMART import DeviceList, Device | |
REFRESH_INTERVAL = 10 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!zsh | |
# FreeNAS Influxdb disk temperature script with NVMe support. | |
# For regular disks, sends the Temperature_Celsius value reported by /dev/daX and /dev/adaX devices. | |
# For NVMe disks, sends all temperature sensor values reported by /dev/nvmeX devices. | |
# Written by Graham Sutherland (gsuberland) | |
# https://github.com/gsuberland/ | |
influxdb_db="graphite" |
NewerOlder