Explore >> Select a destination


You are here

techtldr.com
| | cyberchris.xyz
6.3 parsecs away

Travel
| | This was an older writeup of mine that I posted before I had set up this blog. I am reposting it for my blog now. Whats this for? After stumbling upon the youtube-dl program (link to the repo), I was impressed with its functionality but found it quite inconvenient to have to leave the terminal to search for the url. This led me to write this python script that lets you search Youtube and display the video/playlist ID, all in the command line.
| | willhaley.com
2.6 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.
| | yepoleb.github.io
6.4 parsecs away

Travel
| |
| | www.github.com
18.8 parsecs away

Travel
| my blog, with astro. Contribute to Krayorn/blog development by creating an account on GitHub.