Bash Trick To Split on Null or Zero Byte
Some system-level values are output with a null byte (the bytes value is 00) and might need to read those values seperately. This Null byte delimitation can be worked around using xargsRead More…
Some system-level values are output with a null byte (the bytes value is 00) and might need to read those values seperately. This Null byte delimitation can be worked around using xargsRead More…
Vdbench Software (version 50407): http://www.infotinks.com/vdbench/vdbench50407.zip Vdbench Guide (version 50407): http://www.infotinks.com/vdbench/vdbench-50407.pdf
My Issue: I have a Ubuntu VM running on my Windows 11 via HyperV virtualization. I cannot SSH into that Ubuntu VM because its using the default networking which creates a NAT.Read More…
Here is what bat is: https://github.com/sharkdp/bat
This trick works for Linux servers and also if you are using WSL2 on Windows to run Ubuntu (or whatever *nix OS) and you are trying to utilize ssh keys with yourRead More…
I can never remember the order of arguments for the ln command (link command). The easiest way to think about it is to rethink of the “cp” (copy command) instead of “cpRead More…
This github page, https://github.com/andreafabrizi/Dropbox-Uploader, has the dropbox-uploader tool which I use to backup content from servers (Linux, Mac, etc) without having to sync my Dropbox content to the local disk on yourRead More…
Xargs is useful to run in parallel. Its parallel processing is very efficient. Read this post about its efficiency and this one about basic commands. Below, is my favorite way to runRead More…
# citing: https://www.reddit.com/r/Python/comments/jfx7wy/how_to_quickly_remove_duplicates_from_a_list/ # Let’s make some duplicates (one million numbers between 1 and 100) from random import randrange DUPLICATES = [ randrange(100) for _ in range(1_000_000) ] ### METHOD 1 ###Read More…