Skip to content

Instantly share code, notes, and snippets.

View paulguy's full-sized avatar
🥒
idunno what is this

paulguy

🥒
idunno what is this
View GitHub Profile
@paulguy
paulguy / gist:fafe94419a9f48e8d8e9bce1aa4e7726
Created October 7, 2023 01:34
MK-90 BASIC Quick Reference
EDITING KEYS:
<- : move left
-> : move right
СУ + A : go to beginning of the line
СУ + B : go to previous word
СУ + E : clear line from cursor to end
СУ + F? : go to next word
СУ + X : go to end of the line
COMMANDS:
@paulguy
paulguy / gist:95d318de70b1ead191978f571d94fed9
Last active March 6, 2023 23:10
Troubled Souls music converter
#!/usr/bin/env python
import io
import struct
intstruct = struct.Struct('>I')
buffers = []
editlist = None
endFound = False
@paulguy
paulguy / iomemdec.py
Last active December 28, 2022 20:43
Script to output /proc/iomem size
#!/usr/bin/env python
import sys
SUFFIXES = ('', 'KiB', 'MiB', 'GiB', 'TiB')
def do_decode(infile, human):
for line in infile:
line = line[:-1]
newline = line.strip()
@paulguy
paulguy / vulkan.txt
Created December 17, 2019 05:11
mpv displayvk
[ 0.003][v][cplayer] mpv 0.1.0-12022-gdd2fc9a728 Copyright © 2000-2019 mpv/MPlayer/mplayer2 projects
[ 0.003][v][cplayer] built on Tue Dec 17 00:03:53 EST 2019
[ 0.003][v][cplayer] ffmpeg library versions:
[ 0.003][v][cplayer] libavutil 56.31.100
[ 0.003][v][cplayer] libavcodec 58.54.100
[ 0.003][v][cplayer] libavformat 58.29.100
[ 0.003][v][cplayer] libswscale 5.5.100
[ 0.003][v][cplayer] libavfilter 7.57.100
[ 0.003][v][cplayer] libswresample 3.5.100
[ 0.003][v][cplayer] ffmpeg version: n4.2.1
==========
VULKANINFO
==========
Vulkan Instance Version: 1.1.92
ERROR: [Loader Message] Code 0 : /usr/lib32/libvulkan_radeon.so: wrong ELF class: ELFCLASS32
Instance Extensions:
[23:54.665156 debug:w132] [libbinrec] Scanning terminated at requested limit 0x3516EEB
[23:55.050606 debug:w132] [libbinrec] Scanning terminated at requested limit 0x34F1ABF
[23:55.103604 debug:w132] [libbinrec] Scanning terminated at requested limit 0x34F219F
[23:55.170649 debug:w132] [libbinrec] Scanning terminated at requested limit 0x34F21EB
[23:55.327427 debug:w132] [libbinrec] Scanning terminated at requested limit 0x34F266B
[23:55.354779 debug:w132] [libbinrec] Scanning terminated at requested limit 0x34F2677
[23:55.565933 error:w213] [libbinrec] Too many registers in unit (limit 65535)
[23:55.565957 error:w213] [libbinrec] Internal compiler error: rtl-insn.c:488: Operand constraint violated: dest != 0
[23:55.565961 error:w213] [libbinrec] Internal compiler error: rtl-insn.c:152: Operand constraint violated: src1 != 0
[23:55.565966 error:w213] [libbinrec] Too many registers in unit (limit 65535)