diskutil erasevolume HFS+ 'RAM Disk' `hdiutil attach -nobrowse -nomount ram://XXXXX`where XXXXX is the size of the RAM disk in terms of memory blocks.
Notes:
| #!/usr/bin/env bash | |
| clang++ -std=c++14 -stdlib=libc++ -c string16.ii | |
| clang++ -std=c++14 -stdlib=libc++ -c utf_string_conversions.ii | |
| clang++ -std=c++14 -stdlib=libc++ string16.o utf_string_conversions.o |
| #!/usr/bin/env bash | |
| cat <<EOF | clang++ -xc++ - -c -o string.o | |
| template <class T> | |
| struct basic_string { | |
| __attribute__((internal_linkage)) | |
| void shrink_to_fit(); | |
| }; | |
| template <class T> |
| #!/usr/bin/env python2 | |
| import requests | |
| from tqdm import tqdm | |
| import re | |
| import os | |
| def download_file_from_google_drive(id, destination): | |
| URL = 'https://docs.google.com/uc?export=download' | |
| session = requests.Session() |
| # Last updated May, 2024 for Apple silicon Macs | |
| # Install Homebrew if you don't already have it: https://brew.sh | |
| # install nano from homebrew | |
| brew install nano nanorc | |
| # update your nanorc file | |
| echo 'include "'"$(brew --cellar nano)"'/*/share/nano/*.nanorc"' >> ~/.nanorc | |
| # close and re-open your terminal and you'll have syntax highlighting |
| #!/usr/bin/env python | |
| """ | |
| mailmanToMBox.py: Inserts line feeds to create mbox format from Mailman Gzip'd | |
| Text archives | |
| Usage: ./to-mbox.py dir | |
| Where dir is a directory containing .txt.gz files pulled from mailman Gzip'd Text | |
| """ | |
| import sys | |
| import os | |
| def makeMBox(fIn,fOut): |