Skip to content

Instantly share code, notes, and snippets.

View david0's full-sized avatar

David david0

  • Germany
  • 05:40 (UTC +02:00)
View GitHub Profile
@david0
david0 / logstash-hl.py
Created September 22, 2022 14:21
Script for formatting logstash logs in a human readable manner
#!/usr/bin/env python3 -u
import json
import fileinput
class Terminal(object):
FG_RED = "\033[31m"
FG_YELLOW = "\033[33m"
BOLD = "\033[1m"
DIM = "\033[2m"
openapi: "3.0.0"
info:
version: 1.0.0
title: OneOf example
paths:
/search:
post:
requestBody:
content:
application/json:
@david0
david0 / variables.md
Created September 5, 2024 14:19
Rosetta Environment variables
  • ROSETTA_DEBUGSERVER_PORT
  • ROSETTA_MEMORY_ACCESS_INSTRUMENTATION
  • ROSETTA_DISABLE_AOT
  • ROSETTA_PRINT_SEGMENTS
  • ROSETTA_PRINT_IR
  • ROSETTA_ALLOW_GUARD_PAGES
  • ROSETTA_AOT_ERRORS_ARE_FATAL
  • ROSETTA_DISABLE_EXCEPTIONS
  • ROSETTA_DISABLE_SIGACTION
  • ROSETTA_HARDWARE_TRACING_PATH
@david0
david0 / canon-p-208-mac.md
Last active April 5, 2026 17:52
Canon P-208 Mac/Linux

Canon P-208 Scanner on Mac OS/X

The original Canon CaptureOnTouch app does not work on newer Mac OS X versions. On Mac and Linux this scanner can be used with SANE.

  1. Install sane-backend
  2. Set Auto Start Switch on device to Off. Open the LID.
  3. scanimage -L should list scanner

'canon_dr:libusb:020:005' is a CANON P-208II scanner