Skip to content

Instantly share code, notes, and snippets.

View lxm1117's full-sized avatar

Ximi lxm1117

  • Ohio University, Technion, NYUAD
  • X @ximi_qb
View GitHub Profile
@lxm1117
lxm1117 / openblas.sh
Created January 7, 2018 22:05 — forked from zachmayer/openblas.sh
Mac BLAS
#Option 1 - install openblas with homebrew and link to CRAN installed R
brew tap homebrew/science
brew install openblas
ln -sf /usr/local/Cellar/openblas/0.2.12/lib/libopenblas.dylib /Library/Frameworks/R.framework/Resources/lib/libRblas.dylib
#Option 2 - install r with openblas through homebrew
brew tap homebrew/science
brew install r --with-openblas
https://foia.state.gov/searchapp/DOCUMENTS/HRCEmail_August_Web/IPS-0128/DOC_0C05775316/C05775316.pdf
https://foia.state.gov/searchapp/DOCUMENTS/HRCEmail_August_Web/IPS-0128/DOC_0C05776580/C05776580.pdf
https://foia.state.gov/searchapp/DOCUMENTS/HRCEmail_August_Web/IPS-0128/DOC_0C05776479/C05776479.pdf
https://foia.state.gov/searchapp/DOCUMENTS/HRCEmail_August_Web/IPS-0128/DOC_0C05777242/C05777242.pdf
https://foia.state.gov/searchapp/DOCUMENTS/HRCEmail_August_Web/IPS-0128/DOC_0C05775315/C05775315.pdf
https://foia.state.gov/searchapp/DOCUMENTS/HRCEmail_August_Web/IPS-0128/DOC_0C05776573/C05776573.pdf
https://foia.state.gov/searchapp/DOCUMENTS/HRCEmail_August_Web/IPS-0128/DOC_0C05777196/C05777196.pdf
https://foia.state.gov/searchapp/DOCUMENTS/HRCEmail_August_Web/IPS-0128/DOC_0C05775318/C05775318.pdf
https://foia.state.gov/searchapp/DOCUMENTS/HRCEmail_August_Web/IPS-0128/DOC_0C05776679/C05776679.pdf
https://foia.state.gov/searchapp/DOCUMENTS/HRCEmail_August_Web/IPS-0128/DOC_0C05777256/C05777256.pdf
@lxm1117
lxm1117 / tny
Created August 17, 2016 01:19 — forked from gbl08ma/tny
Unix shell script to shorten URLs with tny.im URL shortener. wget must be installed for this to work.
#!/bin/sh
if [ -t 0 ]; then
if [ -z "$1" ]; then
echo "usage: tny long_url [custom_keyword]"
echo ""
echo "Shorten URLs with tny.im URL shortener"
echo "This script expects a long URL to shorten either as an argument or passed through STDIN."
echo "When using arguments, an optional second argument can be provided to customize the later part of the short URL (keyword)."
exit 1
fi

One can use MD5 or plain text diff to see differences in PDF files. If that's not enough, here's how to use diffpdf which knows how to diff based on appearance or words:

  • brew install diffpdf
  • edit your ~/.gitconfig to add this:
[difftool "diffpdf"]
  cmd = diffpdf \"$LOCAL\" \"$REMOTE\"