2021-01-8
Forward a UNIX socket over SSH. This command will sit around in the background.
References: https://github.com/moby/moby/pull/18373#issuecomment-184895457
$ ssh -L ./mysock:/var/run/docker.sock -Nf hostname.example.com
2021-01-09
Some thoughts:
Pretty sure it’s because we call setState within the render method, which is
whatever method returns JSX, return (<stuff>...</stuff>)
.
I think it doesn’t like that since we pass the setter to the child, then the
child renders, and could immediately call setState (if (data === true)
), which
triggers a re-render in the parent, which triggers a re-render in the child,
which calls setState... and causes an infinite loop effectively.
Create wrapper around setter and pass to children https://github.com/intel/dffml/blob/b88424a927f6279191285e2103a2b50b993b1921/service/webui/webui/src/Paperbase.js#L167-L205 https://github.com/intel/dffml/blob/b88424a927f6279191285e2103a2b50b993b1921/service/webui/webui/src/Paperbase.js#L228-L236
Old style class accepting wrapped setter (props.saveBackend()) https://github.com/intel/dffml/blob/b88424a927f6279191285e2103a2b50b993b1921/service/webui/webui/src/SetBackendPopup.js#L16-L48
New style class accepting wrapped setter (saveBackend()) https://github.com/intel/dffml/blob/b88424a927f6279191285e2103a2b50b993b1921/service/webui/webui/src/SettingsBackend.js#L44-L60
2021-01-13
TODO Add notes about meetings and people skills stuff
2021-01-14
Split screen PC games!
https://www.reddit.com/r/nucleuscoop/comments/fjdqid/list_of_new_supported_games_and_faq/
2021-02-12
Sealed boxes, anonymously encrypt something using a public key
https://libsodium.gitbook.io/doc/public-key_cryptography/sealed_boxes
2021-02-17
Regular expression builder helper
2021-02-27
Inspect memory of running process
Hedge Fund Legend Paul Tudor Jones "5:1 (risk /reward) Five to one means I’m risking one dollar to make five. What five to one does is allow you to have a hit ratio of 20%. I can actually be a complete imbecile. I can be wrong 80% of the time and I’m still not going to lose."
https://mobile.twitter.com/realwillmeade/status/1365661871999713283
2022-01-09
Port knocking
2022-01-24
UEFI shell commands
Shell> map
- show FS
Shell> cls
- clear screan
Shell> fs1:
FS1:\> dir
iPXE> sanboot http://example.com/myimg.iso
2022-01-30
https://archive.nanog.org/sites/default/files/2_Steenbergen_Tutorial_New_And_v2.pdf
2022-02-09
https://blog.cloudflare.com/missing-manuals-io_uring-worker-pool/
2022-04-21
The utmp file allows one to discover information about who is currently using the system. There may be more users currently using the system, because not all programs use utmp logging.
Source: https://man7.org/linux/man-pages/man5/utmp.5.html
bpf to trace created threads: https://unix.stackexchange.com/a/606831
Mutli-cluster k8s with kcp: https://asciinema.org/a/471709
2022-06-07
Bash history
- https://www.gnu.org/software/bash/manual/bash.html#History-Interaction
- https://askubuntu.com/questions/67283/is-it-possible-to-make-writing-to-bash-history-immediate
- https://www.gnu.org/software/bash/manual/bash.html#index-histchars
- https://docs.python.org/3/library/time.html#time.strftime