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.
| #!/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 |
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.
Install Homebrew:
Tap the wonderful homebrew-php from https://github.com/Homebrew/homebrew-php
$ brew tap homebrew-php
| #!/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 |
| <?php | |
| /** | |
| * @file | |
| * Rebuild the node access database with no php time limits. | |
| */ | |
| /** | |
| * Rebuilds the node access database (for use with drush php-script). | |
| * |
| 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 |
| #!/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' |
| @binkmail.com | |
| @bobmail.info | |
| @chammy.info | |
| @devnullmail.com | |
| @letthemeatspam.com | |
| @mailinater.com | |
| @mailinator.net | |
| @mailinator2.com | |
| @notmailinator.com | |
| @reallymymail.com |
| DELETE FROM node_revisions WHERE vid IN ( | |
| SELECT subquery.vid FROM ( | |
| SELECT @row_num := IF(@prev_value=nr.nid,@row_num+1,1) AS RowNumber | |
| ,nr.nid | |
| ,nr.vid | |
| ,nr.timestamp | |
| ,@prev_value := nr.nid | |
| FROM node_revisions nr, | |
| (SELECT @row_num := 1) x, | |
| (SELECT @prev_value := '') y |
This is a quick-and-dirty guide to setting up a Raspberry Pi as a "router on a stick" to PrivateInternetAccess VPN.
Install Raspbian Jessie (2016-05-27-raspbian-jessie.img) to your Pi's sdcard.
Use the Raspberry Pi Configuration tool or sudo raspi-config to: