share folder into google drive with samba

I did this:

  1. I created a Google Drive folder in Ubuntu 18.04 with FUSE filesystem over Google Drive.
  2. I created a folder inside Google Drive called “cloud”
  3. chmod 777 /home/user/GoogleDrive/cloud
  4. edit smb.conf and put:

    [cloud] comment = cloud path = /home/user/GoogleDrive/cloud public = yes read only = no writeable = yes browseable = yes valid users = nobody guest ok = yes available = yes printable = no create mask = 0777 directory mask = 0777

I do not have access to my “cloud” folder (with or without “sudo”)

Thanks

Mask a subdomain as subfolder and allow access from only from the folder URL

I have serviceX.example.com and I don’t want to move everything, I want to mask the URL so visitors and search engines see example.com/serviceX instead of the original/real location.

I don’t want serviceX.example.com to be accessible except from the masked URL with the subfolder.

The website is on a Linux server with Plesk installed on it.

How do I do that?

Cron fails because update folder does not exist

I am trying to setup cron for a magento 2 installation made through composer.

I have tried to manually add the following to my crontab:

* * * * * www-data php /path/to/m2/bin/magento cron:run | grep -v "Ran jobs by schedule" >> /path/to/m2/var/log/magento.cron.log * * * * * www-data php /path/to/m2/update/cron.php >> /path/to/m2/var/log/update.cron.log * * * * * www-data php /path/to/m2/bin/magento setup:cron:run >> /path/to/m2/var/log/setup.cron.log 

If I then check the /path/to/m2/var/log/update.cron.log I can see the following message:

Could not open input file: /path/to/m2/update/cron.php

Obviously, because the folder /path/to/m2/update does not exist.

I am not sure why the folder and cron.php file is missing. Is there some bin/magento command that I have missed?

Easier way to copy file into another folder using shutil

So the following code exports a csv file in the parsed folder; I need it to do the same thing in the downloads folder. So, what i did is just copied the same code, and changed the destination folder name. I know there is a way i can do this with shutil, but im unsure how.

main.py

if mylist is not None:     number = 0     filename = '/Users/poweruser/Applications/pythonwork/leadparser/parsed/newoutput%s.csv'      destination = "/Users/poweruser/downloads"     while os.path.exists(filename %  number):         number += 1         owlname = filename % number     with open('/Users/poweruser/Applications/pythonwork/leadparser/parsed/newoutput%s.csv' % number, 'w') as csvfile:         writer = csv.writer(             csvfile, delimiter=",")         writer.writerow(             ['Email', 'Website', 'Phone Number', 'Location'])         # var_dump(mylist)         for i in mylist:             writer.writerow(list(i))     # shutil.copy(owlname, destination) doesnt work as i want it too   if mylist is not None:     number = 0     filename = '/Users/poweruser/downloads/newoutput%s.csv'      while os.path.exists(filename %  number):         number += 1      with open('/Users/poweruser/downloads/newoutput%s.csv' % number, 'w') as csvfile:         writer = csv.writer(             csvfile, delimiter=",")         writer.writerow(             ['Email', 'Website', 'Phone Number', 'Location'])         # var_dump(mylist)         for i in mylist:             writer.writerow(list(i)) 

Emails I send keep getting into recipient’s Spam folder in Gmail

I have a personal domain and I use a mail account on it (it’s not Gmail). Recently, all the emails I send (personal and business messages, not bulk) keep getting into the recipients Gmail Spam folder (I checked with several recipients).

Why is that and what can I do?

More info:

  • I checked and my domain is not in the blacklist.

  • When looking at the message in the Spam folder, it states “It’s similar to messages that were detected by our spam filter”. However, this is a personal message I wrote to someone – not a newsletter or a bulk message.

  • My sites and mail server are on a shared hosting service. But until recently I didn’t have this problem.

Thanks