- Download the Raspbian Lite image from https://downloads.raspberrypi.org/raspbian_lite_latest (add .torrent to get a torrent)
- Unzip the download to extract the .img file
- Insert a FAT32-formatted SD card, and copy the image over:
diskutil list
to identify the disk number, e.g./dev/disk2
diskutil unmountDisk /dev/disk2
sudo dd bs=1m if=image.img of=/dev/rdisk2
- Before unmounting, edit a couple of files to activate internet-over-USB. The image mounted for me at
/Volumes/boot
.- In
config.txt
, add this as the last line of the file:dtoverlay=dwc2
- In
cmdline.txt
, add this as a parameter, just after therootwait
parameter:modules-load=dwc2,g_ether
- In
- Unmount the SD card (via Finder) and stick it in the Raspberry Pi.
Discover gists
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import readline from 'readline' | |
import chalk from 'chalk' | |
import OpenAI from 'openai' | |
import { LocalIndex } from 'vectra' | |
import { fileURLToPath } from 'url' | |
import path, { dirname } from 'path' | |
const __filename = fileURLToPath(import.meta.url) | |
const __dirname = dirname(__filename) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Delete/Clean XCode /CoreSimulator/Devices/ folder | |
$ xcrun simctl delete unavailable |
NewerOlder