Skip to content

Instantly share code, notes, and snippets.

View binarymaster's full-sized avatar

Stanislav Motylkov binarymaster

View GitHub Profile
@binarymaster
binarymaster / keybase.md
Created December 7, 2017 13:51
Keybase proof

Keybase proof

I hereby claim:

  • I am binarymaster on github.
  • I am binarymaster (https://keybase.io/binarymaster) on keybase.
  • I have a public key ASD9b_jC40EPcY4J8BG380XrmZReyyqCl69hNLVSkdy8wwo

To claim this, I am signing this object:

@binarymaster
binarymaster / decode-johab.php
Created October 31, 2017 11:47
Decode JOHAB-encoded strings
<?php
// read str from IMS/SOP in Win-1252 encoding
$str = '£¡“¡¯¡Ÿ¡»a Mº—µA¬á -MBC';
// decode JOHAB
$str = iconv('UTF-8', 'CP1252', $str); // if the site page is initially in UTF-8
$str = iconv('JOHAB', 'UTF-8', $str);
echo $str;
@binarymaster
binarymaster / ADLRead.out
Created June 26, 2016 20:17
ADLRead tests output
DUNE0.ADL :
ADL Version 2
First track offset: 0x03E8 (absolute 0x0460)
First instr offset: 0x355C (absolute 0x35D4)
Track count: 52
Instr count: 63
Tracks in playback order:
0: 0x03E8 (absolute 0x0460)
1: 0x0402 (absolute 0x047A)
2: 0x314E (absolute 0x31C6)
@binarymaster
binarymaster / ADLRead.dpr
Created June 26, 2016 19:58
Westwood ADL v1, v2 and v3 music file reader
program ADLRead;
{$APPTYPE CONSOLE}
uses
SysUtils,
Classes;
var
// ADL index v1 & v2