-
Install Homebrew:
- Follow the install instructions found on this page.
-
Tap the wonderful homebrew-php from https://github.com/Homebrew/homebrew-php
$ brew tap homebrew-php
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Run this script with: | |
# bash <(curl -s https://gist.github.com/garlandkr/e80674b49270b0199fa6/raw/ami-clean.sh | |
function print_green { | |
echo -e "\e[32m${1}\e[0m" | |
} | |
print_green 'Clean Yum' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set isCrashPlanRunning to false | |
try | |
set pid to do shell script ¬ | |
"sudo launchctl list | grep com.crashplan.engine" user name "username" password ¬ | |
"password" with administrator privileges | |
set isCrashPlanRunning to true | |
end try | |
if isCrashPlanRunning then | |
log "CrashPlan is already running: " & pid |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* @file | |
* Rebuild the node access database with no php time limits. | |
*/ | |
/** | |
* Rebuilds the node access database (for use with drush php-script). | |
* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Check for the existance of drush on the system | |
if [[ ! -x /bin/drush || ! -x /usr/bin/drush ]]; then | |
echo "This script requires drush!" | |
echo | |
exit 3 | |
fi | |
if [[ -z ${1} ]]; then |
Awesome PHP has been relocated permanently to its own Github repository. No further updates will made to this gist.
Please open an issue for any new suggestions.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Best To-Do List. Ever. | |
# | |
# Usage: | |
# 1. Add a new item to list: `todo This needs to be fixed` | |
# 2. Edit the to-do list: `todo -e` | |
# 3. Show the current to-do's: `todo` | |
if [[ $1 ]]; then | |
if [ $1 = "-e" ]; then |
NewerOlder