Skip to content

Instantly share code, notes, and snippets.

View hardenedapple's full-sized avatar

Matthew Malcomson hardenedapple

View GitHub Profile
@hardenedapple
hardenedapple / Puzzle.bin
Created April 24, 2017 17:00
Puzzle -- find the password that the binary accepts
00000000: 7f45 4c46 0201 0100 0000 0000 0000 0000 .ELF............
00000010: 0200 3e00 0100 0000 5004 4000 0000 0000 ..>.....P.@.....
00000020: 4000 0000 0000 0000 b819 0000 0000 0000 @...............
00000030: 0000 0000 4000 3800 0900 4000 1e00 1d00 ....@.8...@.....
00000040: 0600 0000 0500 0000 4000 0000 0000 0000 ........@.......
00000050: 4000 4000 0000 0000 4000 4000 0000 0000 @.@.....@.@.....
00000060: f801 0000 0000 0000 f801 0000 0000 0000 ................
00000070: 0800 0000 0000 0000 0300 0000 0400 0000 ................
00000080: 3802 0000 0000 0000 3802 4000 0000 0000 8.......8.@.....
00000090: 3802 4000 0000 0000 1c00 0000 0000 0000 8.@.............
@hardenedapple
hardenedapple / Puzzle.bin
Last active October 31, 2017 18:30
Below is a hex dump of the challenge binary. The challenge is ... this binary contains a password ... find it.
7f454c4601010100e9e40000000000000200030001000000638104083b00
00005b000000000000003400200001002800030002000000000000000001
0000000000000000800408e9a50008000400000004000005000000001000
000000000000000000000000000000000000000000000000000000000000
000000000000000000000001000000010000000200000063810408630100
009d02000000000000000000001000000000000000070000000300000000
00000000000000d30000001b000000000000000000000001000000000000
00002e74657874002e7368737472746162002e7370656369616c220000b8
c0078ed8a00300b40ecd10a02b01b40ecd10a03c01b40ecd10a07d012c1f
b40ecd10ebfe004d6167696320776f7264732063616e206265206f627475
@hardenedapple
hardenedapple / count-change.scm
Last active March 14, 2017 18:52
count-change constant time constant space
;; COUNT-CHANGE challenge (throwaway comment in SICP along the lines of coming
;; up with a better solution is left as a challenge to the reader).
;; Find a better way of calculating the following.
;; I don't think this challenge allows memoization.
(define (first-denomination kinds-of-coins)
(cond ((= kinds-of-coins 1) 1)
((= kinds-of-coins 2) 5)
((= kinds-of-coins 3) 10)
((= kinds-of-coins 4) 25)
((= kinds-of-coins 5) 50)))
@hardenedapple
hardenedapple / Flutter_histograms.ipynb
Last active August 29, 2015 14:21
Flutter histograms outline
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.