[This is sample output of the above script for a shared drive named "Shared Drive"]
Number of files in root of Shared drive: 4
# shorten user to max 20 characters | |
def self.create_unix_domain_socket_name_prefix(base_dir = unix_domain_socket_dir) | |
user = ENV['USER'] || 'UnknownUser' | |
user.slice![0-19] | |
File.join(base_dir, "ruby-debug-#{user}") | |
end |
#!/bin/sh | |
# URL encode mailto link using Perl | |
url="$(perl -MURI::Escape -e 'print uri_escape($ARGV[0]);' "$2")" | |
# Then send email via one of the following Gmail accounts | |
# 1) Default (first logged in) Gmail/Workspace account | |
open -u "https://mail.google.com/mail/?extsrc=mailto&url=${url}" |