4 ms·
Before I click: $ echo 'obase=16; 1195725856' | bc | xxd -r -ps | od -cb 0000000 G E T
by mzs 7y ago
Before I click:
$ echo 'obase=16; 1195725856' | bc | xxd -r -ps | od -cb
0000000 G E T
107 105 124 040
0000004
$
Looks like HTTP.
- mc3 7y agoImpressive! Before I clicked I thought this was going to be an(other) article about number theory!
- thestoicattack 7y agoprintf "%x" 1195725856 will save you one bc process.
- mzs 7y agoeven better, thanks $ printf '%032x\n' 1213486160 542393671 | xxd -r -ps | xxd -g4 -c16 00000000: 00000000 00000000 00000000 48545450 ............HTTP 00000010: 00000000 00000000 00000000 20544547 ............ TEG $
- d0mine 7y agoPython >>> 1195725856 .to_bytes(4, 'big') b'GET '