Explore >> Select a destination


You are here

www.bobdc.com
| | willhaley.com
14.1 parsecs away

Travel
| | See here an example of a custom Linux mount script, written in Python, that can be used to mount disks with /etc/fstab. The mount script is installed at /usr/bin/mount.my-command and is executable. #!/usr/bin/env python3 import sys import subprocess device = sys.argv[1] mount_point = sys.argv[2] options = sys.argv[4] # Any customization could be done here to the `mount` command that is run. mount_command = ['mount', '-o', options, device, mount_point] output = subprocess.run( mount_command, capture_output=True ) if output.returncode != 0: print("error mounting") print(output.stderr.decode('UTF-8')) sys.exit(output.returncode) See here how the custom script can then be used in /etc/fstab like any "normal" mount.
| | jeroenjanssens.com
17.2 parsecs away

Travel
| | To improve my iTerm+tmux experience, I've set up a whole bunch of key mappings. Rather than defining these manually, I wrote a Python script to generate the corresponding JSON programmatically.
| | shaneosullivan.wordpress.com
17.4 parsecs away

Travel
| | How to run a clean up script when your NextJS dev server is shut down
| | fractaledmind.github.io
84.0 parsecs away

Travel
| This is my personal site, where I write about Ruby, programming, and any of my varied fascinations.