Explore >> Select a destination


You are here

theweeklychallenge.org
| | github.sommrey.de
1.2 parsecs away

Travel
| | Task 1: Sort String Submitted by: Mohammad Sajid Anwar
| | willhaley.com
39.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.
| | danq.me
34.3 parsecs away

Travel
| | Inspired by Kev Quirk, I (like Matthiass Pfefferle and Jeremy Herves) have a 'thanks for using RSS' message in my RSS content. But mine's got a couple of differences from the others: a post-ID based randomiser, and a postmeta override. Wanna see the code?
| | bartlomiejmika.com
119.5 parsecs away

Travel
| The purpose of this article is to help you setup a personal blog as quickly as possible. These are the instructions and notes Ive written down when setting up my site that Id like to share.