This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1) Login to your Digitalocean dashboard | |
2) Launch the droplet console | |
3) Login to the droplet using root credentials. If you've forgotten your root password then reset it from the dashboard (an email will be sent to you with a temp password). | |
4) Once you are in then open `/etc/ssh/sshd_config` file and edit this entry `PasswordAuthentication no` to `PasswordAuthentication yes`. | |
5) Save changes. | |
6) Reload configuaration `service ssh reload` | |
7) Now you can login to your droplet from your machines terminal. `ssh root@droplet-ip` | |
8) copy your new ssh keys to into file `~/.ssh/authorized_keys`: https://www.digitalocean.com/community/tutorials/how-to-set-up-ssh-keys--2 | |
9) Clean up: change back to `PasswordAuthentication no` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pandas as pd | |
import matplotlib.pyplot as plt | |
# Assuming following csv format | |
# | |
# time | Column_Name1 | Column_Name2 | |
# -------------------------------------------- | |
# 2017-02-31 12:00:00 | 1.05597 | 1.05557 | |
# 2017-02-30 16:02:00 | 1.05560 | 1.05558 | |
# |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
How secure is 256 bit security? https://www.youtube.com/watch?v=S9JGmA5_unY&t=2s | |
Will Quantum Computers break encryption?(Explains how public+private key works) https://www.youtube.com/watch?v=6H_9l9N3IXU |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http://blog.hackerearth.com/2015/05/top-7-algorithms-and-data-structures-every-programmer-should-know-about.html |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Understanding Python variables and Memory Management: http://foobarnbaz.com/2012/07/08/understanding-python-variables/ | |
Adaptive Modular Exponentiation Methods v.s. Python’s Power Function: https://arxiv.org/pdf/1707.01898.pdf |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def is_even(n): | |
"""uses bitwise operator to check if number is even or odd | |
Args: | |
n (int): | |
Returns: | |
answer (bool): True if even, False otherwise | |
""" | |
return n & 1 == 0 | |