Skip to content

Instantly share code, notes, and snippets.

@henkjan
henkjan / ipixel_time_live.py
Created October 24, 2025 21:28
ipixel using the websockets interface for continuously updating the time
#!/usr/bin/env python3
import json
import asyncio
import websockets
from datetime import datetime
from PIL import Image, ImageDraw, ImageFont
import time
# === Instellingen ===
width, height = 32, 32
#!/usr/bin/env python3
import sys
from datetime import datetime
from PIL import Image, ImageDraw
# --- Bitmap font (voorbeeld, vul aan) ---
BITMAP_FONT = {
"A":[[0,1,0],[1,0,1],[1,1,1],[1,0,1],[1,0,1]],
"B":[[1,1,0],[1,0,1],[1,1,0],[1,0,1],[1,1,0]],
"C":[[1,1,1],[1,0,0],[1,0,0],[1,0,0],[1,1,1]],
#!/usr/bin/env python3
from datetime import datetime
from PIL import Image, ImageDraw, ImageFont
# --- Instellingen ---
width, height = 32, 32
bg = (0, 0, 0)
white = (255, 255, 255)
red = (255, 0, 0)
font = ImageFont.truetype("Tiny5-Regular.ttf", 8)
---
- hosts: all
become: true
gather_facts: false
tasks:
- name: check which policy.xml exist
stat:
path: "{{ item }}/policy.xml"
with_items:

Keybase proof

I hereby claim:

  • I am henkjan on github.
  • I am henkjan (https://keybase.io/henkjan) on keybase.
  • I have a public key whose fingerprint is DFBF 83CC 05F5 91FF EC47 59A2 5E47 DAFE 8D3F E368

To claim this, I am signing this object: