Skip to content

Instantly share code, notes, and snippets.

@NestedLooper
NestedLooper / pu.sh
Last active June 4, 2018 16:59
Shell Script to push changes to repo and update server via PM2
#!/bin/bash
# make this shell script executable: 'chmod +x ./pu.sh'
# Usage: ./pu.sh {pm2 deployment branch} {commit message}
# ./pu.sh develop "Changes for develop branch"
# ./pu.sh production "Changes for production branch"
echo "Adding latest changes..."
git add .
echo "Displaying changes: "
git status
@NestedLooper
NestedLooper / clean.sh
Last active June 5, 2023 15:19
Clean React-Native Standalone Project
#!/bin/bash
# Clean the project using yarn
# make executable: `chmod +x ./clean.sh`
# call from package.json with `yarn clean`
# { "scripts": { "clean": "bash ./scripts/clean.sh" }
echo 'Cleaning Project...'
# remove metro and watchman temp directories
echo 'Removing metro and watchman temp DIRs'