Enable Password Authentication on your droplet Digital Ocean

This one is quite simple. You will need to modify the ssh config file which is located at /etc/ssh/sshd_config.

Open the /etc/ssh/sshd_config file with your favorite editor.

Find or add the line PasswordAuthentication

Enter the value ‘yes’ next to PasswordAuthentication

It should look like:

PasswordAuthentication yes

Save and exit the file. The restart the ssh deamon with the below command:

service ssh restart – Ubuntu and family

service sshd restart – CentOS and family

How to Recover from Lost SSH Keys Digital Ocean

Hola! This happen on a couple of occasions to me. First, you will need to force your droplet to generate a new root password.

  1. Select your droplet from the Droplets menu.
  2. You will be presented with the option to reset root password. Click on the ‘Reset Root Password’ button and a new root password will be emailed to you.
  3. Log into the droplet via web console. This option is located right above the ‘Reset Root Password’ option.
  4. Once you click on ‘Launch Console’ button you can then enter root as your username and the password that was emailed to you. The web console supports copy/paste.
  5. Enter a new root password to replace the one that was emailed to you. Very important!
  6. You can now use your terminal to login if using Linux/Mac or use your SSH client if using some other OS. Use root for your username and the password you just created.

You should now have access to your droplet. Enjoy! Let me know if you have any questions. Use the comments sections to contact me. Thanks!

Ways of Contributing to Open Source

Open source code or software is available, usually with a license, for anyone to use. It’s common to collaborate on open source projects and use the material to build creative and exciting projects.

I compiled a list of sites you can use to contribute and gain experience:

Google Summer of Code:

Through their program, Google has compiled an expansive archive of open source foundations and projects. Explore the database to find out more. 

Open Source Machine Learning Frameworks:

Mainly designed for deep neural network models, TensorFlow is a tool for machine learning. Whether you’re new or already have experience, take some time to explore what is offered! 

Employers highly value contributions to and collaboration on open source. If you’re new to open source, get started with the resources below:

Github

Pick an Open Source project that you like and pick a task. Most open source projects host their repositories on GitHub. One of the great features of GitHub is that each repository comes with an issue tracker – just click the “Issues” link in the left sidebar of any of your favorite repositories to see where you can help. (Ex: jQuery’s issues)

The Beginner’s Guide to Contributing to Open Source Projects

This article does a great job of giving you ideas on how to contribute to open source projects in little and big ways – every little bit helps!

What can I do for Mozilla?

Contribute to Mozilla projects at this site, which asks you a series of questions about your interests or expertise and then makes suggestions.

Free Code Camp

This open source community gives people opportunities to learn to code and then give back by helping non-profit organizations.

Generate the DKIM domain key Google GSuite

Help prevent email spoofing for outgoing messages. DKIM adds an encrypted signature to the header of all outgoing messages. Email servers that get these messages use DKIM to decrypt the message header,  and verify the message was not changed after it was sent. 
 
Use the Google G Suite support link below to learn more:

https://support.google.com/a/answer/174126?hl=en&ref_topic=2752442

Authorize email senders with SPF GSuite

Set up SPF to prevent spammers from sending unauthorized emails from your domain. This type of spamming is called spoofing. Sender Policy Framework (SPF) is an email security method to prevent spoofing from your domain. 

Spoofing is a common unauthorized use of email, so some email servers require SPF. If you don’t set up SPF for your domain, messages could bounce or could be marked as spam.

Learn more at the Google support site using the link below:

https://support.google.com/a/answer/33786?hl=en

Manage suspicious emails with DMARC G Suite

Set up Domain-based Message Authentication, Reporting, and Conformance (DMARC) by adding policies to your domain’s DNS records. Policies define how your domain handles suspicious emails. Policies are defined in the form of a TXT record.

There are three possible DMARC policies for how your domain responds to suspicious emails:

  • Take no action on the message and log it in the daily report.
  • Mark the message as spam and hold it for more processing (quarantine).
  • Cancel the message so that it is not sent to the recipient.

Learn more following the below support article from Google G Suite:

https://support.google.com/a/answer/2466580

Macbook pro (High Sierra) overhearting and draining the battery in sleep mode

Ran in the Terminal:

log show | grep "Wake reason"
got:
Wake reason: EC.DarkPME (Maintenance)
Ran in the Terminal:
sudo nvram boot-args="darkwake=0"
and then rebooted..seems to be OK now. My MacBook Pro goes to sleep now without overheating and draining the battery. Let me know if this works for you.