<commit_before># Here lies some useful commands that are awesome but are usually too
# rarely used to remember. They are useful for...

# ...validating a binary's code signature
codesign -v /Applications/Example.app

# ...determining DNS info
dig @8.8.8.8 example.com any

# ...determining the architectures within a universal binary
file

# ...finding C/C++ standard libraries
`gcc -print-prog-name=cc1` -v
`gcc -print-prog-name=cc1plus` -v

# ...updating all git submodules
git submodule foreach git pull origin master

# ...finding what package installed a binary (Ubuntu/Debian)
dpkg -S `which examplebinary`

# ...searching for a string/regex in git diff history
git -Sstringtosearchfor --since=2012.2.17 --until=2012.3.14 -- pathname
git --pickaxe-regex "regextosearchfor" --since=2012.2.17 --until=2012.3.14 --pathname<commit_msg>Installing Ruby properly is useful<commit_after># Here lies some useful commands that are awesome but are usually too
# rarely used to remember. They are useful for...

# ...validating a binary's code signature
codesign -v /Applications/Example.app

# ...determining DNS info
dig @8.8.8.8 example.com any

# ...determining the architectures within a universal binary
file

# ...finding C/C++ standard libraries
`gcc -print-prog-name=cc1` -v
`gcc -print-prog-name=cc1plus` -v

# ...updating all git submodules
git submodule foreach git pull origin master

# ...finding what package installed a binary (Ubuntu/Debian)
dpkg -S `which examplebinary`

# ...searching for a string/regex in git diff history
git -Sstringtosearchfor --since=2012.2.17 --until=2012.3.14 -- pathname
git --pickaxe-regex "regextosearchfor" --since=2012.2.17 --until=2012.3.14 --pathname

# ...configuring, compiling, and installing latest Ruby in OS Xwithout fault
brew install gdbm libyaml readline
brew link readline
$VERSION="version" ./configure --without-gcc --prefix="/Users/$(whoami)/.rbenv/versions/$VERSION" --with-opt-dir=/usr/local/ --enable-shared && make && make test && make install
brew unlink readline
{'fraction_non_alphanumeric': 0.12290227048371175, 'fraction_numerical': 0.03356367226061204, 'mean_word_length': 3.7582159624413145, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '726088', 'n_tokens_mistral': 676, 'n_tokens_neox': 609, 'n_words': 225}