Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: b9bf2e4d85
Fetching contributors…

Cannot retrieve contributors at this time

35 lines (25 sloc) 1.208 kb
# 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
# ...getting a key's fingerprint
ssh-keygen -lf /path/to/keyfile
Jump to Line
Something went wrong with that request. Please try again.