Skip to content

Instantly share code, notes, and snippets.

View derekjbernard's full-sized avatar
😉

Derek Bernard derekjbernard

😉
View GitHub Profile
@derekjbernard
derekjbernard / wp-update.sh
Last active October 17, 2016 21:50 — forked from bananana/wp-update.sh
Bash script to run automatic updates and backups using wp-cli
#!/bin/bash
#
# Backup and update WordPress using wp-cli
#
# Set the -e shell option so the script exits immediately if any command within
# it exits with a non-zero status.
set -e
# Check if wp-cli is installed to /usr/local/bin/wp.
@derekjbernard
derekjbernard / osx-for-hackers.sh
Created October 21, 2015 20:07 — forked from brandonb927/osx-for-hackers.sh
OSX for Hackers: Yosemite Edition. This script tries not to be *too* opinionated and any major changes to your system require a prompt. You've been warned. Also, please don't email me about this script, my poor inbox...
#!/bin/sh
# Alot of these configs have been taken from the various places
# on the web, most from here
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
# Set the colours you can use
black='\033[0;30m'
white='\033[0;37m'
red='\033[0;31m'