Skip to content

Instantly share code, notes, and snippets.

@fesh0r
fesh0r / pd_extras_convert.py
Created April 27, 2024 00:50
Python version of the `PD_extras_convert.bat` script originally created by "kdin6tl3nm"
#!/usr/bin/env python3
import os
import sys
import getopt
import shutil
import zipfile
from lxml import etree as et
# Python version of the `PD_extras_convert.bat` script originally created by "kdin6tl3nm"
100 REM Program 3DPLOT Version 1A
110 REM Author Derek Chown
120 REM BEEBUG October 1983
130 ON ERROR GOTO 150
140 GOTO 190
150 ON ERROR OFF
160 VDU3:MODE7:REPORT
170 PRINT" at line ";ERL:END
180
190 MODE7
\ Doom Fire!
\ beebasm.exe -w -v -i fire_master.asm -do fire.ssd -boot fire
OSRDCH = &FFE0
OSWRCH = &FFEE
OSWORD = &FFF1
OSBYTE = &FFF4
OSCLI = &FFF7
\ Doom Fire!
OSRDCH = &FFE0
OSWRCH = &FFEE
OSWORD = &FFF1
OSBYTE = &FFF4
OSCLI = &FFF7
CRTC_REG = &FE00
CRTC_VAL = &FE01
MODE8:OFF:PROCdc:tc%=TRUE
FORU=0TO639
x=U/256-1.25
FORV=0TO511
y=V/256-1
X=0:Y=X:Z=-2
s=y/9:B=9:R=1:G=2
80 d=FNd(X,Y,Z)
IFd<.04GOTO130
IFp>99GOTO160
\ ******************************************************************************
\
\ ELITE LOADER SOURCE
\
\ Elite was written by Ian Bell and David Braben and is copyright Acornsoft 1984
\
\ The code on this site is identical to the version released on Ian Bell's
\ personal website at http://www.elitehomepage.org/
\
\ The commentary is copyright Mark Moxon, and any misunderstandings or mistakes
^\w{3} [ :[:digit:]]{11} [._[:alnum:]-]+ dovecot: (imap|IMAP)\([-_.@[:alnum:]]+\)(<[[:digit:]]+><[+/[:alnum:]]+>)?: Logged out in=[[:digit:]]+ out=[[:digit:]]+( deleted=[[:digit:]]+ expunged=[[:digit:]]+ trashed=[[:digit:]]+ hdr_count=[[:digit:]]+ hdr_bytes=[[:digit:]]+ body_count=[[:digit:]]+ body_bytes=[[:digit:]]+)?$
^\w{3} [ :[:digit:]]{11} [._[:alnum:]-]+ dovecot: (pop3|imap)-login: Login: user=<[-_.@[:alnum:]]*>, method=[[:alnum:]-]+, rip=[.:[:xdigit:]]+, lip=[.:[:xdigit:]]+, mpid=[.:[:xdigit:]]+(, (TLS( handshake)?|secured))?(, session=<[+/[:alnum:]]+>)?$
^\w{3} [ :[:digit:]]{11} [._[:alnum:]-]+ dovecot: (imap|IMAP)\([-_.@[:alnum:]]+\)(<[[:digit:]]+><[+/[:alnum:]]+>)?: Connection closed \((IDLE|LIST|UID STORE|UID SEARCH|UID MOVE|CLOSE|ID)[^)]+\) in=[[:digit:]]+ out=[[:digit:]]+( deleted=[[:digit:]]+ expunged=[[:digit:]]+ trashed=[[:digit:]]+ hdr_count=[[:digit:]]+ hdr_bytes=[[:digit:]]+ body_count=[[:digit:]]+ body_bytes=[[:digit:]]+)?$
^\w{3} [ :[:digit:]]{11} [._[:alnum:]-]+ dovecot: (imap|IMAP)\([-_
unidasm -arch unsp20 -skip 8632 -count 70517 "carmen.fixed.img"
000000: 9309 0fff r1 = 0fff
000002: d319 787c [787c] = r1
000004: 9242 r1 = 02
000005: d319 787d [787d] = r1
000007: 9311 7817 r1 = [7817]
000009: b309 c1ff r1 = r1 & c1ff
00000b: a309 0e00 r1 = r1 | 0e00
00000d: d319 7817 [7817] = r1
kern.log:Oct 6 00:57:01 bawx kernel: [271194.548237] md: data-check of RAID array md0
kern.log:Oct 6 00:57:03 bawx kernel: [271195.788184] md: md0: data-check done.
kern.log:Oct 6 00:57:03 bawx kernel: [271195.791795] md: data-check of RAID array md1
kern.log:Oct 6 01:06:37 bawx kernel: [271770.077167] md: md1: data-check done.
kern.log:Oct 6 00:57:01 bawx kernel: [271194.590065] md: data-check of RAID array md4
kern.log:Oct 6 08:16:12 bawx kernel: [297545.866259] md: md4: data-check done.
#
# cron.d/mdadm -- schedules periodic redundancy checks of MD devices
#
# Copyright © martin f. krafft <madduck@madduck.net>
# distributed under the terms of the Artistic Licence 2.0
#
# By default, run at 00:57 on every Sunday, but do nothing unless the day of
# the month is less than or equal to 7. Thus, only run on the first Sunday of
# each month. crontab(5) sucks, unfortunately, in this regard; therefore this