Skip to content

Instantly share code, notes, and snippets.

View milescsmith's full-sized avatar

Miles Smith milescsmith

View GitHub Profile
@milescsmith
milescsmith / example-ruff-formatting.ipynb
Created August 9, 2024 20:39 — forked from jbwhit/example-ruff-formatting.ipynb
Steps to use `ruff` in JupyterLab with the `jupyterlab_code_formatter` plugin.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@milescsmith
milescsmith / fix_exfat_drive.md
Created July 14, 2020 05:17 — forked from scottopell/fix_exfat_drive.md
Fix corrupted exFAT disk macOS/OSX

exFAT support on macOS seems to have some bugs because my external drives with exFAT formatting will randomly get corrupted.

Disk Utility is unable to repair this at first, but the fix is this:

  1. Use diskutil list to find the right drive id.
  2. You want the id under the IDENTIFIER column, it should look like disk1s1
  3. Run sudo fsck_exfat -d <id from above>. eg sudo fsck_exfat -d disk1s3
  4. -d is debug so you'll see all your files output as they're processed.
  5. Answer YES if it gives you the prompt Main boot region needs to be updated. Yes/No?
@milescsmith
milescsmith / brewbasictex
Created March 10, 2019 20:14 — forked from joethorley/brewbasictex
Install basictex using brew for R
brew tap caskroom/cask
brew cask install basictex
sudo tlmgr update --self
sudo tlmgr update --all
sudo tlmgr install titling framed inconsolata