Skip to content

Instantly share code, notes, and snippets.

View derekmoyes's full-sized avatar

Derek Moyes derekmoyes

View GitHub Profile
@derekmoyes
derekmoyes / .bash_profile
Created March 24, 2018 14:44 — forked from natelandau/.bash_profile
Mac OSX Bash Profile
# ---------------------------------------------------------------------------
#
# Description: This file holds all my BASH configurations and aliases
#
# Sections:
# 1. Environment Configuration
# 2. Make Terminal Better (remapping defaults and adding functionality)
# 3. File and Folder Management
# 4. Searching
# 5. Process Management
@derekmoyes
derekmoyes / BBEdit-TextWrangler_RegEx_Cheat_Sheet.txt
Created September 9, 2016 19:30 — forked from ccstone/BBEdit-TextWrangler_RegEx_Cheat_Sheet.txt
BBEdit-TextWrangler Regular Expression Cheat-Sheet
————————————————————————————————————————————————————————————————————————————————————————————————————
BBEDIT/TEXTWRANGLER REGULAR EXPRESSION GUIDE MODIFIED 2016/02/29 17:26
————————————————————————————————————————————————————————————————————————————————————————————————————
NOTES:
The PCRE engine (Perl Compatible Regular Expressions) is what BBEdit and TextWrangler use.
Items I'm unsure of are marked '# PCRE?'. The list while fairly comprehensive is not complete.
@derekmoyes
derekmoyes / drobo_check.py
Created May 28, 2016 05:18 — forked from Jpunt/drobo_check.py
Python script I use to check the health of my Drobo, which is connected to a Raspberry Pi. Output is emailed by the cronjob daily. Needs Drobo-Utils to work properly: http://drobo-utils.sourceforge.net and you will have to edit the paths for your setup.
#! /usr/bin/env python
import subprocess
import re
# Settings
diskPath = '/dev/sda'
mountPath = '/media/drobo'
# Get status
command = "/usr/sbin/drobom status"
### Keybase proof
I hereby claim:
* I am derekmoyes on github.
* I am derekmoyes (https://keybase.io/derekmoyes) on keybase.
* I have a public key whose fingerprint is 7127 1F12 6A9A C643 5015 FE11 9388 415D D33A BFFC
To claim this, I am signing this object:
Verifying that +derekmoyes is my Bitcoin username. You can send me #bitcoin here: https://onename.io/derekmoyes