Skip to content

Instantly share code, notes, and snippets.

@pottsga
pottsga / latex_cheat_sheet.md
Last active March 17, 2020 15:45
LaTeX Cheat Sheet

BibTeX

Commands

Use the following commands to compile a .tex file with .bib file.

pdflatex {filename}
bibtex {filename}
pdflatex {filename}

Find Large Files

du -a -h | sort -h -r | head -n 20

Find Files By Date

Find and Remove

find /var/log/tomcat -type f -mtime +TIMEFRAME -exec rm -f {} ; # example timeframe, 14 for 2 weeks

@pottsga
pottsga / Install Oracle Instant Client on macOS.md
Last active September 7, 2023 18:50
How to install Oracle Instant Client on macOS for both Intel x86_64 architectures as well as Apple's own silicon the M1 chipset.

Note (Read Me)

As of 12/14/2021, Oracle does not yet support Apple Silicon (arm64e). Due to this, it is necessary to leverage Rosetta v2. You can do this by clicking the iTerm/Terminal.app icon in Applications, clicking Get Info, and checking Open with Rosetta. Close out completely and restart app.

Install Instant Client

  1. Download Basic Package (ZIP) (instantclient-basic-macos.x64-19.8.0.0.0dbru.zip) Instant Client for macOS (Intel x86)
  2. Unzip
  3. mv instantclient_19_8 /usr/local/lib