Skip to content

Instantly share code, notes, and snippets.

View txoof's full-sized avatar

Aaron Ciuffo txoof

View GitHub Profile
@txoof
txoof / PowerQuery_Notes.md
Last active January 9, 2026 04:54
Guide for things that can and should not be done when creating power queries.

PowerQuery Creation Notes

Notes

Returned Column References

The columns section of the XML document refer to the columsn that will be offered in the Data Export Manager screens. The text of the column name is arbitrary and can be anything, but the <column column="TABLE.FIELD"> portion must refer to a "core" table of powerschool. When in doubt, use column="STUDENTS.ID" Avoid using DCID of any table in the column parameter as it might render the query disabled in DEM (grayed out). Reason being the DCID of most tables, starting with Students, is a non-editable identifier key even for system admin roles. Having DCID in SQL and in feild access is acceptable.

@txoof
txoof / PyPi.md
Last active October 30, 2023 19:28
Trusted Publishing to PyPI

Trusted Publishing to PyPI

PyPi no longer allows simple username/password authhentication through twine. 2FA is now required for all publisyhing.

This gist is based on this PyPA guide

Requirements

@txoof
txoof / syncthing setup.md
Last active August 11, 2023 18:42
Set up Syncthing on Linux host for multiple users

Set Up SyncThing on Linux Host for Multiple Users

This covers setting up SyncThing on Ubunty/Debian

Install Syncthing

$ sudo apt-install syncthing

Enable Syncthing for Each User

#!/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
@txoof
txoof / tunneling.md
Last active June 25, 2024 00:54
Tunnel ssh connections through firewalls

SSH Tunnels

Situation: Local Network Firewall blocks outgoing connections to remote hosts on port 22

In this situation it is not possible to connect to remote hosts (e.g. github.com) for managing repos over ssh. A tunnel through a remote host (tunnel.myhost.com) can remedy this. An ssh configuration file can be added to the ~/.ssh/config directory to specify a specific command for connecting github.com. See also How to setup SSH Tunneling

Setup

  1. create a tunnel host that accepts incomming connections:
    • tunnel.myhost.com
  2. install nc
@txoof
txoof / pyenv_mac_os.md
Last active October 6, 2022 09:04
Setup Python pyenv for Jupyter with nbconvert on Mac OS

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/[email protected]/3.9.2_1/Frameworks/Python.framework/Versions/3.9/share/jupyter
	/usr/local/share/jupyter
	/usr/share/jupyter
@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 December 31, 2025 16:17
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