Skip to content

Instantly share code, notes, and snippets.

View txoof's full-sized avatar

Aaron Ciuffo txoof

View GitHub Profile

Setup

  • Create a developer account with Apple
  • Download and install X-Code from the Apple App Store
  • Open and run X-Code app and install whatever extras it requires
  • Open the preferences pane (cmd+,)
    • click the + in the lower right corner
    • choose Apple ID
    • enter your apple ID and password
@txoof
txoof / Setup.md
Last active March 28, 2024 13:04
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 18, 2024 15:59
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
#
[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