Skip to content

Instantly share code, notes, and snippets.

View DanLockcuff's full-sized avatar

Dan Lockcuff DanLockcuff

View GitHub Profile
@DanLockcuff
DanLockcuff / fix-wordpress-permissions.sh
Created February 7, 2018 13:27 — forked from Adirael/fix-wordpress-permissions.sh
Fix wordpress file permissions
#!/bin/bash
#
# This script configures WordPress file permissions based on recommendations
# from http://codex.wordpress.org/Hardening_WordPress#File_permissions
#
# Author: Michael Conigliaro <mike [at] conigliaro [dot] org>
#
WP_OWNER=www-data # <-- wordpress owner
WP_GROUP=www-data # <-- wordpress group
WP_ROOT=$1 # <-- wordpress root directory
@DanLockcuff
DanLockcuff / README.md
Last active February 21, 2017 05:39 — forked from mzabriskie/README.md
Check git status of multiple repos

If you're like me you have a dir like ~/Workspace/Github where all your git repos live. I often find myself making a change in a repo, getting side tracked and ending up in another repo, or off doing something else all together. After a while I end up with several repos with modifications. This script helps me pick up where I left off by checking the status of all my repos, instead of having to check each one individually. It will check for untracked files, unpushed files and modified files.

Installation macOS: sudo nano /usr/local/bin/git-status Paste below script into file and save. sudo chmod 755 /usr/local/bin/git-status sudo chmod +x /usr/local/bin/git-status

Usage: