Skip to content

Instantly share code, notes, and snippets.

View designfrontier's full-sized avatar

Daniel Sellers designfrontier

View GitHub Profile

Keybase proof

I hereby claim:

  • I am designfrontier on github.
  • I am designfrontier (https://keybase.io/designfrontier) on keybase.
  • I have a public key ASC9jH4-tHGo5bMNnni-UmID4THIF6EXDAubl9ueBxJ2ZQo

To claim this, I am signing this object:

@designfrontier
designfrontier / archive-project.sh
Last active November 8, 2024 16:23
archive and clean
#! /bin/bash
mv $1 ~/projects/Archive
# Loop over each first-level subdirectory
for dir in ~/projects/Archive/*/; do
# Check if 'node_modules' exists within the subdirectory
if [ -d "${dir}node_modules" ]; then
echo "Deleting ${dir}node_modules"
rm -rf "${dir}node_modules"
fi