Skip to content

Instantly share code, notes, and snippets.

View tris's full-sized avatar

Tristan Horn tris

  • San Francisco, CA
  • 21:18 (UTC -07:00)
View GitHub Profile
@gregneagle
gregneagle / sysctl_demo.py
Last active December 5, 2024 10:39
Based on sysctl function by Michael Lynn aka frogor aka pudquick aka ????
# Based on sysctl function by Michael Lynn
# https://gist.github.com/pudquick/581a71425439f2cf8f09
from ctypes import CDLL, c_uint, byref, create_string_buffer
from ctypes import cast, POINTER, c_int32, c_int64
from ctypes.util import find_library
import struct
libc = CDLL(find_library('c'))
@patpohler
patpohler / Big List of Real Estate APIs.md
Last active April 2, 2026 13:15
Evolving list of Real Estate APIs by Category

Big List of Real Estate APIs

Listings / Property Data

####Rets Rabbit http://www.retsrabbit.com

Rets Rabbit removes the nightmare of importing thousands of real estate listings and photos from RETS or ListHub and gives you an easy to use import and Web API server so you can focus on building your listing search powered website or app.

@rauchg
rauchg / README.md
Last active December 30, 2025 06:51
require-from-twitter
@robinsmidsrod
robinsmidsrod / dhcpd.conf
Last active April 5, 2024 20:26
Simple chainloading config loading iPXE for ISC dhcpd which supports both legacy BIOS and UEFI
option client-arch code 93 = unsigned integer 16;
subnet 10.8.8.0 netmask 255.255.255.0 {
range 10.8.8.100 10.8.8.199;
option routers 10.8.8.1;
option domain-name-servers 10.8.8.1;
next-server 10.8.8.1;
if exists user-class and option user-class = "iPXE" {
filename "http://10.8.8.11/ipxeroot/bootstrap.ipxe";
} elsif option client-arch != 0 {
filename "ipxe.efi";
@robinsmidsrod
robinsmidsrod / inventory.ipxe
Created July 16, 2015 22:48
iPXE hardware inventory script (from svenx)
# Run a PCI/SMBios/net inventory scan and upload the results. This gives us a
# way of tracking nodes to some extent, leaving us less blind than usual.
#
# We use the iPXE pciscan command to enumerate the PCI bus. For each device, we
# check the 'header type' register at offset 0x0e. If it's type 0 (endpoint),
# we can read the subsystem vendor and device registers too. Unfortunately, if
# the 7th bit of the header type field is set (0x80), it indicates a
# multi-function device. So to check the type, this bit should be masked out.
# Masking is not possible with iPXE commands, so we have to duplicate some of
# the iseq tests.
@Turbo87
Turbo87 / api.md
Created May 14, 2015 11:18
Skylines API

Skylines API

Overview

Schema

  • API is only available over HTTPS at https://api.skylines.aero/
  • HTTP will show 404 Not Found
  • All data is sent and received as JSON
  • Blank fields are included as null
:memtest-ipxe
chain memtest-${memtest-version}.0 ${memtest-args} && set memtest GOOD || set memtest BAD
set memtest_errno:uint8 ${errno}
iseq ${memtest} GOOD && goto memtest-info ||
iseq ${memtest_errno} 0x1 && set memtest BAD || set memtest UNKNOWN
:memtest-info
menu Your memory seems to be ${memtest}
item memtest-report Report memtest result to web service
item --key 0x08 menu-diag Back to diagnostics menu...
choose --default menu-diag selected && goto ${selected} || goto start
@robinsmidsrod
robinsmidsrod / pci_inventory_busdevfn.ipxe
Last active December 15, 2015 02:02
iPXE script which makes an inventory of all PCI devices and ship it off using HTTP POST
#!ipxe
params
:pciscan pciscan addr || goto pciscan_done
param pci-dev-${addr:busdevfn} ${pci/${addr}.0.2}:${pci/${addr}.2.2}
goto pciscan
:pciscan_done
chain http://server.domain.lan/inventory.php##params
@robinsmidsrod
robinsmidsrod / dhcpd.conf
Last active October 29, 2025 23:05
Booting an Apple Mac into iPXE using simulated Apple Boot Server on ISC DHCPD
next-server 10.0.3.2;
if ( substring(option vendor-class-identifier, 0, 9) = "AAPLBSDPC"
and substring(option vendor-class-identifier, 10, 4) = "i386" ) {
# This needs to be there to tell the client we're an Apple boot server
option vendor-class-identifier "AAPLBSDPC";
# Normally the client asks for a list, we respond, they tell us what we want,
# then we send a select back with the information of that image.
# This skips all that and forces the select down to the client.
option vendor-encapsulated-options 01:01:02;
# Use ipxe.efi for native drivers, or snponly.efi for underlying UNDI
@robinsmidsrod
robinsmidsrod / gist:788eb37babc0fff5b18f
Last active March 23, 2017 08:12
Games menu for my iPXE menu example
############################ GAMES MENU #########################
:menu-games
menu Games for ${initiator-iqn}
item invaders Invaders (Space Invaders clone)
item tint Tint (Tetris clone)
item mineassemble MineAssemble (Minecraft clone, not working)
item
item --key 0x08 back Back to top menu...
iseq ${menu-default} menu-games && isset ${submenu-default} && goto menu-games-timed ||