Skip to content

Instantly share code, notes, and snippets.

View txoof's full-sized avatar

Aaron Ciuffo txoof

View GitHub Profile
@txoof
txoof / Setup_gCloud_SSH.md
Last active March 7, 2021 12:47
setup ssh on google cloud instance
@txoof
txoof / jupyter.md
Last active November 28, 2020 06:32
Installing Jupyter on Rasbian

Setting up Jupyter on Raspbian for Development

  • 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:

Updated Instructions for App Building

@bpteague Has an excellent update solution as of February 2025 using modern tools and an updated workflow.

This gist will remain here, but is deprecated. I'll keep it here historical and link-preservation purposes only. I strongly encourage everyone to check out the solution above!

Setup

  • Create a developer account with Apple
  • Download and install X-Code from the Apple App Store
@txoof
txoof / Setup.md
Last active February 4, 2025 12:38
Setup Termux on Android

Termux & Macrodroid Setup on Android

Setup termux for ssh, scripts, tasker/macrodroid integration

Install:

Note If secure Google accounts are active on the device, it is not possible to install apps from Fdroid Store

Install The following from the Fdroid Store:

  • Termux
  • Termux:API
  • Termux:Widget
@txoof
txoof / HomeBrew_w_TK.md
Last active April 1, 2025 01:47
Setup python with tkinter under homebrew
@txoof
txoof / multi-hop-ssh.md
Last active January 16, 2020 16:45
Multi-Hop SSH Forwarding - useful for web services behind firewall

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 
@txoof
txoof / PyInstaller.md
Last active January 10, 2020 20:11
PyInstaller Notes

PyInstaller - Important Notes

Install PyInstaller

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

Useful commandline options:

@txoof
txoof / steps.md
Last active January 10, 2020 19:47
Raspberry Pi - Out of the Box Configuration

Write Image to SD Card

$ 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

$ diskutil unmountDisk /dev/disk3
@txoof
txoof / gist:df40e64e9a68debf7fc3b4f339875eae
Created November 19, 2019 09:13 — forked from itsmattsoria/gistfil1.textile
Mac Terminal Cheat Sheet

SHORTCUTS

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
@txoof
txoof / ?
Last active February 20, 2019 10:32
Configure python 3 development environment with Homebrew, Jupyter and Pipenv
#