Skip to content

Instantly share code, notes, and snippets.

View derekjbernard's full-sized avatar
😉

Derek Bernard derekjbernard

😉
View GitHub Profile

Keybase proof

I hereby claim:

  • I am derekjbernard on github.
  • I am derekjbernard (https://keybase.io/derekjbernard) on keybase.
  • I have a public key ASAnLjFB3ZMvvddUI_xq3wTrOqa7EKS2FecBkETg7W16lQo

To claim this, I am signing this object:

@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.
device (hd0) HD(1,800,64000,e9d9cc6d-84e0-48ad-acf2-76d19a620608)
default=0
timeout=0
hiddenmenu
title chainload default CentOS 6 bootloader
root (hd0,0)
chainloader /EFI/redhat/grub.efi
cp –r /boot/efi/EFI/redhat /boot/efi/EFI/BOOT
mv /boot/efi/EFI/BOOT/grub.efi /boot/efi/EFI/BOOT/BOOTX64.EFI
mv /boot/efi/EFI/BOOT/grub.conf /boot/efi/EFI/BOOT/BOOTX64.conf
device (hd0) HD(1,800,64000,e9d9cc6d-84e0-48ad-acf2-76d19a620608)
default=0
timeout=0
hiddenmenu
title chainload default CentOS 6 bootloader
root (hd0,0)
chainloader /EFI/redhat/grub.efi
@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'