This write up allow you to to set up your Raspberry Pi for ssh We acheive this by manually activating sshd in Pi's root partition. Followed by writing a systemd service file which activates the WiFi. In this case, I will be connecting my Pi to my smartphone's mobile hotspot and my pc to the hotspot as well. And then ssh into the Pi.
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
This Gist confirms the Linked Identity in my OpenPGP key, and links it to this GitHub account. | |
Token for proof: | |
[Verifying my OpenPGP key: openpgp4fpr:08bfa620336659487c5709846efe5cef7f6bedf2] |
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
This Gist confirms the Linked Identity in my OpenPGP key, and links it to this GitHub account. | |
Token for proof: | |
[Verifying my OpenPGP key: openpgp4fpr:08bfa620336659487c5709846efe5cef7f6bedf2] |
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
base64 -d<<-EOF | | |
H4sIAEOS0VgAA5VRMW7DMAzc9QpuXpyha5cOBYoGCLo0QJGpoG3aFiyLhUTF8O9LKSmSwFMBDdTxdEeeTpyqQCAjgbPDKDWsN8RnxJxuQMuOA3AP8wqNY+4eminQw/MftP6ewN6tWlg/wB4W9B5BOLWj+aAzBZg8LdpGASvqlFwHM6GHyDArq/4rnsy9aE8YatXr2Ff6DAOZ6hVTJNhXZ12hSDdERWfUhcwbO8eLaqt7kegwTOZAUiCcKO+gw0cBTgEiCjlnhWK2VQdVoov3wkGHzOwmcNKssqKzvcZwLYz51IJ1kDkHfNXuuFZwV86mZQ7/ox9zhBu+8K6cbc985Yg1p3Jf0Er+kJ7DizHvpLCNl2AdDvAMrfTf2XamDPwCyv+XaS8CAAA= | |
EOF | |
gunzip -d | while IFS= read -n1 c; do | |
printf %c "${c:-$'\n'}" | |
sleep 0.05 | |
[ "$c" ] || sleep 0.3 | |
done |
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
#!/usr/bin/env python | |
# Requires this font : http://www.fonts2u.com/highvoltage.font | |
# The images are saved in a folder named by the subreddit name | |
# External Libraries : praw, PIL | |
import praw | |
import Image | |
import ImageDraw, ImageFont | |
import textwrap |
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
# Maximum Limit | |
limit = 20 | |
# generates the series as a list | |
pyramid = [a[0:-1]+a[::-1] for a in ["".join([str(k) for k in range(1, i+1)]) for i in range(1, limit+1)]] | |
# pretty print | |
for num in pyramid: | |
print num.center(len(pyramid[-1])) |
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
# Maximum Limit | |
limit = 20 | |
# generates the series as a list | |
pyramid = [a[0:-1]+a[::-1] for a in ["".join([str(k) for k in range(1, i+1)]) for i in range(1, limit+1)]] | |
# pretty print | |
for num in pyramid: | |
print num.center(len(pyramid[-1])) |
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
# Maximum Limit | |
limit = 20 | |
# generates the series as a list | |
pyramid = [a[0:-1]+a[::-1] for a in ["".join([str(k) for k in range(1, i+1)]) for i in range(1, limit+1)]] | |
# pretty print | |
for num in pyramid: | |
print num.center(len(pyramid[-1])) |
NewerOlder