Better HN
topnewbestaskshowjobs
Log inSign up

hanemile

32 karma · joined Oct 26, 2020 (6y ago) · 9 submissions

Infosec https://emile.space aspe:keyoxide.org:NEQUYB76TJ2RJGJTUYCRWAWENI
Submissions

1.

40C3 halfnarp – Submit talk preferences to aid scheduling(halfnarp.events.ccc.de ↗)

53 points · by hanemile · 3w ago · 17 comments

comment 12mo ago · link · parent

With the metatopic of this thread being obscure languages, I had some fun squeezing this into some list comprehensions (maybe someone's got an idea of how to keep track of the state within the list):

```

$ cat << EOF > pi.py

state = [0, 0, 2*8, 2*12]; _ = [print(f'\rRun {state.__setitem__(0, state[0] + 1) or state[0]}/{state[3]} | Last \u03c0: {current_pi:.6f} | *Average \u03c0: {(state.__setitem__(1, state[1] + current_pi) or state[1]) / state[0]:.6f}*', end='', flush=True) for current_pi in [(4 * sum([1 for _ in range(state[2]) if __import__("random").random()*2 + __import__("random").random()*2 < 1]) / state[2]) for _ in range(state[3])]]; print()

EOF

$ time python3 pi.py

Run 4096/4096 | Last π: 3.140625 | *Average π: 3.143051*

python3 pi.py 0.41s user 0.01s system 99% cpu 0.429 total

```

Play around with the `2*8` and `2*10` values in the state, they control the amount of rounds and the range in which the random values get generated respectively.

comment 3y ago · link · parent

https://emile.space/blog/

comment 3y ago · link · parent

The collection of decentralized streams are organized centrally here: https://streaming.media.ccc.de/jev22

comment 3y ago · link · parent

gamozolabs benchmarked this kind of stuff in a recent stream: https://www.youtube.com/watch?v=ru97E9xA0s4

6.

Detects when your tests are being run in a CI server, and makes them pass(github.com ↗)

1 points · by hanemile · 4y ago · discuss

7.

Glitch Gallery(glitchgallery.org ↗)

1 points · by hanemile · 5y ago · discuss

comment 5y ago · link · parent

Well there is the remarkable[1]. I'm not really sure if it would fit your needs, but It's worth a look imho.

Pro: As you get a root shell by default, it's nicely hackable and costs a lot less than the Onyx Boox Max.

Con: it's only 10.3".

[1]: https://remarkable.com/

comment 6y ago · link · parent

Wonderful write-up, great step by step descripting and some more insights on the underlying problems. There should me more write-ups structured like this!