Skip to content

Instantly share code, notes, and snippets.

@taavi223
taavi223 / noautomount.sh
Last active December 19, 2025 16:29 — forked from niieani/no_automount.bash
Simple shell utility to configure an external drive to not auto mount on macOS
#!/usr/bin/env bash
# Modified from: https://akrabat.com/prevent-an-external-drive-from-auto-mounting-on-macos/
# Prevent external drives from auto-mounting on macOS
FSTAB=/etc/fstab
# Add a volume as not auto-mounted to the /etc/fstab file
# by its identifier. Also pass in the volume name to add a
@taavi223
taavi223 / .pythonrc.py
Last active February 3, 2025 02:29
.pythonrc.py
"""
This file is executed when the Python interactive shell is started if
$PYTHONSTARTUP is in your environment and points to this file. It's just
regular Python commands, so do what you will. Your ~/.inputrc file can greatly
complement this file.
Modified from sontek's dotfiles repo on github:
https://github.com/sontek/dotfiles
"""