Skip to content

Instantly share code, notes, and snippets.

View michaeltryby's full-sized avatar
🏠
Working from home

Michael Tryby michaeltryby

🏠
Working from home
  • Recovering Fed
  • East Falmouth, MA USA
View GitHub Profile
@michaeltryby
michaeltryby / sigpatch.zsh
Last active July 4, 2025 23:29
sigpatch fixes SIP-related Python crashes on macOS Sequoia and later
#!/usr/bin/env zsh
#
# sigpatch.zsh — Fix macOS SIP errors by ad-hoc signing unsigned Python native libraries
#
# Scans the active Conda environment for unsigned native libraries (.so/.dylib)
# and optionally ad-hoc signs them for compatibility with macOS SIP (e.g., Sequoia).
#
# Usage:
# ./sigpatch.zsh --audit # Scan and list unsigned libraries
@michaeltryby
michaeltryby / build.yml
Created June 23, 2021 20:30
GitHub Actions CI build for Win32 and Win64 swmm-solver
#
# build.yml - GitHub Actions CI build for Win32 and Win64 swmm-solver
#
# Created: June 23, 2021
# Updated:
#
# Author: Michael E. Tryby
# US EPA - ORD/CESER
#
@michaeltryby
michaeltryby / private_fork.md
Created April 20, 2021 20:49 — forked from 0xjac/private_fork.md
Create a private fork of a public repository

The repository for the assignment is public and Github does not allow the creation of private forks for public repositories.

The correct way of creating a private frok by duplicating the repo is documented here.

For this assignment the commands are:

  1. Create a bare clone of the repository. (This is temporary and will be removed so just do it wherever.)

git clone --bare [email protected]:usi-systems/easytrace.git

@michaeltryby
michaeltryby / profile.py
Created October 20, 2020 17:12 — forked from ekhoda/profile.py
A profile decorator
import cProfile
import pstats
from functools import wraps
def profile(output_file=None, sort_by='cumulative', lines_to_print=None, strip_dirs=False):
"""A time profiler decorator.
Inspired by and modified the profile decorator of Giampaolo Rodola:
http://code.activestate.com/recipes/577817-profile-decorator/
@michaeltryby
michaeltryby / root-CMakeLists.txt
Last active June 30, 2021 21:46
Builds SWMM CLE
#
# CMakeLists.txt - CMake configuration file for old swmm-solver releases
#
# Created: June 4, 2020
# Updated: June 30, 2021
#
# Author: Michael E. Tryby
# US EPA ORD/CESER
#
# Build Information:
@michaeltryby
michaeltryby / ShapeViewer.py
Created September 27, 2018 12:06
PyQGIS ShapeViewer Demo
from qgis.core import *
from qgis.gui import *
from qgis.utils import iface
from PyQt5.QtCore import *
from PyQt5.QtWidgets import QApplication, QMainWindow, QFileDialog, QVBoxLayout
from PyQt5.QtGui import *
import sys
import os