Skip to content

Instantly share code, notes, and snippets.

View muuvmuuv's full-sized avatar
🎱
Working on @m8finder

Marvin Heilemann muuvmuuv

🎱
Working on @m8finder
View GitHub Profile
@muuvmuuv
muuvmuuv / bulk-reorder-object.sh
Created June 13, 2025 09:17
Bulk re-order json file contents like dependencies in package.json or paths in tsconfig.json. It uses `jq` and can be expanded to re-order other paths as well!
#!/usr/bin/env sh
tsconfig_files=$(
find . -type d \( -path "*/node_modules" -o -path "*/dist" -o -path "*/tmp" -o -path '*/.*' \) -prune \
-o -not -name '.*' \
-type f -name "tsconfig*.json" \
-print
)
for tsconfig_file in $tsconfig_files; do
@muuvmuuv
muuvmuuv / .devcontainer_Dockerfile
Last active October 16, 2023 22:20
ARM64 (Silicon) Tensorflow IO devcontainer configuration with Poetry to avoid the headache
FROM mcr.microsoft.com/devcontainers/python:3.10
RUN curl -sSL https://install.python-poetry.org | POETRY_HOME=/usr/local python3 -
USER vscode
RUN /usr/local/bin/poetry config virtualenvs.in-project true
@muuvmuuv
muuvmuuv / how-to-php-fpm-pm-optimized.md
Last active September 5, 2024 12:43
Get optimized PHP-fpm "pm" config
@muuvmuuv
muuvmuuv / cypress-plugin-use-puppeteer.js
Last active June 10, 2021 12:38
Use puppeteer browser with Cypress to avoid installing browsers on your system yourself or in CI
const puppeteer = require('puppeteer')
/**
* Because no browsers are bundled with Cypress we will use the already installed
* puppeteer binary that we use for Karma. This function returns information
* about the latest downloaded binary for Chrome by Puppeteer. It works for now
* but might throw errors in future, it is a workaround not a plugin.
*
* @see https://docs.cypress.io/guides/guides/launching-browsers.html#Customize-available-browsers
*/