Skip to content

Instantly share code, notes, and snippets.

View alex-dinh's full-sized avatar

Alex Dinh alex-dinh

View GitHub Profile
@karnawhat
karnawhat / basictex.md
Created October 22, 2019 17:18
Tutorial on installing BasicTeX

Installing BasicTeX

This is a barebones setup to using TeX with matplotlib. Since the whole MacTeX package is ~4GB, and includes a lot of unnecessary binaries, it is better to install BasicTeX and install the packages as you seem fit.

The easiest way to install is by running brew cask install basictex and run which pdflatex to check whether it is installed. This should return a path with the location of the filepath. If it doesn't, then check if the /Library/TeX folder exists.

Finally, add the following to your ~/.bashrc or ~/.bash_profile filepath: export PATH="/Library/TeX/texbin/:$PATH"

Adding packages

@dzogrim
dzogrim / MessagesAttachmentsCleanUp.sh
Last active March 13, 2026 01:29
macOS Messages App attachments clean-up (this will remove attachments from Messages App history!)
#!/bin/bash
## macOS 'Messages.app' attachments clean-up
## Main known media formats files will be moved to trash to save space
## Copyleft (C) 2018-2019 dzogrim
## dzogrim < dzogrim [@] dzogrim [.] pw >
#VERSION="1.0 (2018-04-07)" # initial
#VERSION="1.1 (2018-05-28)" # sort garbage