Key/Command | Description |
---|---|
Tab | Auto-complete files and folder names |
Ctrl + A | Go to the beginning of the line you are currently typing on |
Ctrl + E | Go to the end of the line you are currently typing on |
Ctrl + U | Clear the line before the cursor |
Ctrl + K | Clear the line after the cursor |
Ctrl + W | Delete the word before the cursor |
Ctrl + T | Swap the last two characters before the cursor |
[aaronciuffo@Aarons-iMac:~/Downloads] | |
$ diskutil list | |
/dev/disk3 (internal, physical): | |
#: TYPE NAME SIZE IDENTIFIER | |
0: FDisk_partition_scheme *15.9 GB disk3 | |
1: Windows_FAT_32 NO NAME 254.8 MB disk3s1 | |
2: Linux 15.7 GB disk3s2 | |
[aaronciuffo@Aarons-iMac:~/Downloads] | |
$ diskutil unmountDisk /dev/disk3 |
# |
Install PyInstaller within the pipenv - this appears to resolve some path searching issues
PyInstaller 2018 Version has issues with virtual environments and specifically with venv 16.7.9 (used by pipenv). This may be resovled by the 9 Jan 2020 Version. The develop branch appears to solve the issue:
pipenv install -e git+https://github.com/pyinstaller/pyinstaller.git@develop#egg=PyInstaller
Forward ports across multiple hosts to provide access to a remote machine
Configuration [remote] --ssh--> [DMZ Host] --ssh--> [host on LAN]
This will map port localhost:8888 on the remote machine port 8888 on the DMZ host; then port 8888 on the DMZ host to port 8888 on the LAN host:
$ ssh -t -p 22 -l user_dmz host_dmz.com -L 8888:localhost:8888 ssh -t -p 22 -l pi lan_host.local -L 8888:localhost:8888
- Install jupyter:
$ pip3 install jupyter
- launch a Jupyter notebook server that is available over the local network:
$ jupyter-notebook --ip=$(hostname -I) --no-browser
$ jupyter-notebook --ip=$(hostname -I) --no-browser
[I 05:51:34.280 NotebookApp] Serving notebooks from local directory: /home/pi
[I 05:51:34.280 NotebookApp] Jupyter Notebook 6.1.5 is running at:
- Google Cloud SDK
- macOS 64-bit (x86_64) reccommended
- Project ID from Project with running VM
- VPN Instance Name and Zone
- SSH Key for project
- `ssh-keygen -f ~/.ssh/
- ip address of running project
#!/usr/bin/env python3 | |
# coding: utf-8 | |
# display the time vaugely as a string (The Time is about Ten to Seven); update every 5 minutes | |
# to adjust the timing use: | |
# $ word_clock.py -t xx | |
import os | |
from datetime import datetime |
If nbconvert throws a similar error, it is likely because the jupyter installation is not setup properly within a pyenv
ValueError: No template sub-directory with name 'python' found in the following paths:
/Users/aciuffo/Library/Jupyter
/opt/homebrew/Cellar/python@3.9/3.9.2_1/Frameworks/Python.framework/Versions/3.9/share/jupyter
/usr/local/share/jupyter
/usr/share/jupyter