Skip to content

Instantly share code, notes, and snippets.

@stilldg
stilldg / macos-quarantine-fix.sh
Created June 21, 2025 22:25
Chromium/LibreWolf is damaged and can't be openend (brew/homebrew) fix
#!/bin/sh
# how it works:
# xattr -cr clears all extended attributes of a file, including com.apple.quarantine
# this attribute prevents files downloaded from the internet from opening
# run these on cli
xattr -cr /Applications/Chromium.app
xattr -cr /Applications/LibreWolf.app
echo "Done! Chromium/LibreWolf should now open."
@stilldg
stilldg / merge-to-main.sh
Last active June 17, 2025 13:42
merge dev branch to main on git
#!/bin/bash
# (c) @stilldg
# Exit on any error
set -e
echo "merging from dev -> main..."
# Store current branch
@stilldg
stilldg / gist:8dbe0850c0641774b29d37fea1b529cb
Created September 2, 2024 12:36
remove all .DS_Store files recursively
find . -name '.DS_Store' -type f -delete