Skip to content

Instantly share code, notes, and snippets.

View fitzy1321's full-sized avatar

Joe Fitzgibbons fitzy1321

View GitHub Profile
@fitzy1321
fitzy1321 / fix.md
Created September 15, 2022 17:30
Fix xcode install loop problem

How to fix xcode install loop after upgrading macOS

I recently upgrade my mac to 12.6, and xcode command line tools is now in an install loop. Preventing me from running make commands, I found this stack overflow post.

TL;DR: my need to reset path to xcode tools (I think)

xcode-select -s /Library/Developer/CommandLineTools
@fitzy1321
fitzy1321 / regex_example.md
Last active April 27, 2026 20:59
Regex pattern to exclude whitespace in input tag

Regex pattern to exclude whitespace in input tag

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
 Input Regex
@fitzy1321
fitzy1321 / scoped_session_maker.py
Last active July 5, 2022 19:28
SQLAlchemy scoped_session contextmanager
from contextlib import contextmanager
from typing import Generator
from sqlalchemy import create_engine
from sqlalchemy.orm import Session, scoped_session, sessionmaker
@contextmanager
def scoped_session_maker(
db_conn: str,
@fitzy1321
fitzy1321 / starship_git_bash_windows.md
Last active October 1, 2024 12:03
Installing Starship.rs on Git Bash for Windows

Installing Starship prompt on Git Bash for Windows

Source: https://bleepcoder.com/starship/640385008/unable-to-install-on-windows-git-bash-configuration-not

All scripts should be ran in your git bash terminal, not cmd or ps.

  1. Make/Choose folder where to install: mkdir -p ~/bin/starship && cd ~/bin
  2. Download the install script: curl -fsSL https://starship.rs/install.sh > ./install.sh
  3. Run install script: ./install.sh --bin-dir /c/Users/<username>/bin/starship/ --platform pc-windows-msvc
  4. Finally add the following to the end of your .bashrc file:
@fitzy1321
fitzy1321 / extract-appimage.md
Last active May 19, 2021 17:25
Extract Appimage

Extracting an AppImage

To "extract" all the folders from an appimage, run this command below

$ ./[enter image name here] --appimage-extract