I get nerdsniped by myself more often that i’d like, but i still want to keep the question in the back of my head. Other times I am just curious about things and to try it out myself even if the solution to the problem is known to the world. I’ll dump my questions here.
Systems #
How would I really sort a big file? #
Sort a 100GB file in 12GB memory. Various approaches.
cat main.cpp | tr a-z A-Z
# vs
tr a-z A-Z < main.cpp
- What would
sort
do? - External sorting - Wikipedia
- External sorting with concurrency
- Sorting with SIMD | Hacker News
- Loading it into a DB and sorting
- Reducing Pandas memory usage #3: Reading in chunks
- Fast subsets of large datasets with Pandas and SQLite
- When your data doesnβt fit in memory: the basic techniques
- Scaling to large datasets β pandas 2.0.0 documentation
- Fitting millions of documents in 128 TB of virtual memory | Lobsters π
Most efficient way to show last added file in the filesystem/dir #
- shell - Get most recent file in a directory on Linux - Stack Overflow
- bash - How to recursively find the latest modified file in a directory? - Stack Overflow
Is IFS not Indian Forest Services? (Bash edition) #
- This stuff is pretty basic but I don’t think I totally get it plus there is some “shell” specific behavior that’s weird.
- Also
man 1 read
(fish) andman 1p read
(posix) are different, what about that idk. fish apparently does not document-r
but still lets me use it. - memory - Are files opened by processes loaded into RAM? - Unix & Linux Stack Exchange
- linux - What happens if you edit a script during execution? - Unix & Linux Stack Exchange
- bash - Understanding “IFS= read -r line” - Unix & Linux Stack Exchange
- Why is using a shell loop to process text considered bad practice? - Unix & Linux Stack Exchange
How easy is for someone to steal my stdout stuff #
- Example could be me logging my passwords in the cli.
- How to Handle Secrets on the Command Line
Lower case letters? #
GPU #
How does gpu actually do computation? #
- Can experiment with this blogpost also see someshkar/colabcat
- Introduction - Code that counts
- How to Optimize a CUDA Matmul Kernel for cuBLAS-like Performance: a Worklog
Security #
Does iframe+cors does not do what i think it does? #
See SO answers here signin inside iframe - Google Search
how would i hack myself w ssh? #
How to know everything about a website from the public domain(osint) #
- google fu
- https://www.reddit.com/r/hacking/comments/vqczs/i_want_to_find_out_all_the_information_i_can/ (old but good starting point)
Math #
German Tank Problem #
- > you can tell the growth rate of the company. You can even do this when
- German tank problem - Wikipedia
Web #
HTML title #
- I noticed a long html title for Flowers for Turing , makes me wonder what interesting things i can do by putting really long things into the title.