Skip to content

Instantly share code, notes, and snippets.

View matthewdeanmartin's full-sized avatar
🦥
Gotta upgrade the packages

Matthew Martin matthewdeanmartin

🦥
Gotta upgrade the packages
View GitHub Profile
@matthewdeanmartin
matthewdeanmartin / CloudCustodianDummysGuide.md
Created October 14, 2024 13:41 — forked from Johnlon/CloudCustodianDummysGuide.md
Work in progress write up on adding an extension to cloud custodian
@matthewdeanmartin
matthewdeanmartin / clean.py
Created December 10, 2023 03:00 — forked from phpdude/clean.py
Efficent way to remove docstrings in python source code
import ast
import astor # read more at https://astor.readthedocs.io/en/latest/
parsed = ast.parse(open('source.py').read())
for node in ast.walk(parsed):
# let's work only on functions & classes definitions
if not isinstance(node, (ast.FunctionDef, ast.ClassDef, ast.AsyncFunctionDef)):
continue
@matthewdeanmartin
matthewdeanmartin / git-bash-fish.md
Created May 20, 2023 01:01 — forked from rafaelpadovezi/git-bash-fish.md
Using fish shell with git bash on windows

Using fish shell with git bash on windows

To install fish shell on windows the options are:

  • Cygwin
  • WSL
  • MSYS2

Since git bash is based on MSYS2 it seems a good fit to install fish. The problem is that git bash is a lightweight version of MSYS2 which does not include pacman as a package management, used to install fish.

This OS thread has great suggestions on how to solve this problem including using the full MSYS2. But the best solution for me was this answer by Michael Chen which installs pacman on git bash.